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)
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)
|
1.44 KB,
patch
|
Details | Diff | Splinter Review | |
|
1.55 KB,
patch
|
Details | Diff | Splinter Review |
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
Updated•12 years ago
|
Component: Consumer Pages → API
Priority: -- → P3
Comment 1•12 years ago
|
||
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
| Assignee | ||
Comment 2•11 years ago
|
||
PR : https://github.com/mozilla/zamboni/pull/3273/
travis build passed.
Please verify.
Flags: needinfo?(mpillard)
| Assignee | ||
Comment 3•11 years ago
|
||
PR : https://github.com/mozilla/zamboni/pull/3273
Please verify
Comment 4•11 years ago
|
||
Fixed in the API side in https://github.com/mozilla/zamboni/commit/f251df3e1e08354488296066ed2e06ce998f7f77
Assignee: nobody → lucky.lavish
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(mpillard)
Resolution: --- → FIXED
Target Milestone: 2014-09-16 → 2015-08-25
| Reporter | ||
Comment 5•11 years ago
|
||
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 → ---
Comment 6•11 years ago
|
||
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
| Reporter | ||
Comment 7•11 years ago
|
||
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
Updated•11 years ago
|
Mentor: mpillard
Whiteboard: [good first bug][lang=py]
You need to log in
before you can comment on or make changes to this bug.
Description
•