forked from openstack/glance
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This fixes the other half of https://bugs.launchpad.net/glance/+bug/1400966 the directory traversal bug. In havana, glance would prevent you part of the flaw, by way of https://bugs.launchpad.net/glance/+bug/942118 but glance would still allow user to update an image location after an image was created without validation of the image scheme. This patch closes the loop hole. This also adds a test to ensure these protected schemes are not allowed to be used when updating an image location.
- Loading branch information
Showing
2 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters