Clarity

  • 1.  CLRT-77698 Unable to save custom gel scripts due to Image tag

    Posted May 11, 2015 03:55 PM

    There is a new defect that has been reported as a result of an issue that was brought to us: CLRT-77698 Unable to save custom gel scripts due to Image tag

     

    Until a knowledge article is created and published for it, I just wanted to share it with the community here and now as I know there are a number of GEL script authors among us, as well as this being something that may appear unexpectedly for those doing upgrades.

     

    Once an article is posted I will follow-up if I can with a reference to it.  In the meantime, I've put my findings about it along with a workaround approach to this specific defect here: Modifying XML/HTML using XSLT in a GEL script

     

    Note that despite the defect's title, it turns out not to be the <IMG ... /> tag itself that causes issues, but any tags that have an attribute with the name 'src' inside and as part of the GEL script body.  Also if you do encounter this problem and can reference the defect above when reporting it, it may help expedite confirming that the problem encountered has this cause.



  • 2.  Re: CLRT-77698 Unable to save custom gel scripts due to Image tag

    Posted May 12, 2015 01:49 AM

    Thanks for sharing this, Nick

     

    Regards

    NJ



  • 3.  Re: CLRT-77698 Unable to save custom gel scripts due to Image tag

    Posted May 12, 2015 09:56 AM

    Two updates for now:

     

    #1 The fix for this defect may make it into the next patch (14.2.0.1) if all goes well.  That will mean not needing to use any workarounds once applied.

     

    #2 I received an easier to implement (and easier for the system to process) alternative to using XSLT for this specific issue via turst07 to use as a workaround:

     

    <gel:script
      xmlns:gel="jelly:com.niku.union.gel.GELTagLibrary"
      xmlns:x="jelly:org.apache.commons.jelly.tags.xml.XMLTagLibrary">

     

    <!-- demo parameter -->

    <gel:parameter var="XOG_URL" default="http://test:123" />

     

    <!-- overcoming the issue of the script containing parsable HTML with a src attribute per CLRT-77698 / CLRT-77500 -->

    <gel:parse var="emailMsg">
           <x:element escapeText="false" name="img">
                  <x:attribute escapeText="false" name="src">${XOG_URL}/niku/something/something</x:attribute>
           </x:element>
    </gel:parse>

     

    <!-- displaying the result -->

    <gel:set var="output" select="$emailMsg" asString="true" />

    <gel:out>${output}</gel:out>

     

    </gel:script>

     

    I prefer this version and I think you will too, thanks Stuart for the info



  • 4.  Re: CLRT-77698 Unable to save custom gel scripts due to Image tag

    Posted May 13, 2015 01:46 AM

    Thanks, again

     

    NJ



  • 5.  Re: CLRT-77698 Unable to save custom gel scripts due to Image tag

     
    Posted May 12, 2015 11:49 AM

    Thanks for letting the community know Nick!

    Nick Darlington wrote:

     

    There is a new defect that has been reported as a result of an issue that was brought to us: CLRT-77698 Unable to save custom gel scripts due to Image tag

     

    Until a knowledge article is created and published for it, I just wanted to share it with the community here and now as I know there are a number of GEL script authors among us, as well as this being something that may appear unexpectedly for those doing upgrades.

     

    Once an article is posted I will follow-up if I can with a reference to it.  In the meantime, I've put my findings about it along with a workaround approach to this specific defect here: Modifying XML/HTML using XSLT in a GEL script

     

    Note that despite the defect's title, it turns out not to be the <IMG ... /> tag itself that causes issues, but any tags that have an attribute with the name 'src' inside and as part of the GEL script body.  Also if you do encounter this problem and can reference the defect above when reporting it, it may help expedite confirming that the problem encountered has this cause.