[midPoint] Objects uploaded via REST API, everything between <code></code> mangled into single
Pavol Mederly
mederly at evolveum.com
Sat Apr 22 14:52:24 CEST 2017
I have the same experience (uploading XML files with groovy code via
plugin without problems). Plugin uses PUT if the object has an OID and
POST if it has none. Maybe if you could post here more details, like how
exactly you try to upload the objects: e.g. the transcript of HTTP
communication, or information on commands/libraries used, etc. Or maybe
you could set up some logging to see where the newlines are being eaten.
Pavol Mederly
Software developer
evolveum.com
On 21.04.2017 10:07, Ivan Noris wrote:
>
> Hi Kari,
>
> this is interesting, as I'm using midPoint 3.5.1 with Eclipse plugin
> (which uses REST) and after uploading resource, I certainly see
> multiline code in Repository pages... Maybe that's different operation...
>
> Regards,
>
> Ivan
>
>
>
> On 04/20/2017 07:47 PM, Kari Heikkilä wrote:
>>
>> 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
>>
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> http://lists.evolveum.com/mailman/listinfo/midpoint
>
> --
> Ivan Noris
> Senior Identity Engineer
> evolveum.com
>
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20170422/0f3a4f1c/attachment.htm>
More information about the midPoint
mailing list