encoding error by authentification

35 views
Skip to first unread message

spacekangaroo

unread,
Sep 18, 2019, 7:31:31 AM9/18/19
to Review Board Community

Hello everybody,


does anyone have an alternative solution for this ...


In case of authentification RB returns the error Unable to retrieve groups from user “***” from controller “***”: ‘ascii’ codec can’t decode byte 0xe2 in position 19: ordinal not in range (128)

Reason: At first RB comapare the user login name. By using a group restriction RB performs an iteration over all groups of the user too.

One of these groups contains the problem character.

 

In case of deactivation the group restriction there is no problem but I wan’t to use it.


Default encoding on my Ubundu maschine is:

root@reviewboard~$ locale

LANG=de_DE.UTF-8

Does RB overwriting the encoding?

Is there a way to say RB which encoding it must be use for an authentification?


thx Daniel

Christian Hammond

unread,
Sep 18, 2019, 4:59:44 PM9/18/19
to revie...@googlegroups.com
Hi Daniel,

What version of Review Board are you using?

Does the log entry include a backtrace that I can look at?

Christian


--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/ca0fa44d-58a0-454c-a350-d415e514b00b%40googlegroups.com.
--
--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board

spacekangaroo

unread,
Oct 4, 2019, 4:35:11 AM10/4/19
to Review Board Community
Hello Christian,

thanks for answering. It's RB v3.0.9. Here I see well what it does after try to log in... but I see no information about the used encoding ...


