Closed Bug 1066155 Opened 12 years ago Closed 11 years ago

Feedback message containing only blank spaces can be sent

Categories

(Marketplace Graveyard :: API, defect, P3)

Avenir
x86_64
Windows 7
defect

Tracking

(Not tracked)

VERIFIED FIXED
2015-08-25

People

(Reporter: madalin.cotetiu, Assigned: lucky.lavish, Mentored)

References

()

Details

(Whiteboard: [good first bug][lang=py])

Attachments

(2 files)

Steps to reproduce: 1. Open marketplace homepage and login https://marketplace-dev.allizom.org/ 2. Hover over the gear icon and click on Feedback 3. Press the space bar to enter some blank spaces 4. Click the Send button Expected results: An error message is displayed stating that invalid characters are introduced or that the feedback message is invalid. Actual results: The empty feedback message is displayed. Notes/Issues: The same issue reproduce in Report Abuse form. Verified in FF35(Win7) Issue is reproducing in -dev, stage and production. Screencast for this issue: http://screencast.com/t/jnl6xCyT18
Component: Consumer Pages → API
Priority: -- → P3
This should be fixed in Fireplace (the `textarea` field) and Zamboni (the API endpoint). We fixed this for the Display Name by adding a pattern that disallows an input value of entirely whitespace characters: pattern="[^\s].*|\s+\S.+" See here: https://github.com/mozilla/fireplace/blob/70f8066/src/templates/settings/main.html#L23
PR : https://github.com/mozilla/zamboni/pull/3273/ travis build passed. Please verify.
Flags: needinfo?(mpillard)
Attached patch code refactored — — Splinter Review
Assignee: nobody → lucky.lavish
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(mpillard)
Resolution: --- → FIXED
Target Milestone: 2014-09-16 → 2015-08-25
I think that the Submit Feedback button should be inactive if empty string is added. Now we are returning an error message when an empty string is submitted, which is confusing. http://screencast.com/t/zyYm9Lnro Reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Madalin: please open a new bug in consumer pages for this. The API behaves correctly now.
Status: REOPENED → RESOLVED
Closed: 11 years ago → 11 years ago
Resolution: --- → FIXED
Mathieu you are right the API is working correctly. I have filled Bug 1197203 for the front end part. Closing this bug.
Status: RESOLVED → VERIFIED
Mentor: mpillard
Whiteboard: [good first bug][lang=py]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: