Bug #5290

Filenames added from files datastore are not escaped

Added by Javi Fontan almost 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:07/27/2017
Priority:NormalDue date:
Assignee:Abel Coronado% Done:

100%

Category:Sunstone
Target version:Release 5.4.1
Resolution:fixed Pull request:
Affected Versions:Development

Description

Some file names can cause errors when not escaped.

$FILE[IMAGE=the-file.name_can.cause-errors, IMAGE_UNAME=oneadmin]

Associated revisions

Revision 09851f95
Added by Abel Coronado almost 4 years ago

B #5290 Solved bug filenames datastore in VM Template (#421)

Revision c392faa6
Added by Abel Coronado almost 4 years ago

B #5290 Solved bug filenames datastore in VM Template (#421)

(cherry picked from commit 09851f95fb9881133f133795c8fab79bd319a5b2)

History

#1 Updated by Javi Fontan almost 4 years ago

Adding quotes should work.

#2 Updated by Javi Fontan almost 4 years ago

  • Affected Versions OpenNebula 5.4 added

#3 Updated by Abel Coronado almost 4 years ago

  • % Done changed from 0 to 100
  • Affected Versions Development added

#4 Updated by Tino Vázquez almost 4 years ago

  • Status changed from Pending to Closed
  • Resolution set to fixed

#5 Updated by Sergio Milanese over 3 years ago

Hello, if IMAGE_UNAME is Lastname.Firstname cause same errors.

Fix adding quotes on IMAGE_UNAME:

$FILE[IMAGE=\"the-file.name\", IMAGE_UNAME=\"Lastname.Firstname\"]

Also available in: Atom PDF