Page MenuHomePhabricator

Community Wishlist vote ending with a space character fails
Open, In Progress, MediumPublicBUG REPORT

Assigned To
Authored By
Ponor
Sun, Feb 8, 2:48 PM
Referenced Files
F72449454: 2026-02-27_12-22-59.png
Fri, Feb 27, 9:00 PM
F72449430: 2026-02-27_12-42-16.png
Fri, Feb 27, 9:00 PM
F72449428: 2026-02-27_12-42-04.png
Fri, Feb 27, 9:00 PM
F72449425: 2026-02-27_12-36-37.webm
Fri, Feb 27, 9:00 PM
F72449515: 2026-02-27_09-52-28.webm
Fri, Feb 27, 9:00 PM
F72449511: 2026-02-27_09-51-08.webm
Fri, Feb 27, 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#11659707

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.Thu, Feb 26, 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 (543×732 px, 83 KB)
2026-02-27_12-42-16.png (481×822 px, 64 KB)

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

Meta Beta
2026-02-27_12-22-59.png (1×1 px, 211 KB)
GMikesell-WMF changed the task status from Open to In Progress.Fri, Feb 27, 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.