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/87520 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=e71d982aa1a 21ad7b952fcb851 6a9610a5902afb
Committed: https:/
Submitter: Jenkins
Branch: master
commit e71d982aa1a21ad 7b952fcb8516a96 10a5902afb
Author: Inhye Park <email address hidden>
Date: Tue Apr 15 18:48:44 2014 +0900
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.
Closes-bug: #1307956 3890f6506662905 bd5823412f5
Change-Id: I8f0b4ae3b10ea9