[ 
https://issues.apache.org/jira/browse/SOLR-5960?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13960459#comment-13960459
 ] 

Uwe Schindler commented on SOLR-5960:
-------------------------------------

Your patch has several problems:
- We are not allowed to use private Sun APIs, our build system won't allow 
this. One public API that could be used and introduces no external 
dependencies: 
http://docs.oracle.com/javase/7/docs/api/javax/xml/bind/DatatypeConverter.html
- You are getting the bytes of the string without specifying a charset, so it 
depends on default encoding. Please specify StandardCharsets.US_ASCII here 
(because basic auth credentials must be encoded using that charset).

> Add Support for Basic Authentication to Post.jar
> ------------------------------------------------
>
>                 Key: SOLR-5960
>                 URL: https://issues.apache.org/jira/browse/SOLR-5960
>             Project: Solr
>          Issue Type: Improvement
>          Components: scripts and tools
>    Affects Versions: 4.7
>            Reporter: Sameer Maggon
>            Priority: Minor
>         Attachments: solr-5960.patch
>
>
> Post.jar currently doesn't support Basic Authentication if Solr is configured 
> to use Basic Authentication.
> I've attached a patch that enables users to use post.jar if their Solr is 
> configured with Basic Authentication.
> Here's the example usage:
> java -Durl="http://username:password@hostname:8080/solr/update"; -jar post.jar 
> sample.xml



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to