[RFE] Stop special handling of mime extensions in the API

Bug #1748224 reported by Dmitry Tantsur on 2018-02-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Nisha Yadav

Bug Description

Previously we treated things like /v1/nodes/test.1 as node with name "test" returned as man page. This obvious misbehavior was fixed in https://bugs.launchpad.net/ironic/+bug/1643995. However, we still treat /v1/nodes/test.json as node "test" if it exists and only fall back to node "test.json" if it does not.

This RFE suggests introducing an API version where any special treatment of .json is disabled in the API. So, in this version /v1/nodes/test.json will only mean node with name "test.json", and /v1/nodes.json will be HTTP 404.

Ruby Loo (rloo) wrote :

Thanks for reporting this Dmitry. I'm good with approving it.

Vladyslav Drok (vdrok) wrote :

+1, don't think spec is needed here.

Ruby Loo (rloo) wrote :

jlvillal and TheJulia are good with approving this w/o a spec.

tags: added: rfe-approved
removed: rfe
Nisha Yadav (ynisha11) on 2019-01-02
Changed in ironic:
assignee: nobody → Nisha Yadav (ynisha11)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers