Swedish competitor becomes Norwegian when he registers for a competition.

4 views
Skip to first unread message

Vidar Norstein Klungre

unread,
Jan 6, 2016, 9:49:56 AM1/6/16
to soft...@worldcubeassociation.org
Hello WCA Software team!

Peter Andersson's email if needed:

I have a competitor (Peter Andersson) living in Norway who has a problem with his nationality: He is registered as a Swedish competitor in WCA (since he is actually Swedish, but lives in Norway), but almost every time he registers for a competition, he is listed with nationality equal to "Norway". He has experienced this problem for the two latest competitions, and a bunch of others as well. He also tells me that for one competition in Sweden, he did not experience the problem, as far as he can remember.

Neither of us understand why it happens. Could it be like this because he lives in Norway? Does the registration script gather the location of the device instead of the nationality of the competitor?




WCA db export:
+------------+-------+-----------------+-----------+--------+
| id         | subid | name            | countryId | gender |
+------------+-------+-----------------+-----------+--------+
| 2013ANDE01 |     1 | Peter Andersson | Sweden    | m      |
+------------+-------+-----------------+-----------+--------+

Regards Vidar Klungre, Norway

Oleg Gritsenko

unread,
Jan 6, 2016, 9:59:07 AM1/6/16
to Vidar Norstein Klungre, soft...@worldcubeassociation.org
When I tried to register at your competition and loaded Peter's profile, citizenship was automatically populated with "Sweden". Could it be that Peter manually (accidentally) changes it to "Norway" during registration? Could it be that the organizer changes it?

--

---
You received this message because you are subscribed to the Google Groups "software at worldcubeassociation.org" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wca-software...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wca-software/CAE0QRYaQN4FcvFhNu_KSQj%3D7SLTVf%3D%2BW%3DYifYBagiF_QHPBvJQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.



--
Best regards,
Oleg Gritsenko

Luis J. Iáñez

unread,
Jan 6, 2016, 11:09:18 AM1/6/16
to Oleg Gritsenko, Vidar Norstein Klungre, soft...@worldcubeassociation.org

The form is populated with the known details from the competitor. This is a fact. If this guy is experiencing this behaviour, for sure it's his browser auto-complete feature who is changing the country. I'd recommend checking this, because I'm positively sure this is his case.



For more options, visit https://groups.google.com/d/optout.
--

- Luis

Vidar Norstein Klungre

unread,
Jan 6, 2016, 12:52:15 PM1/6/16
to Luis J. Iáñez, Oleg Gritsenko, soft...@worldcubeassociation.org
I did some tests myself, and you are right Luis: When I type the start of my email, the browser suggests it and when I do so, it also modifies the nationality to the country of my address. 

I will ask Peter to test this himself, and reply to you if it does not work, but I am also fairly confident that the autocompletion/suggestions from the browser is the problem.

Thanks, Vidar 

Lars Petrus

unread,
Jan 6, 2016, 1:15:17 PM1/6/16
to Vidar Norstein Klungre, Luis J. Iáñez, Oleg Gritsenko, soft...@worldcubeassociation.org
Oh, interesting.

I can think of a few ways to fix this.

1. Browser autocomplete works on form field names. Don't name it 'country' and it will probably be immune.

2. You can set autocomplete="off" on both forms and individual fields.

3. Maybe the server should reject information that contradicts the DB information, whether entered manually or autocompleted.


For more options, visit https://groups.google.com/d/optout.



--
Procrastinators - the Leaders of Tomorrow

Jeremy Fleischman

unread,
Jan 6, 2016, 1:42:47 PM1/6/16
to Lars Petrus, Vidar Norstein Klungre, Luis J. Iáñez, Oleg Gritsenko, soft...@worldcubeassociation.org

Good debugging Luis and Lars! I never would have thought of that.

I actually won't be making any changes here though, as I recently ported the competition registration from PHP to Rails. The new code requires you to register with a WCA account, which will avoid this problem, as there won't even be a country field anymore.

I'll be pushing these changes live tonight California time.


Reply all
Reply to author
Forward
0 new messages