Closed
Bug 904641
Opened 13 years ago
Closed 13 years ago
Disable Voting
Categories
(Websites :: Firefox Flicks, defect)
Websites
Firefox Flicks
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: bensternthal, Assigned: osmose)
References
Details
(Whiteboard: [kb=1076708] )
For R4 - Voting should be disabled, calling the ajax url should return an error.
| Reporter | ||
Updated•13 years ago
|
Whiteboard: [kb=1076708]
| Assignee | ||
Comment 1•13 years ago
|
||
Good news everyone! This is already handled by the `waffle_flag` decorators on the views! Still good to track though.
For the record, the URLs for voting are:
Add vote - https://firefoxflicks.mozilla.org/en-US/video/2013/{video_id}/vote/
Remove vote - https://firefoxflicks.mozilla.org/en-US/video/2013/{video_id}/unvote/
When the `voting` flag is on, viewing these pages in a browser should return a 405 METHOD NOT ALLOWED (use the Network tab on the developer console to check). When it is off, they should return a 404 NOT FOUND instead.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•13 years ago
|
Assignee: nobody → mkelly
Comment 2•13 years ago
|
||
On the /vote & /unvote pages, I get a front end error which is correct. Looking at the elements, I see GET = 404 and POST = 401. I wasn't sure if that matches expectations 100%.
| Assignee | ||
Comment 3•13 years ago
|
||
Verified that the POST-prevention is working fine. Given this and rbillings' findings, this sounds verified to me. :D
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•