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.
Description
Details
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Ifrahkhanyaree_WMDE | T344228 Functionality for REST API v1 | |||
Resolved | None | T306937 🟥️ Remove a statement of an item | |||
Resolved | Jakob_WMDE | T312922 🟥️ Create a new middleware to handle If-Match and If-Unmodified-Since headers |
Event Timeline
Change 816809 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Introduce ModifiedPreconditionMiddleware
Change 817720 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Use ModifiedPreconditionMiddleware
Change 817743 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: DRY up using PreconditionMiddlewareFactory
Change 816809 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Introduce ModifiedPreconditionMiddleware
Change 817720 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Use ModifiedPreconditionMiddleware
Change 819018 had a related patch set uploaded (by Jakob; author: Jakob):
[mediawiki/extensions/Wikibase@master] REST: Combine precondition middlewares into one
Change 817743 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: DRY up using PreconditionMiddlewareFactory
Change 819018 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Combine precondition middlewares into one
@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.