Bug #2936

Template wizard cannot save if some values have quotation marks

Added by Rolandas Naujikas over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:05/21/2014
Priority:HighDue date:
Assignee:Jaime Melis% Done:

0%

Category:Sunstone
Target version:Release 4.8
Resolution: Pull request:
Affected Versions:OpenNebula 4.2, OpenNebula 4.4, OpenNebula 4.6

Description

For e.g. if context has

FILES_DS="$FILE[IMAGE=\"context2.sh\",IMAGE_UNAME=\"oneadmin\"]"
it is shown as
$FILE[IMAGE="context2.sh",IMAGE_UNAME="oneadmin"]
and cause
[TemplateUpdateTemplate] Cannot update template. Parse error: syntax error, unexpected VARIABLE, expecting COMMA or CBRACKET at line 38, columns 559:567

when saving.
If I put backslash \ before every quotation mark in values, then it saves OK, but next time it is shown without backslashes and requires adding again. In advanced mode everything is OK.

Associated revisions

Revision df4fd648
Added by Jaime Melis over 6 years ago

Bug #2936: Template wizard cannot save if some values have quotation marks

Revision 8110abdc
Added by Jaime Melis over 6 years ago

Bug #2936: Template wizard cannot save if some values have quotation marks
(cherry picked from commit df4fd64807b5d3027067c4b389bd05a379942a07)

Revision 1764f345
Added by Jaime Melis over 6 years ago

Bug #2936: Template wizard cannot save if some values have quotation marks
(cherry picked from commit df4fd64807b5d3027067c4b389bd05a379942a07)

Revision 2b8c4287
Added by Jaime Melis over 6 years ago

Bug #2936: Remove unnecessary line

Revision cf951a07
Added by Jaime Melis over 6 years ago

Bug #2936: Remove unnecessary line

(cherry picked from commit 4f0a14858f5f9289a546ff584b2eaf4ab5553cf3)

Revision 4e11c9ff
Added by Jaime Melis over 6 years ago

Bug #2936: Add escapeDoubleQuotes to description and context fields

History

#1 Updated by Rolandas Naujikas over 6 years ago

The same problem for description field.

#2 Updated by Ruben S. Montero over 6 years ago

  • Assignee set to Daniel Molina
  • Target version set to Release 4.8

#3 Updated by Jaime Melis over 6 years ago

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

#4 Updated by Rolandas Naujikas over 6 years ago

Problem exists also for context custom variables.

#5 Updated by Ruben S. Montero over 6 years ago

  • Status changed from Closed to New
  • Resolution deleted (fixed)

#6 Updated by Jaime Melis over 6 years ago

  • Target version changed from Release 4.8 to Release 4.6.2

#7 Updated by Jaime Melis over 6 years ago

  • Target version changed from Release 4.6.2 to Release 4.8

#8 Updated by Daniel Molina over 6 years ago

  • Priority changed from Normal to High

#9 Updated by Ruben S. Montero over 6 years ago

  • Assignee changed from Daniel Molina to Jaime Melis

#10 Updated by Jaime Melis over 6 years ago

  • Status changed from New to Closed

fixed

Also available in: Atom PDF