Opened 9 years ago

Closed 8 years ago

Last modified 8 years ago

#2327 closed defect (fixed)

Encoding errors with htdigest and unicode

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


Attachments (0)

Change History (6)

comment:1 Changed 8 years ago by hulm19

  • Trac Release changed from 0.10 to 0.11
  • Type changed from defect to enhancement

I also have this problem.

comment:2 Changed 8 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\

    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 8 years ago by anonymous

  • Type changed from enhancement to defect

i think it is a long time bug.

comment:4 Changed 8 years ago by mgood

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:5 Changed 8 years ago by mgood

  • Summary changed from The chinese encoding is not support on Add Acount User to Encoding errors with htdigest and unicode

comment:6 Changed 8 years ago by anonymous

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

Add Comment

Modify Ticket

as closed The owner will remain mgood.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.