[midPoint] Objects uploaded via REST API, everything between <code></code> mangled into single

Mikko Pekkarinen mikko.pekkarinen at datactica.fi
Fri Apr 21 09:53:38 CEST 2017


Hi,


I haven't tried this, but maybe wrapping the script in a cdata section would prevent the whitespace mangling? I.e.


<code><![CDATA

log.error("hello");
]]>/code>


Mikko


________________________________
Lähettäjä: midPoint <midpoint-bounces at lists.evolveum.com> käyttäjän puolestaKari Heikkilä <kari.heikkila at qvantel.com>
Lähetetty: 20. huhtikuuta 2017 20:47
Vastaanottaja: midpoint at lists.evolveum.com
Aihe: [midPoint] Objects uploaded via REST API, everything between <code></code> mangled into single

Hi,

started to use midPoint REST API for updating objects I noticed that everything between <code></code> tags is reformatted into single line.
This means multiline groovy scripts will become very difficult to read (for human) in midPoint and if semicolons are missing, groovy code execution will most probably fail.

Used PUT method and .xml files with both nl and cr+lf line endings tried.

Is there anything to prevent this behavior?

Best regards,
Kari

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170421/bd71e8ec/attachment.htm>


More information about the midPoint mailing list