2019-09-10 07:36:58,610 - INFO -  - root - Reloading logging settings
2019-09-10 07:37:06,274 - DEBUG -  - chardet.charsetprober - EUC-JP Japanese prober hit error at byte 8566
2019-09-10 07:37:06,282 - DEBUG -  - chardet.charsetprober - EUC-JP Japanese prober hit error at byte 8566
2019-09-10 07:37:06,336 - DEBUG -  - chardet.charsetprober - EUC-KR Korean prober hit error at byte 8566
2019-09-10 07:37:06,343 - DEBUG -  - chardet.charsetprober - EUC-KR Korean prober hit error at byte 8566
2019-09-10 07:37:06,352 - DEBUG -  - chardet.charsetprober - CP949 Korean prober hit error at byte 8566
2019-09-10 07:37:06,361 - DEBUG -  - chardet.charsetprober - CP949 Korean prober hit error at byte 8566
2019-09-10 07:37:06,369 - DEBUG -  - chardet.charsetprober - Big5 Chinese prober hit error at byte 8567
2019-09-10 07:37:06,377 - DEBUG -  - chardet.charsetprober - Big5 Chinese prober hit error at byte 8567
2019-09-10 07:37:06,385 - DEBUG -  - chardet.charsetprober - EUC-TW Taiwan prober hit error at byte 8566
2019-09-10 07:37:06,395 - DEBUG -  - chardet.charsetprober - EUC-TW Taiwan prober hit error at byte 8566
2019-09-10 07:37:06,476 - DEBUG -  - chardet.charsetprober - utf-8  confidence = 0.87625
2019-09-10 07:37:06,476 - DEBUG -  - chardet.charsetprober - SHIFT_JIS Japanese confidence = 0.01
2019-09-10 07:37:06,476 - DEBUG -  - chardet.charsetprober - EUC-JP not active
2019-09-10 07:37:06,476 - DEBUG -  - chardet.charsetprober - GB2312 Chinese confidence = 0.01
2019-09-10 07:37:06,476 - DEBUG -  - chardet.charsetprober - EUC-KR not active
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - CP949 not active
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - Big5 not active
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - EUC-TW not active
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - windows-1251 Russian confidence = 0.01
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - KOI8-R Russian confidence = 0.01
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - ISO-8859-5 Russian confidence = 0.01
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - MacCyrillic Russian confidence = 0.0
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - IBM866 Russian confidence = 0.0
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - IBM855 Russian confidence = 0.01
2019-09-10 07:37:06,477 - DEBUG -  - chardet.charsetprober - ISO-8859-7 Greek confidence = 0.0
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - windows-1253 Greek confidence = 0.0
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - ISO-8859-5 Bulgairan confidence = 0.0
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - windows-1251 Bulgarian confidence = 0.0
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - TIS-620 Thai confidence = 0.01
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - ISO-8859-9 Turkish confidence = 0.533910222937
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - windows-1255 Hebrew confidence = 0.0
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - windows-1255 Hebrew confidence = 0.0
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - windows-1255 Hebrew confidence = 0.0
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - utf-8  confidence = 0.87625
2019-09-10 07:37:06,478 - DEBUG -  - chardet.charsetprober - SHIFT_JIS Japanese confidence = 0.01
2019-09-10 07:37:06,479 - DEBUG -  - chardet.charsetprober - EUC-JP not active
2019-09-10 07:37:06,479 - DEBUG -  - chardet.charsetprober - GB2312 Chinese confidence = 0.01
2019-09-10 07:37:06,479 - DEBUG -  - chardet.charsetprober - EUC-KR not active
2019-09-10 07:37:06,479 - DEBUG -  - chardet.charsetprober - CP949 not active
2019-09-10 07:37:06,479 - DEBUG -  - chardet.charsetprober - Big5 not active
2019-09-10 07:37:06,479 - DEBUG -  - chardet.charsetprober - EUC-TW not active
2019-09-10 07:37:06,486 - DEBUG -  - chardet.charsetprober - utf-8  confidence = 0.87625
2019-09-10 07:37:06,486 - DEBUG -  - chardet.charsetprober - SHIFT_JIS Japanese confidence = 0.01
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - EUC-JP not active
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - GB2312 Chinese confidence = 0.01
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - EUC-KR not active
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - CP949 not active
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - Big5 not active
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - EUC-TW not active
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - windows-1251 Russian confidence = 0.01
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - KOI8-R Russian confidence = 0.01
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - ISO-8859-5 Russian confidence = 0.01
2019-09-10 07:37:06,487 - DEBUG -  - chardet.charsetprober - MacCyrillic Russian confidence = 0.0
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - IBM866 Russian confidence = 0.0
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - IBM855 Russian confidence = 0.01
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - ISO-8859-7 Greek confidence = 0.0
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - windows-1253 Greek confidence = 0.0
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - ISO-8859-5 Bulgairan confidence = 0.0
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - windows-1251 Bulgarian confidence = 0.0
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - TIS-620 Thai confidence = 0.01
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - ISO-8859-9 Turkish confidence = 0.533910222937
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - windows-1255 Hebrew confidence = 0.0
2019-09-10 07:37:06,488 - DEBUG -  - chardet.charsetprober - windows-1255 Hebrew confidence = 0.0
2019-09-10 07:37:06,489 - DEBUG -  - chardet.charsetprober - windows-1255 Hebrew confidence = 0.0
2019-09-10 07:37:06,489 - DEBUG -  - chardet.charsetprober - utf-8  confidence = 0.87625
2019-09-10 07:37:06,489 - DEBUG -  - chardet.charsetprober - SHIFT_JIS Japanese confidence = 0.01
2019-09-10 07:37:06,489 - DEBUG -  - chardet.charsetprober - EUC-JP not active
2019-09-10 07:37:06,489 - DEBUG -  - chardet.charsetprober - GB2312 Chinese confidence = 0.01
2019-09-10 07:37:06,489 - DEBUG -  - chardet.charsetprober - EUC-KR not active
2019-09-10 07:37:06,489 - DEBUG -  - chardet.charsetprober - CP949 not active
2019-09-10 07:37:06,489 - DEBUG -  - chardet.charsetprober - Big5 not active
2019-09-10 07:37:06,489 - DEBUG -  - chardet.charsetprober - EUC-TW not active
2019-09-10 07:37:06,570 - WARNING -  - py.warnings - /opt/reviewboard-2.5.4-0/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/feedparser.py:364: DeprecationWarning: To avoid breaking existing software while fixing issue 310, a temporary mapping has been created from `updated_parsed` to `published_parsed` if `updated_parsed` doesn't exist. This fallback will be removed in a future version of feedparser.
  DeprecationWarning)

