0 Replies Latest reply on Feb 23, 2015 3:38 AM by Jeremy.moody@landesk.com

    Updating a Document using the REST api when the Document has an Ampersand in the Subject


      Has anyone else seen the following?


      I have a document that has an Ampersand in the subject e.g. "this & that".


      When using the REST api to get the Document (https://developers.jivesoftware.com/api/v3/7.0/rest/ContentService.html#getContent(String, String, boolean, List<String>)) it returns the subject as "this &amp; that".


      If you then update the Document using the results as the input to the REST api method, but not changing anything (https://developers.jivesoftware.com/api/v3/7.0/rest/ContentService.html#updateContent(String, String, boolean, String, boolean)), the Document's Subject is changed to "this &amp; that".


      You can not update a Document without the Subject being in the input.


      I could alter the string back from &amp; to &.


      But what other values could do this also? - as a quick test I found < and > changed to &lt; and &gt;, but " was not changed to &quot.



      What ways round this have anyone else tried?