Bug #1174
check that the SOURCE attribute is properly set before executing oneimage delete
Status: | Closed | Start date: | 03/20/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | - | % Done: | 0% | |
Category: | Drivers - Auth | |||
Target version: | Release 3.4 | |||
Resolution: | fixed | Pull request: | ||
Affected Versions: | OpenNebula 3.2 |
Description
There should be a double-check for the SOURCE attribute when:
1) It's set during the CP of the image (generate_image_path) function
2) When oneimage delete is called, making source that it's under the datastore's location
Associated revisions
Bug #1174: check that the SOURCE attribute is properly set before executing oneimage delete
Bug #1174: check that the SOURCE attribute is properly set before executing oneimage delete
(cherry picked from commit 83e9146a4958c94cbc464ff8889be58aad8c69d5)
Bug #1174: Fine tune of the tests
Bug #1174: Fine tune of the tests
(cherry picked from commit e67523aa2e565e52c393270d2b3ac3785de3bae3)
Backport of bug #1174
History
#1 Updated by Jaime Melis over 9 years ago
- Status changed from New to Closed
- Resolution set to fixed
Added safety checks after generating hash and before removing the file