This patch allows adore-djatoka to properly resolve source image URLs that contain URL-encoded basic auth credentials, for example:
http://user:[email protected]/gmd/gmd433/g4330/g4330/np000066.jp2
Note that this way of passing credentials has been deprecated in
RFC3986. It is only used to pass the
credentials to adore-djatoka, which then uses the Authorization
header to
communicate with the target server.
Previously adore-djatoka would parse the source URL, but not use the URL-encoded credentials to make the subsequent request to the source URL.
With this patch adore-djatoka can resolve source URLs like this:
curl -G
'https://localhost.lan/adore-djatoka/resolver' \
-d url_ver=Z39.88-2004 \
-d rft_id=http://user:[email protected]/gmd/gmd433/g4330/g4330/np000066.jp2 \
-d svc_id=info:lanl-repo/svc/getRegion \
-d svc_val_fmt=info:ofi/fmt:kev:mtx:jpeg2000 \
-d svc.format=image/jpeg \
-d svc.level=3
It can be applied on top of the adore-ajatoka 1.1 source code available from sourceforge.net/projects/djatoka.