By default, routes.mapper.Mapper.resource adds a bunch of formatted
routes that accept anything after a '.'. Our spec says only .xml
and .json are accepted so limit the formatting to those valuse.
This allows identifiers with a '.' in urls. A few tests were added
to the extensions test to prove that .xml and .json are stripped
but other values are not.
Reviewed: https:/ /review. openstack. org/19151 github. com/openstack/ nova/commit/ 63fd557ec42ea59 aa77a2d4aca3c4f 9c301320fd
Committed: http://
Submitter: Jenkins
Branch: stable/folsom
commit 63fd557ec42ea59 aa77a2d4aca3c4f 9c301320fd
Author: Vishvananda Ishaya <email address hidden>
Date: Wed Nov 7 23:28:28 2012 -0800
Limit formatting routes when adding resources
By default, routes. mapper. Mapper. resource adds a bunch of formatted
routes that accept anything after a '.'. Our spec says only .xml
and .json are accepted so limit the formatting to those valuse.
This allows identifiers with a '.' in urls. A few tests were added
to the extensions test to prove that .xml and .json are stripped
but other values are not.
Fixes bug 1027788
Change-Id: Ic888aa5d75050d 6b14763c2a787ac 8c8d5ab1f69 f65522488c1aca5 df5b03050d)
(cherry picked from commit 8935c3bde9e9635