Bug #2481

Incorrect response from oned if image upload through sunstone does not succeed

Added by Stefan Kooman over 7 years ago. Updated over 7 years ago.

Status:ClosedStart date:11/20/2013
Priority:NormalDue date:
Assignee:Ruben S. Montero% Done:

0%

Category:Drivers - Storage
Target version:Release 4.4
Resolution:fixed Pull request:
Affected Versions:OpenNebula 4.2

Description

If oned is not able to read a file in the "tmpdir" (image upload through sunstone) because it does not have read permission on that directory/file it will create a "destination file" of "zero" bytes and report succes. This should not happen. It should check if it's able to read the file, do a md5sum of the file, perform a "cp" to destination, do a md5sum on destination file and compare result with previous hash. If hashes match report succesful upload, otherwise throw an error.

Associated revisions

Revision 682f24ba
Added by Ruben S. Montero over 7 years ago

bug #2481: Check read permissions in downloader.sh

Revision 8b82c788
Added by Ruben S. Montero over 7 years ago

bug #2481: Check read permissions in downloader.sh

(cherry picked from commit 682f24bafda95106271d434bb71258cdd89cc1f8)

History

#1 Updated by Ruben S. Montero over 7 years ago

  • Category set to Drivers - Storage
  • Status changed from Pending to Closed
  • Assignee set to Ruben S. Montero
  • Target version set to Release 4.4
  • Resolution set to fixed

Now, TM driver checks that it has read permissions on the source. Image should now appear in error state.

Also available in: Atom PDF