Page MenuHomePhabricator

Fix database migrate tag and template error due to excessive string length for linter tag or template strings
Closed, ResolvedPublic

Description

The linter data migration code for linter_tag field and linter_template field are constrained by the database schema to 32 characters for the tag field and 255 characters for the template field.
In some anomalous circumstances Parsoid can create linter_params field json object that contain tag and or template fields that exceed those character limits. This code truncates these excessively long strings to protect the database migrate update code from a length exceeded error.

Event Timeline

Change 887402 had a related patch set uploaded (by Sbailey; author: Sbailey):

[mediawiki/extensions/Linter@master] Fix migrate data error when params has excessively long strings

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

Change 887402 merged by Sbailey:

[mediawiki/extensions/Linter@master] Fix migrate data error when params has excessively long strings

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