Priority: Not specified
Resolution: Won't Fix
Affects Version/s: 5.6.4, 6.4.2
Fix Version/s: None
Component/s: ECL Plus
ECLPlus not returning valid XML with Assert
HPCC version 5.6.4, client tools 5.6.4... (Also with version 6.4.2)
I run this ECL:
If I run code with client tools ecl run, XML is ok.
/opt/HPCCSystems/5.6.4/clienttools/bin/ecl run --server 184.108.40.206 --port 8010 --username 'oscarfoley' --password ' ' -legacy thor testecl.ecl
But if I get the very same work unit result with ecl plus, XML is invalid
eclplus server=10.53.57.69 action=view wuid=W20171030-184629 format=xml
XML retrieved by ECLPlus is invalid because:
1) ASSERT message <message>Test 2 [b]<>&[/b]</message> does not escape XML special characters so XML is invalid. However OUTPUT Test1 is correctly escaped.
2) XML does not have root element. Everything should be surrounded by <Result></Result>
3) XML returned by ecl run and eclplus have different casing for ASSERT. XML is Case sensitive...
4) XML returned by ecl run and eclplus is different for ASSERT. They should be identical, shouldn't them? One uses <Exception> and the other <Error>