Re: Reserved characters in password used by Jetty (Solr)

2016-12-05 Thread Chris Hostetter
: I fixed the issue by URL encoding. Here is a slim down version of my code : (with the fix): ... : // Gives back: http://username:password@server:port/solr/... : String solrUrl = "http://"; + username + ":" + password + "@" + : getSolrServerName() + ":" getSolrServerPort(

Re: Reserved characters in password used by Jetty (Solr)

2016-12-05 Thread Steven White
Thanks Shawn. I fixed the issue by URL encoding. Here is a slim down version of my code (with the fix): // Gives back: http://username:password@server:port/solr/... public HttpSolrClient getSolrClient() { // the next two lines is the fix String username = URLEncoder.encode(

Re: Reserved characters in password used by Jetty (Solr)

2016-12-05 Thread Shawn Heisey
On 12/5/2016 8:10 AM, Steven White wrote: > Hi everyone, > > I'm password protecting Solr using Jetty's realm.properties and noticed > that if the password has "@" Jetty throws an error and thus I cannot access > Solr: > My question is, what are the reserved character list? Are they listed > some

Reserved characters in password used by Jetty (Solr)

2016-12-05 Thread Steven White
Hi everyone, I'm password protecting Solr using Jetty's realm.properties and noticed that if the password has "@" Jetty throws an error and thus I cannot access Solr: java.lang.IllegalArgumentException: Illegal character in fragment at index 31: SolrAdminUser:81#Mst#Demo@18 @localhost:8983/solr/d