Closed
Bug 481283
Opened 16 years ago
Closed 16 years ago
User can submit questions with no content;required fields accept <space> as valid input
Categories
(support.mozilla.org :: General, defect, P4)
Tracking
(Not tracked)
VERIFIED
FIXED
1.0
People
(Reporter: krupa.mozbugs, Assigned: paulc)
References
()
Details
(Keywords: ue, Whiteboard: sumo_only)
Steps to reproduce:
1.Go to https://support-stage.mozilla.org
2.Click on "Ask a question"
3.Click on "Take me to the forum"
4.Click on "Ask a new question"
5.Enter <space> in all the fields and click submit.
expected result:
1.<spaces> are not accepted as valid in required field.
2.There is an informative user message about acceptable input
actual result:
User can submit questions with no content;required fields accept <space> as valid input
| Assignee | ||
Comment 1•16 years ago
|
||
Gotta do some trim() :)
I think we should require a minimum length for the question and also for the description. Of course since we have different languages going on, this should be reasonable over all of them.
Maybe around 20 characters for the question and 50 for the description.
Also, is there a bug on auto-completing the extensions section?
Krupa: Since you're an avid bug-reporter, when you file these, can you include a URL? Sometimes it saves time :) Thanks!
Assignee: nobody → paul.craciunoiu
| Reporter | ||
Comment 2•16 years ago
|
||
Sure,from now on I will make sure to add a URL! :)
| Assignee | ||
Comment 3•16 years ago
|
||
Comment 4•16 years ago
|
||
The number seems unimportant as long as there's something in there. If you want a limit, let's say 5. :)
Priority: -- → P4
| Assignee | ||
Comment 5•16 years ago
|
||
r23361 / r23362
Added some highlighted fields, etc. Everything is translatable.
Does anyone know if tiki already has form input validation built in?
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Comment 6•16 years ago
|
||
Logged in users can't use "Ask a Question" if a required annon email and name are required each time the validation function is called.
See http://viewvc.svn.mozilla.org/vc/projects/sumo/trunk/webroot/tiki-view_forum.php?r1=23360&r2=23361&pathrev=23361&limit_changes=100#l30
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Assignee | ||
Comment 7•16 years ago
|
||
I successfully created
https://support-stage.mozilla.org/tiki-view_forum_thread.php?comments_parentId=233491&forumId=1
just now, as an anonymous user. Why are they unable to use it?
Comment 8•16 years ago
|
||
A logged in user.(In reply to comment #7)
> I successfully created
> https://support-stage.mozilla.org/tiki-view_forum_thread.php?comments_parentId=233491&forumId=1
> just now, as an anonymous user. Why are they unable to use it?
Uh...Logged in users? comment 6.
Logged in users aren't shown two of the required fields, so the validation check will fail. ;)
STR
1. Log in
2. Visit https://support-stage.mozilla.org/tiki-view_forum.php?locale=en-US&forumId=1
3. Use Ask a Question to create a new topic
Expected:
Topic is created
Actual
"Before you can send us your question, please enter valid information for the highlighted fields." error is displayed with nothing highlighted.
| Assignee | ||
Comment 9•16 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 10•16 years ago
|
||
Questions with just <Spaces> are not accepted.
Verified.
Status: RESOLVED → VERIFIED
| Assignee | ||
Comment 11•16 years ago
|
||
After some testing, turns out the validation function didn't work for editing the question (for some reason, the fields are named differently on editing existing vs asking a new question, no idea why...).
So now the validation accounts for that as well.
r23522 / r23523
Status: VERIFIED → RESOLVED
Closed: 16 years ago → 16 years ago
Updated•16 years ago
|
Target Milestone: 1.1 → 1.0
| Reporter | ||
Comment 12•16 years ago
|
||
<Spaces> are not accepted as valid question during edit.Verified.
Status: RESOLVED → VERIFIED
Updated•16 years ago
|
Whiteboard: sumo_only
You need to log in
before you can comment on or make changes to this bug.
Description
•