Less specfic kame rules break more specific rules at random

Bug #910653 reported by aj00200
6
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.

Tags: webui

Related branches

aj00200 (aj00200)
Changed in anonplus:
status: New → Confirmed
Revision history for this message
aj00200 (aj00200) wrote :

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.

aj00200 (aj00200)
Changed in anonplus:
status: Confirmed → Fix Committed
aj00200 (aj00200)
Changed in anonplus:
milestone: build-7 → r212
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers