c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #26615
[Bug 798210] [NEW] payload variable urlsafe_b64decoe Exception
Public bug reported:
I run the 6.0.2 web client @ Windows XP SP3(Python2.6).
and login to the system, click TopMenu "Purchase", "Stock", "Account", got the Exception message:
<type 'exceptions.TypeError'>: character mapping must return integer, None or unicode
args = ('character mapping must return integer, None or unicode',)
message = 'character mapping must return integer, None or unicode'
the detail logs:
u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz'
c:\Python26\lib\base64.py in urlsafe_b64decode(s=u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz')
109 The alphabet uses '-' instead of '+' and '_' instead of '/'.
110 """
111 return b64decode(s, '-_')
112
113
global b64decode = <function b64decode at 0x00CB2830>, s = u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz'
c:\Python26\lib\base64.py in b64decode(s=u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz', altchars='-_')
68 """
69 if altchars is not None:
70 s = _translate(s, {altchars[0]: '+', altchars[1]: '/'})
71 try:
72 return binascii.a2b_base64(s)
s = u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz', global _translate = <function _translate at 0x00CAEB30>, altchars = '-_'
c:\Python26\lib\base64.py in _translate(s=u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz', altchars={'-': '+', '_': '/'})
34 for k, v in altchars.items():
35 translation[ord(k)] = v
36 return s.translate(''.join(translation))
37
and I get the "payload" variable value to call base64.urlsafe_b64decode like :
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import base64
>>> base64.urlsafe_b64decode(u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQmi
H-vx9Qh7cXg4c1bhhkJMC-0IofVSDqrg3FUNPH2eVyvSKN7EPjtDaTjsXDm0txdvwQfqL8YHmuBtNr2J
FYheE0dB8vOsf5hA0Itd7TXDZcJetJgmyKdJPMk2YdtVa1vAGBMB-WLxPwYgTMrXfDZSdK0vI0yKPqUS
VHyj7nfVpcjJpZqt42vHmzHfUKzYC1XHhu04Yo3S5A-SC_ulBX0s0Idtm0JddifoKzDbgMvdXiuNrt4b
tonpOq5Cu7f-JKRnHrOibZaIT23d1hn2W1-udYIZyRcKPJSL8xiUopeYJI9DoJp5fn3HGyc0Ehw0M2ms
RUrt58obDFvhMMnHYRq9EAmVAMPaU0WvpFIUF3qu57p6zsyMSlwcocVGfgpUV-zZWTJGVAoiCLrp99Ql
vu0KUZbn9eKmKadAWlSEXKcph-V_tqz')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\Python26\lib\base64.py", line 111, in urlsafe_b64decode
return b64decode(s, '-_')
File "c:\Python26\lib\base64.py", line 70, in b64decode
s = _translate(s, {altchars[0]: '+', altchars[1]: '/'})
File "c:\Python26\lib\base64.py", line 36, in _translate
return s.translate(''.join(translation))
TypeError: character mapping must return integer, None or unicode
>>>
Is it a bug?
mrshelly
2011/06/16
** Affects: openobject-client-web
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/798210
Title:
payload variable urlsafe_b64decoe Exception
Status in OpenERP Web Client:
New
Bug description:
I run the 6.0.2 web client @ Windows XP SP3(Python2.6).
and login to the system, click TopMenu "Purchase", "Stock", "Account", got the Exception message:
<type 'exceptions.TypeError'>: character mapping must return integer, None or unicode
args = ('character mapping must return integer, None or unicode',)
message = 'character mapping must return integer, None or unicode'
the detail logs:
u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz'
c:\Python26\lib\base64.py in urlsafe_b64decode(s=u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz')
109 The alphabet uses '-' instead of '+' and '_' instead of '/'.
110 """
111 return b64decode(s, '-_')
112
113
global b64decode = <function b64decode at 0x00CB2830>, s = u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz'
c:\Python26\lib\base64.py in b64decode(s=u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz', altchars='-_')
68 """
69 if altchars is not None:
70 s = _translate(s, {altchars[0]: '+', altchars[1]: '/'})
71 try:
72 return binascii.a2b_base64(s)
s = u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz', global _translate = <function _translate at 0x00CAEB30>, altchars = '-_'
c:\Python26\lib\base64.py in _translate(s=u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQm...zZWTJGVAoiCLrp99Qlvu0KUZbn9eKmKadAWlSEXKcph-V_tqz', altchars={'-': '+', '_': '/'})
34 for k, v in altchars.items():
35 translation[ord(k)] = v
36 return s.translate(''.join(translation))
37
and I get the "payload" variable value to call base64.urlsafe_b64decode like :
Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import base64
>>> base64.urlsafe_b64decode(u'eJxdUslugzAQ_ZXc3EoRKiRNo1wr9dhTbyWyJsYQS8a2vJQmi
H-vx9Qh7cXg4c1bhhkJMC-0IofVSDqrg3FUNPH2eVyvSKN7EPjtDaTjsXDm0txdvwQfqL8YHmuBtNr2J
FYheE0dB8vOsf5hA0Itd7TXDZcJetJgmyKdJPMk2YdtVa1vAGBMB-WLxPwYgTMrXfDZSdK0vI0yKPqUS
VHyj7nfVpcjJpZqt42vHmzHfUKzYC1XHhu04Yo3S5A-SC_ulBX0s0Idtm0JddifoKzDbgMvdXiuNrt4b
tonpOq5Cu7f-JKRnHrOibZaIT23d1hn2W1-udYIZyRcKPJSL8xiUopeYJI9DoJp5fn3HGyc0Ehw0M2ms
RUrt58obDFvhMMnHYRq9EAmVAMPaU0WvpFIUF3qu57p6zsyMSlwcocVGfgpUV-zZWTJGVAoiCLrp99Ql
vu0KUZbn9eKmKadAWlSEXKcph-V_tqz')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "c:\Python26\lib\base64.py", line 111, in urlsafe_b64decode
return b64decode(s, '-_')
File "c:\Python26\lib\base64.py", line 70, in b64decode
s = _translate(s, {altchars[0]: '+', altchars[1]: '/'})
File "c:\Python26\lib\base64.py", line 36, in _translate
return s.translate(''.join(translation))
TypeError: character mapping must return integer, None or unicode
>>>
Is it a bug?
mrshelly
2011/06/16
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/798210/+subscriptions
Follow ups
References