BackupGGCode / roster-dns-management

DNS Management system.
0 stars 2 forks source link

Audit logging to DB doesn't work with unicode characters #356

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. dnsmkusergroup user -n some\xc6one -a 128
2. dnslsauditlog --success 1

What is the expected output? 

ID Action   Timestamp           Username Success Data
-----------------------------------------------------
1  MakeUser 2013-01-13T17:46:04 shuey    1       {'access_level': 128, 
'user_name': u'some\xc6one'}

What do you see instead?
Traceback (most recent call last):
  File "../roster-user-tools/scripts/dnslsauditlog", line 120, in <module>
    main(sys.argv[1:])
  File "../roster-user-tools/scripts/dnslsauditlog", line 114, in main
    str(cPickle.loads(entry['data'])['audit_args'])])
EOFError

Original issue reported on code.google.com by J.S.Pavlick@gmail.com on 13 Jan 2013 at 10:46

GoogleCodeExporter commented 9 years ago

Original comment by J.S.Pavlick@gmail.com on 16 Aug 2013 at 3:40