Modify

Opened 10 years ago

Closed 9 years ago

Last modified 9 years ago

#2327 closed defect (fixed)

Encoding errors with htdigest and unicode

Reported by: anonymous Owned by: Matt Good
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description


Attachments (0)

Change History (6)

comment:1 Changed 9 years ago by hulm19

Trac Release: 0.100.11
Type: defectenhancement

I also have this problem.

comment:2 Changed 9 years ago by anonymous

the password file is written in UTF-8 but is read in ASCII, so it do not support UTF-8 username.

my quick solution to read the password file with utf-8 username

change site-packages\tracaccountmanager-0.2.1dev_r4679-py2.5.egg\acct_mgr\htfile.py

    def prefix(self, user):
        realm = self.realm
        realm = realm.encode('utf-8')
        user = user + ':'
        user = user + realm
        user = user + ':'
        return user
        # print "realm:" + realm
        # print "user:" + user
        # return '%s:%s:' % (user, self.realm)

but still can not register/modify utf-8 username(will clear all the user account). I think file operation code needs to be rewritten.

comment:3 Changed 9 years ago by anonymous

Type: enhancementdefect

i think it is a long time bug.

comment:4 Changed 9 years ago by Matt Good

Resolution: fixed
Status: newclosed

(In [5267]) fix unicode support in htdigest store (fixes #2327)

comment:5 Changed 9 years ago by Matt Good

Summary: The chinese encoding is not support on Add Acount UserEncoding errors with htdigest and unicode

comment:6 Changed 9 years ago by anonymous

very quick fix! I have tested the new fix, it works! Thanks.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Matt Good.
The resolution will be deleted.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.