]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Don't allow slashes in Stack or Resource names
authorZane Bitter <zbitter@redhat.com>
Wed, 12 Dec 2012 12:47:33 +0000 (13:47 +0100)
committerZane Bitter <zbitter@redhat.com>
Wed, 12 Dec 2012 14:53:52 +0000 (15:53 +0100)
commita560d1e206b87ac9d5e51a266dd6327cabe4f2cb
tree83ff81da23e760b3e72a11f4e8d5d42264f1e40d
parent67fe6165b821c5b9e85a6ec7ac8380dc95859204
Don't allow slashes in Stack or Resource names

There is no way for the ReST API to handle Stack or Resource names that
contain slashes since WSGI decodes the path before passing it to the
application, such that even correctly url-encoded slashes are
indistinguishable from path separators. Therefore, prohibit slashes in
Stack and Resource names.

bug 1088928

Change-Id: Ie6fa5a1bc7b5ae7054300419644008c5cc42187e
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/engine/parser.py
heat/engine/resource.py
heat/tests/test_engine_service.py