Closed
Bug 501162
Opened 16 years ago
Closed 16 years ago
Comma-separated tags are saved as single tag
Categories
(addons.mozilla.org Graveyard :: Public Pages, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
5.0.7
People
(Reporter: krupa.mozbugs, Assigned: expatrick)
References
()
Details
(Whiteboard: [webmocha])
Attachments
(2 files, 1 obsolete file)
163.52 KB,
image/png
|
Details | |
810 bytes,
patch
|
Details | Diff | Splinter Review |
steps to reproduce:
1.Log in to your AMO account
2.Navigate to any add-on's detail page
3.Click on "add a tag" link
4.Enter -test1,test2,test3.test4,test5,test6,test7,test8 and click add
expected result:
each comma separated tag is saved as a different tag
actual result:
test1,test2,test3.test4,test5,test6,test7,test8 is saved as a single tag
Comment 1•16 years ago
|
||
Tags are space separated, not commas. :-/ I filed a separate bug to put an example next to the add box.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 2•16 years ago
|
||
Wil,as per the specs,tags are comma delimited.
screenshot of spec :http://screencast.com/t/DGGmNymwI1A
Either its a bug in the spec or in implementation.Please provide further clarification.Thanks.
reopening...
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 3•16 years ago
|
||
You are right, as usual. :) /me is a fan of space separated tags
Assignee: nobody → mikelee
Whiteboard: [webmocha]
Updated•16 years ago
|
OS: Mac OS X → All
Summary: Comma separated tags are saved as single tag → Comma-separated tags are saved as single tag
Assignee | ||
Comment 4•16 years ago
|
||
No problem to delimit tags on commas outside of quotes as well as spaces. I defer to Wil.
Comment 5•16 years ago
|
||
Delimit on commas, let's follow the spec. I don't know why we're requiring quotes then, but let's stick with it for now.
Assignee | ||
Comment 6•16 years ago
|
||
Assignee | ||
Updated•16 years ago
|
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Comment 7•16 years ago
|
||
using $_REQUEST here just plain won't work (they aren't passed in like that) and it also defeats the purpose of CSRF. Please use $_POST - and it's probably best to keep that in the other bug anyway.
As far as the patch to split on commas, won't that split on commas between quotes too?
"Brooklyn Bridge", "New York, NY", bridge
^^ That should be 3 tags. split()ing on a comma will make it 4.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 8•16 years ago
|
||
Attachment #386190 -
Attachment is obsolete: true
Comment 9•16 years ago
|
||
r29256, thanks!
Status: REOPENED → RESOLVED
Closed: 16 years ago → 16 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•