You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jayendra Patil (JIRA)" <ji...@apache.org> on 2010/11/17 17:35:13 UTC

[jira] Created: (SOLR-2240) Basic authentication for stream.url

Basic authentication for stream.url
-----------------------------------

                 Key: SOLR-2240
                 URL: https://issues.apache.org/jira/browse/SOLR-2240
             Project: Solr
          Issue Type: Improvement
          Components: update
    Affects Versions: 4.0
            Reporter: Jayendra Patil
            Priority: Minor


We intend to use stream.url for indexing documents from remote locations exposed through http.
However, the remote urls are secured and would need basic authentication to be able access the documents.
The current implementation for stream.url in ContentStreamBase.URLStream does not support authentication.

The implementation with stream.file would mean to download the files to a local box and would cause duplicity, whereas stream.body would have indexing performance issues with the hugh data being transferred over the network.

An approach would be :-
1. Passing additional authentication parameter e.g. stream.url.auth with the encoded authentication value - SolrRequestParsers
2. Setting Authorization request property for the Connection - ContentStreamBase.URLStream
    this.conn.setRequestProperty("Authorization", "Basic " + encodedauthentication);

Any thoughts ??

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Updated: (SOLR-2240) Basic authentication for stream.url

Posted by "Jayendra Patil (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jayendra Patil updated SOLR-2240:
---------------------------------

    Attachment: SOLR-2240.patch

Attached the Patch for the changes.

> Basic authentication for stream.url
> -----------------------------------
>
>                 Key: SOLR-2240
>                 URL: https://issues.apache.org/jira/browse/SOLR-2240
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 4.0
>            Reporter: Jayendra Patil
>            Priority: Minor
>         Attachments: SOLR-2240.patch
>
>
> We intend to use stream.url for indexing documents from remote locations exposed through http.
> However, the remote urls are secured and would need basic authentication to be able access the documents.
> The current implementation for stream.url in ContentStreamBase.URLStream does not support authentication.
> The implementation with stream.file would mean to download the files to a local box and would cause duplicity, whereas stream.body would have indexing performance issues with the hugh data being transferred over the network.
> An approach would be :-
> 1. Passing additional authentication parameter e.g. stream.url.auth with the encoded authentication value - SolrRequestParsers
> 2. Setting Authorization request property for the Connection - ContentStreamBase.URLStream
>     this.conn.setRequestProperty("Authorization", "Basic " + encodedauthentication);
> Any thoughts ??

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


[jira] Commented: (SOLR-2240) Basic authentication for stream.url

Posted by "Lance Norskog (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SOLR-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934741#action_12934741 ] 

Lance Norskog commented on SOLR-2240:
-------------------------------------

Is it possible to make this more general, and support other forms of authentication?


> Basic authentication for stream.url
> -----------------------------------
>
>                 Key: SOLR-2240
>                 URL: https://issues.apache.org/jira/browse/SOLR-2240
>             Project: Solr
>          Issue Type: Improvement
>          Components: update
>    Affects Versions: 4.0
>            Reporter: Jayendra Patil
>            Priority: Minor
>         Attachments: SOLR-2240.patch
>
>
> We intend to use stream.url for indexing documents from remote locations exposed through http.
> However, the remote urls are secured and would need basic authentication to be able access the documents.
> The current implementation for stream.url in ContentStreamBase.URLStream does not support authentication.
> The implementation with stream.file would mean to download the files to a local box and would cause duplicity, whereas stream.body would have indexing performance issues with the hugh data being transferred over the network.
> An approach would be :-
> 1. Passing additional authentication parameter e.g. stream.url.auth with the encoded authentication value - SolrRequestParsers
> 2. Setting Authorization request property for the Connection - ContentStreamBase.URLStream
>     this.conn.setRequestProperty("Authorization", "Basic " + encodedauthentication);
> Any thoughts ??

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org