Page MenuHomePhabricator

🟥️ Create a new middleware to handle If-Match and If-Unmodified-Since headers
Closed, ResolvedPublic

Description

This will be similar to the middleware created for the corresponding if-none-match etc headers, and will respond with a 412 response if precondition fails.

Event Timeline

Change 816809 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Introduce ModifiedPreconditionMiddleware

https://gerrit.wikimedia.org/r/816809

Change 817720 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Use ModifiedPreconditionMiddleware

https://gerrit.wikimedia.org/r/817720

Change 817743 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: DRY up using PreconditionMiddlewareFactory

https://gerrit.wikimedia.org/r/817743

Change 816809 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Introduce ModifiedPreconditionMiddleware

https://gerrit.wikimedia.org/r/816809

Change 817720 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Use ModifiedPreconditionMiddleware

https://gerrit.wikimedia.org/r/817720

Change 819018 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Combine precondition middlewares into one

https://gerrit.wikimedia.org/r/819018

Change 817743 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: DRY up using PreconditionMiddlewareFactory

https://gerrit.wikimedia.org/r/817743

Change 819018 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Combine precondition middlewares into one

https://gerrit.wikimedia.org/r/819018

@Jakob_WMDE: Assuming this task is resolved. Thus setting resolved task status. Please reopen and add an active project tag if that is not the case. Thanks.