Less specfic kame rules break more specific rules at random
Bug #910653 reported by
aj00200
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Anonplus |
Fix Released
|
High
|
pharno |
Bug Description
Kame routs which are made by calling @kame.route are stored in a Python dict, route. Dicts store values in a random order and because of this, kame will return the entry for the first matched value. Therefore, if you try to catch the path / with kame, the response that should only be used with / will be randomly used for other paths which start with /.
Kame should implement some type of sorting to search for the most specific route or at the very least allow for less specific routes to be added first (or last) so that they appear in the proper list order.
Related branches
lp:~pharno/anonplus/trunk
- aj00200: Approve (secutity)
-
Diff: 12 lines (+2/-1)1 file modifiedsrc/apps/libs/kame.py (+2/-1)
Changed in anonplus: | |
status: | New → Confirmed |
Changed in anonplus: | |
status: | Confirmed → Fix Committed |
Changed in anonplus: | |
milestone: | build-7 → r212 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is blocking the build-7 release. No work can be done on build-7 until this is completed. I have started to work on build-8 but build-7 is long overdue.