Page MenuHomePhabricator

Community Wishlist vote ending with a space character fails
Closed, ResolvedPublicBUG REPORT

Assigned To
Authored By
Ponor
Feb 8 2026, 2:48 PM
Referenced Files
F72783564: 2026-03-09_15-06-48.mp4
Mar 9 2026, 10:07 PM
F72449454: 2026-02-27_12-22-59.png
Feb 27 2026, 9:00 PM
F72449430: 2026-02-27_12-42-16.png
Feb 27 2026, 9:00 PM
F72449428: 2026-02-27_12-42-04.png
Feb 27 2026, 9:00 PM
F72449425: 2026-02-27_12-36-37.webm
Feb 27 2026, 9:00 PM
F72449515: 2026-02-27_09-52-28.webm
Feb 27 2026, 9:00 PM
F72449511: 2026-02-27_09-51-08.webm
Feb 27 2026, 9:00 PM

Description

Steps to replicate the issue (include links if applicable):

What happens?:
The wish gets rejected: "Unable to parse wishlist vote. It may contain invalid wikitext. Please ensure there are no extraneous pipe characters in the wikitext."

Once the trailing space is removed, the support vote goes through.
Preciously reported at https://meta.wikimedia.org/wiki/Talk:Community_Wishlist#c-Ponor-20260207185200-Space_at_end_of_support_vote

Here is the refined output aligned with your requirements and bug documentation guidelines:


Derived Requirement

Ensure that a support vote submitted on a Community Wishlist page is successfully processed even if the user’s comment ends with a trailing space character.

  • A trailing space at the end of the vote comment must not cause parsing failure.
  • The vote must not be rejected due to whitespace-only formatting issues.
  • Valid support votes must be accepted regardless of trailing whitespace.
Test Steps

Preconditions:

  • User is logged in.
  • A Community Wishlist page with a "Support wish" link exists (e.g., Community_Wishlist/W402).
  • The wish is open for voting.

Test Case 1: Ensure vote succeeds when comment ends with trailing space

  1. Navigate to a Community Wishlist wish page.
  2. Click the "Support wish" link.
  3. Enter a valid support comment and intentionally add a space character at the end of the comment.
  4. Submit the vote.
  5. ✅❓❌⬜ AC1: The support vote is successfully posted and no parsing error message is displayed.

QA Results - Local

ACStatusDetails
1T416794#11690279

Event Timeline

mikez-WMF triaged this task as Medium priority.

Change #1239436 had a related patch set uploaded (by HMonroy; author: HMonroy):

[mediawiki/extensions/CommunityRequests@master] Trim trailing spaces from vote comments

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

Change #1239436 merged by jenkins-bot:

[mediawiki/extensions/CommunityRequests@master] Trim trailing spaces from vote comments

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

dmaza changed the task status from In Progress to Open.Feb 26 2026, 5:03 PM
dmaza moved this task from Feedback and Review to QA on the Community-Tech (Sea Lion Squad) board.

@HMonroy Can you please review the results better, and if you want me to create a task, whether the multiple trailing spaces are a separate issue? Thanks!

**Test Result - Local*

Status: ✅ PASS / ❓ Need More Info / ❌ FAIL
Environment: Local: 1.46.0-alpha (ca87176) 17:42, 26 February 2026; CommunityRequests – (f810e6d) 21:07, 25 February 2026; TemplateData - 0.2.0 (c8fc20b) 07:56, 24 February 2026
OS: macOS Tahoe 26.3
Browser: Chrome 143
Device: MBA
Emulated Device: NA

Test Artifact(s): Community Wishlist vote submission behavior

Test Steps

Preconditions:

  • User is logged in.
  • A Community Wishlist page with a "Support wish" link exists (e.g., Community_Wishlist/W402).
  • The wish is open for voting.

Test Case 1: Ensure vote succeeds when comment ends with trailing space

  1. Navigate to a Community Wishlist wish page.
  2. Click the "Support wish" link.
  3. Enter a valid support comment and intentionally add a space character at the end of the comment.
  4. Submit the vote.
  5. AC1: The support vote is successfully posted and no parsing error message is displayed.
✅ Trailing Spaces✅Trailing Spaces w/another user

❓ Is this ok? It created a text box when I did multiple lines, as seen in the video.

VideoVote Comment Multiple LinesVote Result
2026-02-27_12-42-04.png (732×543 px, 83 KB)
2026-02-27_12-42-16.png (822×481 px, 64 KB)

❌ I can't test in Meta Beta due to UNIQ parser

Meta Beta
2026-02-27_12-22-59.png (1,080×1,109 px, 211 KB)
GMikesell-WMF changed the task status from Open to In Progress.Feb 27 2026, 9:02 PM
GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF moved this task from QA to In Development on the Community-Tech (Sea Lion Squad) board.

@HMonroy I am still getting the same issue in Meta Beta as seen below

@HMonroy I am still getting the same issue in Meta Beta as seen below

That's expected behavior, it's how the wikitext is rendered. I believe it's caused by the newline and spaces before SDFSD F. Thank you!

HMonroy changed the task status from In Progress to Open.Mar 10 2026, 10:52 PM
HMonroy moved this task from In Development to QA on the Community-Tech (Sea Lion Squad) board.

@HMonroy I am still getting the same issue in Meta Beta as seen below

That's expected behavior, it's how the wikitext is rendered. I believe it's caused by the newline and spaces before SDFSD F. Thank you!

Ok, sounds good, I will mark this task as Resolved then. Thanks for all your work!

GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.