Path parameters are not captured as properties

Bug #1369712 reported by Steve Lewis
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack SDK
Fix Released
Undecided
Terry Howe

Bug Description

For some resources (e.g. object_store/v1/obj, telemetry/v2/statistics, database/v1/database) there are path_args required to resolve the resource URL, however the resource representation does not include these params. In order for Resource.create|get|update|delete methods to function, those params must be captured.

Fix should probably generalize the solution rather than solve for each resource.

Ideas:
1) make path_args mandatory
2) maybe make some properties URL properties so they don’t get put in the body
3) make Resource methods (e.g. existing, find, list) populate the URL properties from path_args or something

Revision history for this message
Terry Howe (thowe-g) wrote :

1) make some properties mandatory like isntance_id on database
2) maybe make some properties URL properties so they don’t get put in the body
3) make existing, find, list populate the URL properties from path_args or something

description: updated
Revision history for this message
Terry Howe (thowe-g) wrote :

Steve, do you think we've met all these requirements? If so, maybe assign to yourself and close.

Revision history for this message
Terry Howe (thowe-g) wrote :

Well, Steve doesn't think all these cases are handled, but I'm not sure what is missing.

Revision history for this message
Terry Howe (thowe-g) wrote :

I think this has been handled. The bit about path_args being manditory, I'm not sure that is handled, but it will 404 at least. If we need that, can we just open a new ticket on that?

Changed in unifiedsdk:
assignee: nobody → Terry Howe (thowe-g)
status: New → Fix Released
Revision history for this message
Steve Lewis (steve-lewis) wrote :

Agreed, now that I have looked things over. If we missed something or feel an aspect is not well covered that can be a new ticket.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.