<< Back to previous view

[QB-3463] Cannot edit 'HTML Message' Gadet if it contains Groovy code
Created: 08/Nov/19  Updated: 09/Nov/19

Status: Resolved
Project: QuickBuild
Component/s: None
Affects Version/s: 9.0.20
Fix Version/s: 9.0.27

Type: Bug Priority: Major
Reporter: Helmut Namyslo Assigned To: Unassigned
Resolution: Fixed Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
We do have a couple of 'HTML Message' Gadets which are containing Groovy code to dynamically create HTML.
Since we updated from QuickBuild 8.x to 9.0.20 we cannot edit these gadets without destroying the code.

Here is a small example. Add a 'HTML Message' Gadet with this code (use souce code edit mode):
---------------
${groovy:
return "<p>" + node.getHostName() + "</p>";
}
---------------

This will work as expected. Now try to edit this gadet: The code is destroyed
---------------
<p>${groovy: return &quot;</p>

<p>&quot; + node.getHostName() + &quot;</p>

<p>&quot;; }</p>
---------------


 Comments   
Comment by Robin Shen [ 09/Nov/19 01:26 AM ]
9.0.27 adds an option "disable html editor" in system setting.
Generated at Thu Apr 18 09:41:57 UTC 2024 using JIRA 189.