Custom Query (58 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (46 - 48 of 58)

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Ticket Resolution Summary Owner Reporter
#1515 fixed Incorrect padding when decoding the authentication cookie apoirier sprat

Reported by sprat, 7 years ago.

Description

Here is the traceback of an error that seems to appear randomly on my developer box with nagare 0.3.0 :

Traceback (most recent call last):
  File "/home/spt/projects/sandboxes/ipages/lib/python2.6/site-packages/nagare-0.3.0-py2.6.egg/nagare/wsgi.py", line 362, in __call__
    self.start_request(root, request, response)
  File "/home/spt/projects/pj-eureka/pj-eureka/ipages/app.py", line 137, in start_request
    super(EurekaApplication, self).start_request(shell_comp, request, response)
  File "/home/spt/projects/sandboxes/ipages/lib/python2.6/site-packages/nagare-0.3.0-py2.6.egg/nagare/wsgi.py", line 262, in start_request
    security.set_user(self.security.create_user(request, response)) # Create the User object
  File "/home/spt/projects/sandboxes/ipages/lib/python2.6/site-packages/nagare-0.3.0-py2.6.egg/nagare/security/common.py", line 150, in create_user
    (username, ids) = self.get_ids(request, response)
  File "/home/spt/projects/sandboxes/ipages/lib/python2.6/site-packages/nagare-0.3.0-py2.6.egg/nagare/security/basic_auth.py", line 58, in get_ids
    (username, password) = self._get_ids(request, response)
  File "/home/spt/projects/sandboxes/ipages/lib/python2.6/site-packages/nagare-0.3.0-py2.6.egg/nagare/security/form_auth.py", line 128, in _get_ids
    ids = self.get_ids_from_cookie(request.cookies)
  File "/home/spt/projects/sandboxes/ipages/lib/python2.6/site-packages/nagare-0.3.0-py2.6.egg/nagare/security/form_auth.py", line 97, in get_ids_from_cookie
    return self.cookie_decode(data)
  File "/home/spt/projects/sandboxes/ipages/lib/python2.6/site-packages/nagare-0.3.0-py2.6.egg/nagare/security/form_auth.py", line 82, in cookie_decode
    return [s.decode('base64').decode('utf-8') for s in cookie.split(':')]
  File "/home/spt/projects/sandboxes/ipages/lib/python2.6/encodings/base64_codec.py", line 42, in base64_decode
    output = base64.decodestring(input)
  File "/home/spt/opt/python-2.6.5-stackless/lib/python2.6/base64.py", line 321, in decodestring
    return binascii.a2b_base64(s)
Error: Incorrect padding

I'm not sure why the problem appear in the first place (I don't play with the cookie myself), but the decoding should never fail.

#1516 fixed "nagare-admin create" fails with Stackless < 2.7 apoirier bertrand.croq

Reported by bertrand.croq, 7 years ago.

Description

When using Stackless 2.6 or 2.5, the "nagare-admin create" command fails with:

Traceback (most recent call last):
  File "bin/nagare-admin", line 8, in <module>
    load_entry_point('nagare==0.4.0', 'console_scripts', 'nagare-admin')()
  File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/main.py", line 73, in main
    command.run(parser, options, args) # Run the command
  File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/create.py", line 247, in run
    create_or_update(os.path.join(root, 'setup.py'), create_setup_py, upgrade_setup_py, params)
  File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/create.py", line 38, in create_or_update
    return (update if os.path.exists(path) else create)(path, *args, **kw)
  File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/create.py", line 68, in create_setup_py
    ''' % params)
File "/Users/gotcha/tmp/nagare/lib/python2.6/site-packages/nagare-0.4.0-py2.6.egg/nagare/admin/create.py", line 82, in upgrade_setup_py
print >>f, re.sub(r'^(\s*)(entry_points)', r"\1message_extractors = { '%(id)s' : [('**.py', 'python', None)] },\n\1\2" % params, setup_py, flags=re.M)
TypeError: sub() got an unexpected keyword argument 'flags'

The flags keyword in re.sub() is new in Python 2.7 but http://www.nagare.org/trac/wiki/QuickStart says that nagare works with Stackless version 2.5.2 or above.

#1519 fixed Validators & None problems apoirier sprat

Reported by sprat, 7 years ago.

Description

There are some problems when using a None value on some validators :

  • the StringValidator? accepts None as value but it fails on the not_empty check (not a ValueError?)
  • if we use strip/lstrip or rstrip and give a None value to the Validator, it raises an exception but not a ValueError?, so the Property.validate won't trap the error

I guess it should forbidden to use a None value in a validator but it would probably break existing projets, so I'm not sure what action should be taken.

6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
Note: See TracQuery for help on using queries.