Skip to content
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

404 and 403 means almost the same for slash identity #84

Open
joesong168 opened this issue Dec 30, 2019 · 1 comment
Open

404 and 403 means almost the same for slash identity #84

joesong168 opened this issue Dec 30, 2019 · 1 comment

Comments

@joesong168
Copy link

For some implementation, the web server's response to slash identity is hard to change. So is it possible to also tolerant 403?

Forward slash gives 404
Elapsed time (ms): 3684
url: http://iiif.etu.huiyouwenhua.com/image/a/b/full/full/0/default.jpg
got: Expected 404 for status; Got: 403
expected: 404
type: url-check
message: Failed to get random identifier from url http://iiif.etu.huiyouwenhua.com/image/a/b/full/full/0/default.jpg.
warning: false

@glenrobson
Copy link
Member

According to the spec the response codes are:

Status Description
403 Forbidden The user, authenticated or not, is not permitted to perform the requested operation.
404 Not Found The image resource specified by identifier does not exist, the value of one or more of the parameters is not supported for this image, or the requested size is greater than the limits specified.

So I think 404 is the correct response but I'm open to allowing 403. What do you think @IIIF/editors?

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

2 participants