Re: Issue 3528 in reviewboard: UnicodeDecodeError while LDAP-authenticating

2014-12-18 Thread reviewboard

Updates:
Status: Fixed

Comment #2 on issue 3528 by trowb...@gmail.com: UnicodeDecodeError while  
LDAP-authenticating

https://code.google.com/p/reviewboard/issues/detail?id=3528

Fixed in release-2.0.x (c691ebc). Thanks!

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3528 in reviewboard: UnicodeDecodeError while LDAP-authenticating

2014-12-12 Thread reviewboard


Comment #1 on issue 3528 by ma...@smile.fr: UnicodeDecodeError while  
LDAP-authenticating

https://code.google.com/p/reviewboard/issues/detail?id=3528

After suffering a similar problem, I found out that this bug is due to the  
split function in line 467 in reviewboard/accounts/backends.py (as of  
2.0.11)
It turns out split() doesnt work on raw strings when unicode_literals is  
used.


The attached patch would solve your problem in a quick-and-dirty fashion, I  
also discovered that using Given name and Surname attributes instead of  
the Full name one not only does the same thing, but does not trigger the  
bug. I would recommend doing that if you have those attributes in your LDAP


Attachments:
full_name_unicode_quickfix.patch  709 bytes

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Issue 3528 in reviewboard: UnicodeDecodeError while LDAP-authenticating

2014-08-15 Thread reviewboard

Status: New
Owner: 
Labels: Type-Defect Priority-Medium

New issue 3528 by egilwi...@gmail.com: UnicodeDecodeError while  
LDAP-authenticating

http://code.google.com/p/reviewboard/issues/detail?id=3528

What version are you running?

ReviewBoard 2.0.5

What's the URL of the page containing the problem?

/account/login/

What steps will reproduce the problem?
1. Set up new RB using LDAP-authentication, using Full Name Attribute  
= displayName.
2. Try to log in for the first time as a user with displayName  
containing, for example, รถ (0xC3 0xB6)

3. Log in fails.

What is the expected output? What do you see instead?

Expected successful login.

Seeing (in Apache error.log):
An error while LDAP-authenticating: UnicodeDecodeError('ascii', 'Tobias
Emitsl\\xc3\\xb6f', 13, 14, 'ordinal not in range(128)')

What operating system are you using? What browser?

Server: Debian GNU/Linux (wheezy), Apache Prefork, mod_wsgi, python2.7.
Client/Browser: Windows 7, Chrome

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.