-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
3.15 regression: Unset default namespace version suddenly raises 404 #9334
Comments
It's possible I interpreted the documentation wrong, but here it says
The "unless it is None" part refers to This is also consistent with how other versioning schemes behave, see TestAcceptHeaderAllowedAndDefaultVersion.test_missing_without_default and TestAcceptHeaderAllowedAndDefaultVersion.test_missing_without_default_but_none_allowed. I added equivalent tests in To fix the problem, you have to add I could be wrong but please review this again. You might be relying on incorrect, undocumented behavior. The API changes only make the behavior consistent with the documentation and with other versioning schemes. |
Fair enough, it's actually not a big deal to make that change. The issue is more about the unexpected breakage, instead of going through the usual deprecation stages. |
DEFAULT_VERSION
is ignored. The description of the fix relates to non-None
values ofDEFAULT_VERSION
.DEFAULT_VERSION
isNone
andALLOWED_VERSIONS
is non-empty, the new code now raises 404.None
would be returned in this case. This suddenly raises 404 where previously the view was properly run.This is a regression that significantly changes the API. The change should be reverted.
The text was updated successfully, but these errors were encountered: