⚓ T417797 [MEX] Display errors using HTML format
Page Menu
Phabricator
Create Task
Maniphest
T417797
[MEX] Display errors using HTML format
Closed, Resolved
Public
Actions
Edit Task
Edit Related Tasks...
Create Subtask
Edit Parent Tasks
Edit Subtasks
Merge Duplicates In
Close As Duplicate
Edit Related Objects...
Edit Commits
Edit Mocks
Mute Notifications
Protect as security issue
Assigned To
mahmoud.abdelsattar.wmde
Authored By
Lucas_Werkmeister_WMDE
Feb 18 2026, 3:54 PM
2026-02-18 15:54:02 (UTC+0)
Tags
Wikidata
(incoming)
MW-1.46-notes (1.46.0-wmf.26; 2026-04-28)
Wikidata-Omega (Completed Tasks)
(Newly completed tasks)
Referenced Files
None
Subscribers
Aklapper
Arian_Bozorg
Lucas_Werkmeister_WMDE
mahmoud.abdelsattar.wmde
Sadiya.Mohammed_WMDE
Description
In
Mathematical expression: Simple text input
(for
T405730
), we changed the API
errorformat
parameter from
html
to
plaintext
. However, in the long term we should return to the HTML error format, as it can be more informative (e.g. hyperlinks might have been stripped from the plain text; AbuseFilter errors might have contained an error box).
Acceptance criteria:
All wbui2025 API requests use
errorformat=html
HTML errors are displayed correctly (no double-escaping but also no XSS vulnerability)
Details
Related Changes in Gerrit:
Subject
Repo
Branch
Lines +/-
Display errors using HTML format
mediawiki/extensions/Wikibase
master
+35
-13
Customize query in gerrit
Related Objects
Search...
Task Graph
Mentions
Status
Subtype
Assigned
Task
Open
None
T394621
[MEX] Mobile Editing Experience of Items Project
Resolved
mahmoud.abdelsattar.wmde
T417797
[MEX] Display errors using HTML format
Mentioned Here
T304945: Remove custom error responses (localization, several errors) from Wikibase APIs
T405730: [MEX] M4.1.5 - Mathematical expression: Simple text input (string) with value specific output
Event Timeline
Lucas_Werkmeister_WMDE
created this task.
Feb 18 2026, 3:54 PM
2026-02-18 15:54:02 (UTC+0)
Restricted Application
added a subscriber:
Aklapper
View Herald Transcript
Feb 18 2026, 3:54 PM
2026-02-18 15:54:04 (UTC+0)
karapayneWMDE
moved this task from
Incoming
to
Ready for Task Time (Story Writing)
on the
Wikidata-Omega
board.
Feb 23 2026, 7:28 PM
2026-02-23 19:28:41 (UTC+0)
mahmoud.abdelsattar.wmde
moved this task from
Ready for Task Time (Story Writing)
to
The Backlog
on the
Wikidata-Omega
board.
Feb 24 2026, 12:55 PM
2026-02-24 12:55:15 (UTC+0)
Sadiya.Mohammed_WMDE
claimed this task.
Mar 4 2026, 9:02 AM
2026-03-04 09:02:46 (UTC+0)
Sadiya.Mohammed_WMDE
moved this task from
The Backlog
to
The Board
on the
Wikidata-Omega
board.
Sadiya.Mohammed_WMDE
edited projects, added
Wikidata-Omega (The Board)
; removed
Wikidata-Omega
Sadiya.Mohammed_WMDE
moved this task from
new to the board
to
In Development
on the
Wikidata-Omega (The Board)
board.
gerritbot
added a comment.
Mar 4 2026, 12:07 PM
2026-03-04 12:07:41 (UTC+0)
Comment Actions
Change #1247982 had a related patch set uploaded (by Sadiya.mohammed13; author: Sadiya.mohammed13):
[mediawiki/extensions/Wikibase@master] Display errors using HTML format
gerritbot
added a project:
Patch-For-Review
Mar 4 2026, 12:07 PM
2026-03-04 12:07:42 (UTC+0)
Sadiya.Mohammed_WMDE
removed
Sadiya.Mohammed_WMDE
as the assignee of this task.
Mar 4 2026, 3:39 PM
2026-03-04 15:39:29 (UTC+0)
Sadiya.Mohammed_WMDE
moved this task from
In Development
to
Ready for Peer Review
on the
Wikidata-Omega (The Board)
board.
Sadiya.Mohammed_WMDE
subscribed.
mahmoud.abdelsattar.wmde
claimed this task.
Mar 10 2026, 2:33 PM
2026-03-10 14:33:00 (UTC+0)
mahmoud.abdelsattar.wmde
moved this task from
Ready for Peer Review
to
In Peer Review
on the
Wikidata-Omega (The Board)
board.
mahmoud.abdelsattar.wmde
reassigned this task from
mahmoud.abdelsattar.wmde
to
Sadiya.Mohammed_WMDE
Mar 12 2026, 9:18 AM
2026-03-12 09:18:33 (UTC+0)
mahmoud.abdelsattar.wmde
moved this task from
In Peer Review
to
Ready for Development
on the
Wikidata-Omega (The Board)
board.
mahmoud.abdelsattar.wmde
subscribed.
Comment Actions
I added some comments o the patch.
Thank you!
Sadiya.Mohammed_WMDE
reassigned this task from
Sadiya.Mohammed_WMDE
to
mahmoud.abdelsattar.wmde
Mar 12 2026, 3:21 PM
2026-03-12 15:21:33 (UTC+0)
Sadiya.Mohammed_WMDE
moved this task from
Ready for Development
to
In Peer Review
on the
Wikidata-Omega (The Board)
board.
mahmoud.abdelsattar.wmde
removed
mahmoud.abdelsattar.wmde
as the assignee of this task.
Mar 16 2026, 1:25 PM
2026-03-16 13:25:36 (UTC+0)
mahmoud.abdelsattar.wmde
moved this task from
In Peer Review
to
Ready for Peer Review
on the
Wikidata-Omega (The Board)
board.
mahmoud.abdelsattar.wmde
assigned this task to
Sadiya.Mohammed_WMDE
Thu, Apr 2, 9:29 AM
2026-04-02 09:29:33 (UTC+0)
mahmoud.abdelsattar.wmde
moved this task from
Ready for Peer Review
to
Ready for Development
on the
Wikidata-Omega (The Board)
board.
Comment Actions
@Sadiya.Mohammed_WMDE
Could you please check the comments in the patch?
Thank you!
Sadiya.Mohammed_WMDE
removed
Sadiya.Mohammed_WMDE
as the assignee of this task.
Thu, Apr 2, 1:38 PM
2026-04-02 13:38:14 (UTC+0)
Sadiya.Mohammed_WMDE
moved this task from
Ready for Development
to
Ready for Peer Review
on the
Wikidata-Omega (The Board)
board.
Lucas_Werkmeister_WMDE
claimed this task.
Tue, Apr 7, 10:20 AM
2026-04-07 10:20:21 (UTC+0)
Lucas_Werkmeister_WMDE
moved this task from
Ready for Peer Review
to
In Peer Review
on the
Wikidata-Omega (The Board)
board.
Lucas_Werkmeister_WMDE
added a comment.
Wed, Apr 8, 12:51 PM
2026-04-08 12:51:12 (UTC+0)
Comment Actions
I mentioned this on Gerrit but it seems worth pointing out here too: our effort to display useful errors in HTML is somewhat hampered by the weird structure of errors in Wikibase API responses – see
T304945
. Maybe now is a good time to tackle that task.
gerritbot
added a comment.
Thu, Apr 16, 3:51 PM
2026-04-16 15:51:12 (UTC+0)
Comment Actions
Change #1247982
merged
by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Display errors using HTML format
Lucas_Werkmeister_WMDE
removed
Lucas_Werkmeister_WMDE
as the assignee of this task.
Thu, Apr 16, 3:52 PM
2026-04-16 15:52:57 (UTC+0)
Lucas_Werkmeister_WMDE
moved this task from
In Peer Review
to
Product Verification
on the
Wikidata-Omega (The Board)
board.
Comment Actions
Not sure if this goes into Tech or Product Verification… let’s try Product.
ReleaseTaggerBot
added a project:
MW-1.46-notes (1.46.0-wmf.26; 2026-04-28)
Thu, Apr 16, 4:00 PM
2026-04-16 16:00:51 (UTC+0)
Maintenance_bot
removed a project:
Patch-For-Review
Thu, Apr 16, 4:32 PM
2026-04-16 16:32:04 (UTC+0)
Arian_Bozorg
subscribed.
Mon, Apr 20, 1:12 PM
2026-04-20 13:12:43 (UTC+0)
Comment Actions
Is there an example I can check this one on?
Arian_Bozorg
moved this task from
Product Verification
to
In Tech Verification
on the
Wikidata-Omega (The Board)
board.
Mon, Apr 20, 1:13 PM
2026-04-20 13:13:21 (UTC+0)
mahmoud.abdelsattar.wmde
added a comment.
Mon, Apr 20, 1:25 PM
2026-04-20 13:25:36 (UTC+0)
Comment Actions
@Arian_Bozorg
Sure.
Open any item page.
Create/edit any math expression statement. Type in the value any invalid character like "\".
Or, in URL statement type, use a invalid protocol like "hpsfs://".
(before saving open the browser inspector on the network tab and check for the requests "api.php?..." and check the:
Save.
Check for:
"Payload" tab for "errorformat=html".
"Preview/Response" tab and check the "html" node in the response tree.
mahmoud.abdelsattar.wmde
added a comment.
Wed, Apr 22, 8:45 AM
2026-04-22 08:45:40 (UTC+0)
Comment Actions
TV: No issues found and the acceptance criteria are met.
Thank you!
mahmoud.abdelsattar.wmde
closed this task as
Resolved
Wed, Apr 22, 8:45 AM
2026-04-22 08:45:47 (UTC+0)
mahmoud.abdelsattar.wmde
claimed this task.
mahmoud.abdelsattar.wmde
moved this task from
In Tech Verification
to
Done - Moving a task here will move it to the completed tasks workboard, resolve the ticket, and assign it to whomever made the move
on the
Wikidata-Omega (The Board)
board.
mahmoud.abdelsattar.wmde
edited projects, added
Wikidata-Omega (Completed Tasks)
; removed
Wikidata-Omega (The Board)
Log In to Comment
Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct.
Wikimedia Foundation
Code of Conduct
Disclaimer
CC-BY-SA
GPL
Credits
US