Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

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

by perldigious (Chaplain)
on May 15, 2017 at 14:08 UTC ( #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 (Bishop) 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 (Prior) 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 (Chancellor) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: monkdiscuss [id://1190307]
Approved by Athanasius
help
Chatterbox?
[hippo]: Marketing should not be allowed near such utilities.
[Corion]: I should tell them about the "dim+lock all monitors to show the immediate alert centered" feature of that software so they can announce the next intranet website feature even better ;)

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (16)
As of 2017-05-24 14:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?