Letractively / dotnetkicks

Automatically exported from code.google.com/p/dotnetkicks
1 stars 0 forks source link

User was able to kick a story more than once #137

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. I don't know, see screenshot

What is the expected output? What do you see instead?

Only 1 kick per user.

See 2 kicks per user.

Please use labels and text to provide additional information.

Serious bug, because if spammers figure this out, they might be able to
make front page before the story can be deleted.

Gavin can you pull the database records for this story and see if it is
just a visual bug and not a data bug?

Original issue reported on code.google.com by james.e....@gmail.com on 2 Oct 2007 at 5:48

Attachments:

GoogleCodeExporter commented 9 years ago
A story was viewable on every host, not just the host that it was submitted to. 
The
following story was submitted to dnk.com but is also viewable on kick.ie:

http://kick.ie/opensource/SubSonic_of_the_Day_They_Query_Tool

This has been fixed by ensuring that the hostID matched with the story.hostID 
when
viewing a story. 

Fixed for SVN revision 480.

Original comment by gavinjo...@gmail.com on 2 Oct 2007 at 9:04

GoogleCodeExporter commented 9 years ago
I was already hurting my head on it!
Another thing I noticed when making tests, is that if you try to kick the sotyr 
twice
by calling the KickIt javascript function manually a second time, for example 
using
the javascript console which comes with FireBug, the kick image gets as text
"undefined", instead of the number of kicks.

Original comment by simone.b...@gmail.com on 2 Oct 2007 at 9:12

GoogleCodeExporter commented 9 years ago
This is because an exception in thrown on the server - it only allows you to 
kick a
story once.

Original comment by gavinjo...@gmail.com on 2 Oct 2007 at 9:16