Resource URI templates contains names that do not match up to rendered fields

Bug #1648836 reported by Gavin Panella on 2016-12-09
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Undecided
Gavin Panella
2.1
Undecided
Gavin Panella

Bug Description

This follows on from bug 1643552 ("API renderings do not contain fields necessary to construct self-referential URI") and is a bug with the fix created for that bug.

Piston asks handler classes for resource_uri information but then consults Django's URL patterns to get the field names to use in each resource_uri template it generates, i.e. it discards the information that the handler gives it.

These resource_uri templates are given to clients in the API description document. For some handlers these templates (like "/foo/{bar}/alice") contain names that do not match up to the fields that the handler renders of their models, so a self-referential URI still cannot be calculated even though we are now providing all the information.

Tags: api Edit Tag help

Related branches

Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers