- find out the allowed limit of edit summaries on the wiki
- pass the limit to the EditMetadataValidator constructor and validate accordingly
- respond with 400 in case of validation failure: error code comment-too-long in case of max length violation error message "Comment must not be longer than {LIMIT} characters."
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
REST: Validate length of user provided comment | mediawiki/extensions/Wikibase | master | +81 -5 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | WMDE-leszek | T311125 🟧️ Use user provided "comment" field as edit summary | |||
Resolved | Silvan_WMDE | T311151 🟧️ Change EditMetadataValidator to validate the edit summary length |
Event Timeline
Comment Actions
Change 809189 had a related patch set uploaded (by Silvan Heintze; author: Silvan Heintze):
[mediawiki/extensions/Wikibase@master] REST: Validate length of user provided comment
Comment Actions
Change 809189 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] REST: Validate length of user provided comment