[Openid-specs-ab] Issue #181: UnicodeDecodeError:'ascii' codec can't decode byte 0xc3 for UserInfo Endpoint access (openid/certification)

kshikama issues-reply at bitbucket.org
Fri Oct 23 05:35:21 UTC 2015


New issue 181: UnicodeDecodeError:'ascii' codec can't decode byte 0xc3 for UserInfo Endpoint access
https://bitbucket.org/openid/certification/issues/181/unicodedecodeerror-ascii-codec-cant-decode

kshikama:

The `UserInfo Endpoint access with POST and bearer body` test is passing whenever the nickname uses ascii characters only. However, whenever the nickname uses non-ascii characters, it gives a warning (yellow), specifically `ß` or `\0xc3`. The content type of the response is `Content-Type: application/json; charset=utf-8`.

```
#!bash

3.975188 ------------ UserInfoRequest ------------
3.975522 --> URL: https://FILTERED/api/openid_connect/user_info
3.975529 --> BODY: access_token=FILTERED
3.975539 --> HEADERS: {'Content-type': 'application/x-www-form-urlencoded'}
4.122974 <-- STATUS: 200
4.123044 Available verification keys: [('', u'RSA')]
4.123075 Available decryption keys: [('a0', 'RSA'), ('a3', 'EC')]
4.123123 <-- BODY: {"sub":"FILTERED","nickname":"ßßß Test","profile":"FILTERED","picture":"FILTERED"}
4.124285 [ERROR] UnicodeDecodeError:'ascii' codec can't decode byte 0xc3 in position 54: ordinal not in range(128)
```

An equivalent cURL request has no issues:

```
#!bash

curl -v -d "access_token=FILTERED" https://FILTERED/api/openid_connect/user_info
> POST /api/openid_connect/user_info HTTP/1.1
> User-Agent: curl/7.37.1
> Host: FILTERED
> Accept: */*
> Content-Length: 77
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 77 out of 77 bytes
< HTTP/1.1 200 OK
* Server nginx/1.6.2 (Ubuntu) is not blacklisted
< Server: nginx/1.6.2 (Ubuntu)
< Date: Fri, 23 Oct 2015 05:26:58 GMT
< Content-Type: application/json; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Status: 200 OK
< Strict-Transport-Security: max-age=31536000
< X-Frame-Options: SAMEORIGIN
< X-XSS-Protection: 1; mode=block
< X-Content-Type-Options: nosniff
< X-Git-Update: 2015-10-22 20:58:05 -0700
< Cache-Control: max-age=0, private, must-revalidate
< X-Runtime: 0.063119
< Vary: Origin,Accept-Encoding
<
* Connection #0 to host FILTERED left intact
{"sub":"FILTERED","nickname":"ßßß Test","profile":"FILTERED","picture":"FILTERED"}
```




More information about the Openid-specs-ab mailing list