URLs to directories not ending with a slash are not redirected properly #2

Closed
opened 2024-04-09 12:08:29 +02:00 by matteo · 0 comments
Owner

URLs to "directories" (which in S3 are just prefixes) are not properly rewritten to contain a slash and the client re-directed. This is a bug.

Assume there is an object in a bucket: prefix/object

Then the following URL will show an empty listing: https://hostname/prefix

While the following URL will show the correct listing: https://hostname/prefix/

If there is no object at https://hostname/prefix, we should produce a 301 permanent redirect appending a slash at the end.

URLs to "directories" (which in S3 are just prefixes) are not properly rewritten to contain a slash and the client re-directed. This is a bug. Assume there is an object in a bucket: `prefix/object` Then the following URL will show an empty listing: https://hostname/prefix While the following URL will show the correct listing: https://hostname/prefix/ If there is no object at https://hostname/prefix, we should produce a 301 permanent redirect appending a slash at the end.
matteo added reference main 2024-04-19 09:49:56 +02:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: matteo/serves3#2
No description provided.