diff options
| author | Christophe Monniez <moc@odoo.com> | 2019-10-30 12:10:37 +0000 |
|---|---|---|
| committer | Christophe Monniez <moc@odoo.com> | 2019-10-30 12:35:23 +0000 |
| commit | b6ed34e134f868d7ccdfcb436592e0cc343fa3b5 (patch) | |
| tree | 8bae7eb1b37fa9fbe71c386b59a655edd23b3101 /addons/web/tests | |
| parent | 855b29b6d0fc22b6d333bc470a04e60c84fffe73 (diff) | |
[FIX] ir_http: declare class attributes _routing_map and _rewrite_len
Actually, the two class attributes are only set when calling the
routing_map method. As a consequence, when the url_for function in the
http_routing module tries to access the _rewrite_len attribute, it
may crashe.
This problem arrise in the TestQwebProcessAtt from the website module
when the test is run alone.
It was hidden on the runbot because some missconfigured HttpCase tests were run
at_install before TestQwebProcessAtt. In that particular case, the
routing_map method is called and sets the attribute.
With this commit, the _routing_map and _rewrite_len class attributes are
set on the class at class declaration time.
Diffstat (limited to 'addons/web/tests')
0 files changed, 0 insertions, 0 deletions
