Page MenuHomePhabricator

[S] English Beta Wiki allowing unlimited characters to be inserted into Additional Details and Something Else text fields
Closed, ResolvedPublicBUG REPORT

Description

When user is inserting text into Something Else field or Additional Details field and the character counter starts counting in descending order, the user is able to enter an unlimited amount of text into the text fields, but these text fields should not allow more than 500 characters to be inserted, also when the character counter appears its going beyond 0 and will continue counting in descending order using negative numbers such as -1 -2 -3 and so on.

Steps to reproduce:

  1. Open any beta wiki url
  2. Log in with a user that has at least 1 edit
  3. Go to a User Talk page
  4. Select the Report option
  5. Select Proceed to File A Report
  6. Start inserting text into the Additional Details field and and when you have inserted at least 400 characters you will see the character counter appear on the bottom left or right corner of the text field (depending upon which language beta you are using).
  7. When you have inserted more than 500 characters you will notice the counter shows a negative count instead of stopping at 0, and you are still allowed to enter more than 500 characters into each text field.

image.png (686×907 px, 233 KB)
image.png (526×1 px, 250 KB)

Expected Result:
User should not be able to enter more than 500 characters into either text field, and the character counter should stop at 0 when you try to insert more than 500 characters.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 971237 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/ReportIncident@master] Add 'jquery.lengthLimit' to the dependencies list in extension.json

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

Dreamy_Jazz renamed this task from English Beta Wiki allowing unlimited characters to be inserted into Additional Details and Something Else text fields to [S] English Beta Wiki allowing unlimited characters to be inserted into Additional Details and Something Else text fields.Nov 2 2023, 5:15 PM
Dreamy_Jazz claimed this task.
Djackson-ctr renamed this task from [S] English Beta Wiki allowing unlimited characters to be inserted into Additional Details and Something Else text fields to English Beta Wiki allowing unlimited characters to be inserted into Additional Details and Something Else text fields.Nov 2 2023, 5:25 PM
Djackson-ctr updated the task description. (Show Details)
Dreamy_Jazz renamed this task from English Beta Wiki allowing unlimited characters to be inserted into Additional Details and Something Else text fields to [S] English Beta Wiki allowing unlimited characters to be inserted into Additional Details and Something Else text fields.Nov 2 2023, 5:26 PM
Dreamy_Jazz updated the task description. (Show Details)

Change 971237 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] Add 'jquery.lengthLimit' to the dependencies list in extension.json

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

Test wiki created on Patch demo by DJacksonA using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/becaa89c51/w

Test wiki on Patch demo by DJacksonA using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/becaa89c51/w/