]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Limit formatting routes when adding resources
authorInhye Park <inhye.park@samsung.com>
Tue, 15 Apr 2014 09:48:44 +0000 (18:48 +0900)
committerInhye Park <inhye.park@samsung.com>
Wed, 7 May 2014 01:36:54 +0000 (10:36 +0900)
commite71d982aa1a21ad7b952fcb8516a9610a5902afb
treee4c1d36547de9533ab96521c9647d8b567287bbb
parent07f231c5eff4efb41ed5984fc04f4f70064f41e6
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
Change-Id: I8f0b4ae3b10ea93890f6506662905bd5823412f5
cinder/api/openstack/__init__.py
cinder/tests/api/test_extensions.py