SICSR-17874

[SICSR-17874] PRB000608475 - Bug related to editing the XSL string in ADH Output Pattern  
Product Line: P&C
Component/s: Automated Document Handling
Affects Version/s: SICS 4.9.3
Fix Version/s: SICS 20.1
Customer: Swiss Re Zurich
External Issue ID: PRB000608475

Problem:
1) From the list of ADH mappings, create a new, minimal mapping. Enter some text on the Note tab. Click OK. Open the mapping in view mode. ERROR: The Note text is not there, not even after a refresh.

2a) From the list of ADH Output Patterns, find an OP that has a Note longer than 4000 characters. Now edit the OP 'as new revision', or copy the OP. Switch to the Note tab. Select all text, then enter 'abc'. Click OK. Do a refresh and open the new revision / copy in view mode. ERROR: The note text is a mix of the old and new text.

2b) Once issue 1) has been fixed, the same issue as in 2a) will happen with Note on ADH Mappings.

3) From the list of ADH output patterns, find an OP that has an XSL Transformation string longer than 4000 characters. Now edit the OP 'as new revision', or copy the OP (both will fail). Select all XSL text (Ctrl-Home, Ctrl-Shit-End), paste in

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:template match="/">
   <xsl:copy-of select="."/>
 </xsl:template>
</xsl:stylesheet>

Click OK. Do a refresh and open the new revision / copy in view mode. ERROR: The XSL text is a mix of the old and new text.

4) Edit an OP. Modify or replace the XSL string. Hit Cancel. ERROR: The new string is still there. Only after a full refresh, is the original XSL string present.

Solution:
All issues described above will be fixed.

Workaround:
2a, 2b, 3) Save the new copy/revision without making any change to the Note / XSL. Then edit that version and make your changes.