#1110429 qa.debian.org: 404 Not found due to trailing slash breaks codesearch.d.o

#1110429#5
Date:
2025-08-05 10:23:46 UTC
From:
To:
Using codesearch.debian.net all results links to files are broken and
result in HTTP 404 errors from sources.debian.org due to the (new)
trailing slash suffix.

Commit 71297d80 appears to be due to the same issue but my brief code
inspection didn't identify why the trailing slash is now required.

I've also reported for dcs:

https://github.com/Debian/dcs/issues/127

Example:

https://codesearch.debian.net/search?q=hardware-in-the-loop&literal=1

https://codesearch.debian.net/show?file=crrcsim_0.9.13-3.2%2Fdocumentation%2Finput_method%2FMNAV%2Fautopilot.txt&line=77

resolves to:

https://sources.debian.org/src/crrcsim/0.9.13-3.2/documentation/input_method/MNAV/autopilot.txt?hl=77#L77

and results in a HTTP 404.

Whereas the new URL style with trailing slash requires:

https://sources.debian.org/src/crrcsim/0.9.13-3.2/documentation/input_method/MNAV/autopilot.txt/?hl=77#L77

#1110429#10
Date:
2025-08-11 21:58:12 UTC
From:
To:
Hi Tj,

Thanks for reporting, and apologies in the delay getting back to this
important issue.

It has been fixed in commit 80641b790c2da32f48894f88e70b265731937d81
and deployed to sources.debian.org. Let me know if you experience any
other unexpected 404.

Best,
--
Matthieu