Univention Bugzilla – Attachment 5775 Details for
Bug 32787
UMC-Server: crash with UnicodeEncodeError while dumping ACLs to file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch without side effects on type of attributes
bug32787.patch (text/plain), 858 bytes, created by
Florian Best
on 2014-02-04 21:53:57 CET
(
hide
)
Description:
patch without side effects on type of attributes
Filename:
MIME Type:
Creator:
Florian Best
Created:
2014-02-04 21:53:57 CET
Size:
858 bytes
patch
obsolete
>Index: univention-management-console/src/univention/management/console/acl.py >=================================================================== >--- univention-management-console/src/univention/management/console/acl.py (Revision 14101) >+++ univention-management-console/src/univention/management/console/acl.py (Arbeitskopie) >@@ -291,6 +291,8 @@ > ACL.process( '' ) > > def _read_from_file( self, username ): >+ if isinstance(username, unicode): >+ username = username.encode('UTF-8') > filename = os.path.join( ACLs.CACHE_DIR, username ) > > try: >@@ -320,6 +322,8 @@ > self.acls.append( rule ) > > def _write_to_file( self, username ): >+ if isinstance(username, unicode): >+ username = username.encode('UTF-8') > filename = os.path.join( ACLs.CACHE_DIR, username ) > > file = os.open( filename, os.O_WRONLY | os.O_TRUNC | os.O_CREAT, 0600 )
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 32787
:
5529
| 5775