i am trying to use remote gallery to access a gallery where the
web site is protected by apache digest authentication.
the login fails due to the following error extracted from apache logs
Digest: uri mismatch -
</gallery2/main.php%3Fg2_controller=remote.GalleryRemote&g2_form%5Bcmd%5D=no-op>
does not match request-uri
</gallery2/main.php?g2_controller=remote.GalleryRemote&g2_form%5Bcmd%5D=no-op>
the key difference is between main.php%3F and main.php?
can anyone offer suggestions as to a resolution or direct me as
to where i should focus my debugging efforts ?
for information, the url rewriting (apache) is in-place.
Many Thanks
Gallery Remote: 1.5.1-b30
Gallery version: 2.2.2
PHP version: 5.1.6
Webserver: Apache 2.2.3
Operating system: CentOS 5
Posts: 3
problems seems to lie in HTTPClient.DefaultAuthHandler (line 470).
fixing with ...
// fix up uri and nonce
params[uri] = new NVPair("uri",
URI.escape(req.getRequestURI(), URI.escpdQueryChar, false));
// URI.escape(req.getRequestURI(), URI.escpdPathChar, false));
seems to do the trick.
References, http://www.ietf.org/rfc/rfc2617.txt (Section 3.2.2.5)