Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

I can upvote a node multiple times! Well... sort of.

by perldigious (Priest)
on May 15, 2017 at 14:08 UTC ( [id://1190307]=monkdiscuss: print w/replies, xml ) Need Help??

Just tried something that occurred to me because I though I could find a large bug. It only partially worked, so I guess it's at best a small bug...

Basically, I tried opening the same node in multiple tabs of my browser prior to voting on it. Since the voting options stick around in any tab opened prior to actually voting on a node, and curious if the programming behind the scenes actually just hid them from the account that already voted after the fact to prevent multiple votes, or if it did any kind of back end checks to see if that specific account had already voted on the node, I gave it a try.

From what I could observe, my first upvote did increase the rep of the node, but my second upvote did not. I'm not sure if there is any wonky behavior involving XP for either the voter or the vote-ee, but I did notice that my number of votes left for the day decreased in both cases.

So based on that, I'm calling it a small bug, since really if someone tries to do this maybe they should lose the vote(s) to oblivion anyway (assuming that's all that happens). I figured I'd report it none the less, since sometimes I have an annoying habit of trying to "break" things like this on purpose. Trust me, I'm a video game designer's/programmer's worst nightmare, after beta testing and post release or course. :-)

UPDATE: My bad, disregard based on my response to soonix below. That's what I get for taking non-current data at face value, and just generally not thinking through what I was actually observing. I should have seen my number of votes decrease by two instead of one the second time if what I said were actually true.

Just another Perl hooker - Working on the corner... corner conditions that is.
  • Comment on I can upvote a node multiple times! Well... sort of.

Replies are listed 'Best First'.
Re: I can upvote a node multiple times! Well... sort of.
by marto (Cardinal) on May 15, 2017 at 14:15 UTC

    Just tried this with two different nodes, opened the same node in 3 tabs, upvoted in each, I can't reproduce your findings. I was only able to upvote once by the looks of it, and my remaining votes decreased by one per node tested, not per test.

Re: I can upvote a node multiple times! Well... sort of.
by soonix (Canon) on May 15, 2017 at 14:52 UTC
    The "number of votes left for the day, before casting the vote" was in both tabs the same, I presume?

      Ha, yeah, you nailed it. My number of daily votes didn't actually decrease the second time I voted, I just saw it go down by one when I voted the second time because, of course, the page was already loaded with one more vote than I had after voting the first time.

      My mistake, I suppose I deserve the old "make sure your data is what you think it is" line now. :-)

      Just another Perl hooker - Working on the corner... corner conditions that is.
Re: I can upvote a node multiple times! Well... sort of.
by LanX (Saint) on May 15, 2017 at 14:52 UTC
    Couldn't reproduce it, opened the OT in several tabs, but my remaining votes didn't decrease after the first vote.

    But I think this might be a scheme to make people up vote your post in order to test the theory. .. ;-p

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

      But I think this might be a scheme to make people up vote your post in order to test the theory. .. ;-p

      ...unless downvoting needs to be tested as well to balance things out ;)

        No ... couldn't reproduce with downvotes neither.

        Wait ... unless I take one of your post! ;p

        Cheers Rolf
        (addicted to the Perl Programming Language and ☆☆☆☆ :)
        Je suis Charlie!

      Scheming for votes? Innocent little me? I would never do that! ...at least not unless I was really, REALLY, close to a level increase. :-)

      Just another Perl hooker - Working on the corner... corner conditions that is.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: monkdiscuss [id://1190307]
Approved by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2024-04-23 15:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found