Project

Profile

Help

Bug #6237

closed

HTTP redirection expects an absolute URI in the location field

Added by Michael Kay 6 months ago. Updated 5 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.

Actions #1

Updated by Norm Tovey-Walsh 6 months ago

Yes, it certainly should. I thought it was. Assign this to me, if you'd like.

Actions #2

Updated by Michael Kay 6 months ago

  • Status changed from New to Resolved
  • Fix Committed on Branch 11, 12, trunk added
  • Platforms Java added
Actions #3

Updated by O'Neil Delpratt 5 months ago

  • Fixed in Maintenance Release 12.4 added

Bug fix applied in the Saxon 12.4 Maintenance release. Leaving it marked as 'Resolved' until fix applied on Saxon 11.

Please register to edit this issue

Also available in: Atom PDF