Poll: Show Results vs. "Your vote has been counted"

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
3/7/2010 11:34:30 PM
Gravatar
Total Posts 30

Poll: Show Results vs. "Your vote has been counted"

Issue:

Poll sometimes wrongly shows "Your vote has been counted.". This happens in release 2.3.3.9.

Steps to reproduce:

  1. Add a poll
  2. Enable "Allow viewing results before voting?"
  3. Disable "Anonymous voting?"
  4. Visit the page as anonymous user
  5. Click "Show Results"
  6. The poll says "Your vote has been counted."
  7. Click "Back"
  8. The poll says "Your vote has been counted."

The poll should only output this message when the user already voted.

Demo:

http://demo.mojoportal.com/bug-demo.aspx

 

Regards,
Simon

3/12/2010 1:34:19 PM
Gravatar
Total Posts 18439

Re: Poll: Show Results vs. "Your vote has been counted"

When anonymous voting is used it will only let a new vote be cast every 5 minutes per ip address otherwise you would have bots posting all day over and over skewing results, so if any vote was made whether authenticated or not from the same ip address then it will show the your vote has been counted message. If you wait long enough then it should allow another vote.

If the voter is authenticated it will only let him vote one time. I suppose if you log out then visit again from the same ip it is a minor bug if it says your vote has been counted, but it is doing that because you are at the same ip address as your previous vote I don't think an anoymous user from a different ip address would see that. I will look into it when I get a chance.

Best,

Joe

3/12/2010 1:37:58 PM
Gravatar
Total Posts 18439

Re: Poll: Show Results vs. "Your vote has been counted"

Actually I just looked at the code for Poll and it is using a cookie also to track voting so if you used the same browser the cookie could still be there from when you voted as an authenticated user even though you now have signed out of the site. If you clear your cookies or use a different browser flavor for the anonymous testing vs authenticated testing I think it will work correctly.

Hope it helps,

Joe

3/15/2010 5:02:23 AM
Gravatar
Total Posts 30

Re: Poll: Show Results vs. "Your vote has been counted"

Hello Joe,

I tried signing out and clearing cookies in both Internet Explorer 8 and Google Chrome. Didn't change a thing: "Your vote has been counted." is always shown when looking at the votes.

Check it here: http://gewaltig.net

Just click the "Show the results" button on the front page. Can you reproduce the problem?

Regards,
Simon

3/16/2010 1:02:54 PM
Gravatar
Total Posts 18439

Re: Poll: Show Results vs. "Your vote has been counted"

Hi,

I see what you mean when I visit your site. I will look into it.

Best,

Joe

3/16/2010 1:11:30 PM
Gravatar
Total Posts 18439

Re: Poll: Show Results vs. "Your vote has been counted"

Ok, it was an easy fix. This will be fixed in the next release.

Thanks for the bug report.

Best,

Joe

3/22/2010 7:38:37 AM
Gravatar
Total Posts 3

Re: Poll: Show Results vs. "Your vote has been counted"

Firstly:

Thanks for the great portal.. this is awesome work. I am having the same issue and need to get it fixed urgently. Can you please tell me the fix if it easy I can go ahead and fix the code in VWD and recompile the project.

 

Thanks

3/23/2010 7:19:27 AM
Gravatar
Total Posts 18439

Re: Poll: Show Results vs. "Your vote has been counted"

Hi,

I recommend you get the latest code from svn trunk and use that to produce a new build. The fix was trivial, but I see no reason to backport a fix into an older download when you can get the latest stable code at any time from svn trunk.

That said, I may make a preview release today (only for MS SQL) with the latest code pre-compiled, and it will have this fix. My main reason for making a preview release is to get feedback from users using Artisteer 2.4 as discussed on this thread. So if you are not comfortable making your own build then you could use the preview when it is available.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.