Custom Query (58 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (7 - 9 of 58)

1 2 3 4 5 6 7 8 9 10 11 12 13
Ticket Resolution Summary Owner Reporter
#1507 fixed consider releasing a new version? apoirier timo

Reported by timo, 7 years ago.

Description

hello,

there have been at least one feature i'd like to use (the "local" module) that is not yet released in a stable version of nagare. please consider releasing at least that along with maybe the newer YUI and such as a stable release.

thank you

#1515 fixed Incorrect padding when decoding the authentication cookie apoirier sprat

Reported by sprat, 6 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.

#1519 fixed Validators & None problems apoirier sprat

Reported by sprat, 6 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.

1 2 3 4 5 6 7 8 9 10 11 12 13
Note: See TracQuery for help on using queries.