Actions
Bug #6237
closedHTTP redirection expects an absolute URI in the location field
Start date:
2023-10-31
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
11, 12, trunk
Fix Committed on Branch:
11, 12, trunk
Fixed in Maintenance Release:
Platforms:
Java
Description
When Saxon does its own URI dereferencing using the ResourceLoader
class, and the HTTP request delivers a 301 response, access is retried using the URI contained in the location
field of the HTTP response header. This fails if the location supplied is a relative URI rather than an absolute URI. It should be resolved against the request URI.
For example, a request to https://www.saxonica.com
returns a 301 response with location=/index.html
, and the next request should be to https://www.saxonica.com/index.html
.
Please register to edit this issue
Actions