lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: Reserved characters in password used by Jetty (Solr)
Date Mon, 05 Dec 2016 15:45:34 GMT
On 12/5/2016 8:10 AM, Steven White wrote:
> Hi everyone,
> I'm password protecting Solr using Jetty's 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
> somewhere?

The password is being included with the URL, so the restrictions are
whatever's legal in a URL.  I am guessing that what is happening here is
that the password is not being run through URI encoding.  Encoding the
string should allow *any* character to be used, as long as it's valid UTF-8.

As a possible workaround, you could try setting the password in SolrJ to
the URI encoded version, which for the password you indicated would be:


If this works, which I think it probably will, then there's a bug.  I do
not know whether the bug is in SolrJ or HttpClient.  One of them is not
URI encoding the password before sending it.  It would be helpful if you
shared your SolrJ code that sets the user/password, so we can determine
where the bug is.

I got the URI encoded version of the password by using the form at this URL:


View raw message