2019-09-10 07:37:06,573 - WARNING -  - py.warnings - /opt/reviewboard-2.5.4-0/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/feedparser.py:364: DeprecationWarning: To avoid breaking existing software while fixing issue 310, a temporary mapping has been created from `updated_parsed` to `published_parsed` if `updated_parsed` doesn't exist. This fallback will be removed in a future version of feedparser.
  DeprecationWarning)

2019-09-10 07:42:00,276 - INFO -  - root - Reloading logging settings
2019-09-10 07:46:53,198 - INFO -  - root - Reloading logging settings
2019-09-10 07:47:09,554 - INFO -  - root - Reloading logging settings
2019-09-10 07:47:09,587 - DEBUG -  - reviewboard.accounts.backends.ad - Search root "DC=***,DC=local" for filter "(&(objectClass=user)(sAMAccountName=***))"
2019-09-10 07:47:09,591 - DEBUG -  - reviewboard.accounts.backends.ad - Search root "DC=***,DC=local" for filter "(&(objectClass=group)(cn=***))"
2019-09-10 07:47:09,599 - DEBUG -  - reviewboard.accounts.backends.ad - Search root "DC=***,DC=local" for filter "(&(objectClass=group)(cn=***))"
2019-09-10 07:47:09,911 - DEBUG -  - reviewboard.accounts.backends.ad - Search root "DC=***,DC=local" for filter "(&(objectClass=group)(cn=***))"
2019-09-10 07:47:09,913 - ERROR -  - reviewboard.accounts.backends.ad - Unable to retrieve groups for user "***" from controller "ldap://***.local:***": 'ascii' codec can't decode byte 0xe2 in position 19: ordinal not in range(128)
Traceback (most recent call last):
  File "/opt/reviewboard-2.5.4-0/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/ReviewBoard-3.0.9-py2.7.egg/reviewboard/accounts/backends/ad.py", line 393, in authenticate
    group_names = self.get_member_of(connection, user_data)
  File "/opt/reviewboard-2.5.4-0/apps/reviewboard/htdocs/venv/lib/python2.7/site-packages/ReviewBoard-3.0.9-py2.7.egg/reviewboard/accounts/backends/ad.py", line 267, in get_member_of
    (group,)))
  File "/opt/reviewboard-2.5.4-0/python/lib/python2.7/site-packages/python_ldap-2.4.10-py2.7-linux-x86_64.egg/ldap/filter.py", line 55, in filter_format
    return filter_template % (tuple(map(escape_filter_chars,assertion_values)))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 19: ordinal not in range(128)
2019-09-10 07:47:10,033 - INFO -  - root - Reloading logging settings



thx Daniel



Am Mittwoch, 18. September 2019 22:59:44 UTC+2 schrieb Christian Hammond:
Hi Daniel,

What version of Review Board are you using?

Does the log entry include a backtrace that I can look at?

Christian

On Wed, Sep 18, 2019 at 04:31 spacekangaroo <space-k...@web.de> wrote:

Hello everybody,


does anyone have an alternative solution for this ...


In case of authentification RB returns the error Unable to retrieve groups from user “***” from controller “***”: ‘ascii’ codec can’t decode byte 0xe2 in position 19: ordinal not in range (128)

Reason: At first RB comapare the user login name. By using a group restriction RB performs an iteration over all groups of the user too.

One of these groups contains the problem character.

 

In case of deactivation the group restriction there is no problem but I wan’t to use it.


Default encoding on my Ubundu maschine is:

root@reviewboard~$ locale

LANG=de_DE.UTF-8

Does RB overwriting the encoding?

Is there a way to say RB which encoding it must be use for an authentification?


thx Daniel


--
Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/
Happy user? Let us know! https://www.reviewboard.org/users/
---
You received this message because you are subscribed to the Google Groups "Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to revie...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages