Bug #11222
faire une erreur 404 sur les accès à des chemins invalides
Statut:
Rejeté
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
06 juin 2016
Echéance:
% réalisé:
0%
Temps estimé:
Patch proposed:
Non
Planning:
Description
Exception: type = '<type 'exceptions.AttributeError'>', value = ''AlternateRootDirectory' object has no attribute 'index2'' Stack trace (most recent call first): File "/usr/lib/python2.7/dist-packages/quixote/directory.py", line 55, in _q_traverse 53 name = self._q_translate(component) 54 if name is not None: > 55 obj = getattr(self, name) 56 else: 57 obj = self._q_lookup(component) locals: path = [] self = <modules.root.AlternateRootDirectory object at 0x7f2ad62be610> component = 'index2' name = 'index2' File "../auquotidien/extra/modules/root.py", line 847, in _q_traverse 845 return redirect('%s%s/%s' % (base_url, f.category.url_name, uri_rest)) 846 > 847 raise e 848 849 locals: path = ['index2'] self = <modules.root.AlternateRootDirectory object at 0x7f2ad62be610> response = <qommon.http_response.HTTPResponse instance at 0x7f2ad5a4ccf8> File "/usr/lib/python2.7/dist-packages/quixote/publish.py", line 253, in try_publish 251 permanent=True) 252 components = path[1:].split('/') > 253 output = self.root_directory._q_traverse(components) 254 # The callable ran OK, commit any changes to the session 255 self.finish_successful_request() locals: path = '/index2' self = <publisher.WcsPublisher instance at 0x7f2ad8c7b3f8> request = <qommon.http_request.HTTPRequest instance at 0x7f2ad5a4c0e0> components = ['index2']