zola2 / lightopenid

Automatically exported from code.google.com/p/lightopenid
0 stars 0 forks source link

Problem with diacrirics #47

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
If some openid fields contains diacritics e.g. ščťžýáň validation fails

Tested with myopenid.com provider.

Original issue reported on code.google.com by mho...@gmail.com on 10 Sep 2011 at 2:36

GoogleCodeExporter commented 8 years ago
It works for me. I've set my full name to "ščťžýáň" at myopenid.com, 
then tried to get that attribute and succeeded at it.

Please provide more information.

Original comment by mewp...@gmail.com on 11 Sep 2011 at 1:57

GoogleCodeExporter commented 8 years ago
Libopenid version - 0.5
I tried to login to example.php
with 
            $openid->required = array(
                'namePerson/friendly',
                'contact/email',
                'namePerson',
                'person/gender',
                'contact/country/home',
                'pref/language',
                'pref/timezone',
                );
if I comment out any item, validation works.

The problem may be(and probably is) on the myopenid.com

Original comment by mho...@gmail.com on 12 Sep 2011 at 2:18

GoogleCodeExporter commented 8 years ago
Like I said, I have tested it with myopenid and it works.

However, you said any item? That is, the following two examples work?

 $openid->required = array(
                'namePerson/friendly',
                'contact/email',
                'namePerson',
//              'person/gender',
                'contact/country/home',
                'pref/language',
                'pref/timezone',
                );

 $openid->required = array(
                'namePerson/friendly',
                'contact/email',
                'namePerson',
                'person/gender',
//              'contact/country/home',
                'pref/language',
                'pref/timezone',
                );

If that's the case, it seems rather strange.

Original comment by mewp...@gmail.com on 12 Sep 2011 at 3:00

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
both work for me.
if no item is comented out, it fails.
I'm using this account for testing
test47.myopenid.com pass:test47

Original comment by mho...@gmail.com on 12 Sep 2011 at 3:08

GoogleCodeExporter commented 8 years ago
After testing, it seems that myopenid sometimes sends improperly encoded data. 
Not much I can do about it, though.

Explanation how this happens:
myopenid tries to follow a suggestion in the spec that large requests should be 
sent as POST. However, in order to make a POST request from the users' browser, 
it makes a form that automatically submits itself, and this form improperly 
encodes the sent data.

So, it's a bug in myopenid. Thanks for reporting it anyway.

Original comment by mewp...@gmail.com on 15 Sep 2011 at 8:30