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)

x86
All
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: krupa.mozbugs, Assigned: expatrick)

References

()

Details

(Whiteboard: [webmocha])

Attachments

(2 files, 1 obsolete file)

Attached image screenshot
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
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
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 → ---
You are right, as usual. :) /me is a fan of space separated tags
Assignee: nobody → mikelee
Whiteboard: [webmocha]
Assignee: mikelee → expatrick
OS: Mac OS X → All
Summary: Comma separated tags are saved as single tag → Comma-separated tags are saved as single tag
No problem to delimit tags on commas outside of quotes as well as spaces. I defer to Wil.
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.
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
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 → ---
r29256, thanks!
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
looks fixed.
Status: RESOLVED → VERIFIED
Product: addons.mozilla.org → addons.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: