David
New Zealand
Wellington
flag msg tools
badge
Avatar
mbmbmbmbmb
This seems to get me every now and again - if I submit that I played a game on a certain day and then use the browser's BACK button and accidentally revisit the Acknowledgement page, then the database records an additional play for this game. This is wrong of course. The problem occurs because this BGG feature does not obey the database/POST rule - anything that modifies the database should be behind a POST action, not a GET action. If this were the case, revisiting the page would bring up a warning dialog and therefore stop the side-effect from happening unless the user deliberately chose to proceed.

If anyone cares I can find the RFC to prove my point...
1 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
David
New Zealand
Wellington
flag msg tools
badge
Avatar
mbmbmbmbmb
Re: BUG: "I played this game on" does not use POST HTTP meth
Hmmm, no comments. The implications of this bug are obviously beyond everyone else. Well, in order to provide predictable and "correct" behaviour, BGG really ought to conform to RFC 2616:

http://www.w3.org/2001/tag/doc/whenToUseGet.html
http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.1

 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Scott Alden
United States
Dallas
Texas
flag msg tools
admin
badge
Aldie's Full of Love!
Avatar
mbmbmbmbmb
Re: BUG: "I played this game on" does not use POST HTTP meth
Ok I will fix it.
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
David
New Zealand
Wellington
flag msg tools
badge
Avatar
mbmbmbmbmb
Re: BUG: "I played this game on" does not use POST HTTP meth
Cool - thanks
 
 Thumb up
 tip
 Hide
  • [+] Dice rolls
Front Page | Welcome | Contact | Privacy Policy | Terms of Service | Advertise | Support BGG | Feeds RSS
Geekdo, BoardGameGeek, the Geekdo logo, and the BoardGameGeek logo are trademarks of BoardGameGeek, LLC.