Project

Profile

Help

Bug #6237

closed

HTTP redirection expects an absolute URI in the location field

Added by Michael Kay 7 months ago. Updated 6 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Resolvers
Sprint/Milestone:
-
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

Also available in: Atom PDF