News for hackers. Stuff that matters.
Re:It is incorrect to "normalize" // in HTTP URL paths by secondcoming on Saturday April 18, 2026 @05:26AM (#47814481)
If a user of S3 knows that directories aren't real why would they expect directory-related normalisation to happen?
Re:It is incorrect to "normalize" // in HTTP URL paths by dale_glass on Saturday April 18, 2026 @03:57PM (#47819024)
Precisely because of it. On Linux, /bin/bash, //bin/bash and /bin//bash are the exact same file, the same inode. They look somewhat off to people, but they're entirely harmless, so cleaning that up is an aesthetic choice, not something important.

On S3 they're different. Using the wrong paths causes weird issues, like not finding things you expect you find, or storing multiple versions of the same data out of sync.

Normalizing // to / means making S3 behave more like people expect.