Bug #5290
Filenames added from files datastore are not escaped
| Status: | Closed | Start date: | 07/27/2017 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % 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
History
#1
     Updated by Javi Fontan almost 4 years ago
    Updated by Javi Fontan almost 4 years ago
    Adding quotes should work.
#2
     Updated by Javi Fontan almost 4 years ago
    Updated by Javi Fontan almost 4 years ago
    - Affected Versions OpenNebula 5.4 added
#3
     Updated by Abel Coronado almost 4 years ago
    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
    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
    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\"]