Page MenuHomePhabricator

🟧️ Change EditMetadataValidator to validate the edit summary length
Closed, ResolvedPublic

Description

  • 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."

Event Timeline

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

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

Change 809189 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Validate length of user provided comment

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