4 Replies Latest reply on Sep 18, 2014 4:20 AM by dev_java

    Export / Import and CR / LF / CRLF

    dev_java Newbie

      hello modeshape team!

       

      as recommended in MODE-2306 i've implemented a backup & restore functionality. that worked quite well but there is a problem with properties where the stored data contains newline characters.

      The newlines get written to the exported JSON directly as for example CRLF. This makes the export file no longer readable for the import, it simply stopps importing when encountering such newline characters and only performs a partial (most of the time corrupted) import. is this something you could handle better on the export / import side or do we have to escape these characters when saving a node to the repository?

       

      thanks in advance!