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:
<snip>
> 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:

81%23Mst%23Demo%4018

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:

http://urldecode.org/

Thanks,
Shawn

Reply via email to