URL routes not anchored to start of path
Bug #1131323 reported by
Gavin Panella
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Gavin Panella | ||
1.2 |
Fix Released
|
High
|
Gavin Panella |
Bug Description
During investigation of bug 1131296 and an issue where `maas-cli $profile tag nodes $tagname` (where tagname = a name ending with "nodes") was failing, it was discovered that many (all?) routes in MAAS are not anchored to the beginning of the URL path. In other words, the route's regular expressions do not begin with ^.
This should be fixed, but we must leave in a route to remain compatible with older versions of maas-enlist. See bug 1131296 for details.
Related branches
lp:~allenap/maas/anchor-routes
- Raphaël Badin (community): Approve
-
Diff: 102 lines (+44/-18)2 files modifiedsrc/maasserver/tests/test_api.py (+23/-0)
src/maasserver/urls_api.py (+21/-18)
lp:~allenap/maas/anchor-routes-1.2
- Gavin Panella (community): Approve
-
Diff: 92 lines (+42/-16)2 files modifiedsrc/maasserver/tests/test_api.py (+24/-1)
src/maasserver/urls_api.py (+18/-15)
Changed in maas: | |
importance: | Medium → High |
Changed in maas: | |
status: | Triaged → Fix Committed |
assignee: | nobody → Gavin Panella (allenap) |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.