VisualEditor does not handle TitleBlacklist errors with custom error messages.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
ve.init.mw.Target: Update TitleBlacklist error code | mediawiki/extensions/VisualEditor | master | +1 -1 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | matmarex | T116198 VisualEditor does not handle TitleBlacklist errors with custom error messages | |||
Resolved | matmarex | T115258 TitleBlacklist's error message in the API has no machine-readable information that it's caused by a blacklisted title |
Event Timeline
Comment Actions
Change 251193 had a related patch set uploaded (by Bartosz Dziewoński):
ve.init.mw.Target: Update TitleBlacklist error code
Comment Actions
Change 251193 merged by jenkins-bot:
ve.init.mw.Target: Update TitleBlacklist error code
Comment Actions
So, right now VisualEditor will recognize all save failures caused by TitleBlacklist, but it will still show only the generic error message. The complete one should appear in notices, though.
The API now also provides information about the exact error message to display (error.message) and the TitleBlacklist rule that matched (error.line), but we probably don't have that message client-side, so we're not trying to display it. Maybe when we can load it (T40280).
I'm going to close this, good enough for me.