Skip to content

An Internal Server Error occurs if the request URI has two forward slashes after the crate name #1409

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HTGAzureX1212 opened this issue May 30, 2021 · 2 comments

Comments

@HTGAzureX1212
Copy link

An unexpected HTTP 500 Internal Server Error response is returned if the request URI has to forward slashes after the crate name, for example:

https://docs.rs/winapi//

image

Tested on both Google Chrome and Firefox on Windows 21H1.

Thanks to Legorooj#2455 for bringing this up in the Rust Programming Language Community Server.

@syphar
Copy link
Member

syphar commented May 30, 2021

thank you for the report!

the actual error when I reproduce this locally is:

[ERROR] docs_rs::web: No error page for status Some(MovedPermanently); The request had a trailing slash.

@Legorooj
Copy link

I'd attempt to reproduce this myself locally if literally every option for how to run docs.rs locally in the README fails. Docker ports won't bind, can't find reference refs/remotes/origin/master, etc.

syphar added a commit to syphar/docs.rs that referenced this issue May 30, 2021
@jyn514 jyn514 closed this as completed in 2141e30 Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants