Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14831

REST attribute value for "separator" is not correct for most of the responses to a request

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • 9.9
    • Model, REST
    • None
    • Xwiki Debian 9.9
    • Unknown

    Description

      The model returned by REST for classes is not correct regarding the attribute "separator".
      For example for the object "XWiki.XWikiGlobalRights" we've got :
      <attribute name="separator" value=" "/>
      But when you create an object for this property, for example "levels", we are sending a list with "," as a separator.

      Example :
      Content
      curl -u admin:admin \
      -X POST \
      -H "Content-type: application/xml" \
      -H "Accept: application/xml" \
      -d "@test9.xml" \
      http://localhost:8080/xwiki/rest/wikis/xwiki/spaces/Projet%20Ocean/pages/WebPreferences/objects

      File "test9.xml" :
      <object xmlns="http://www.xwiki.org">
      <className>XWiki.XWikiGlobalRights</className>
      <property name="allow"><value>1</value></property>
      <property name="groups"><value>XWiki.GroupeUn</value></property>
      <property name="levels"><value>login,view,edit,delete,comment,script,programming</value></property>
      <property name="users"><value></value></property>
      </object>

      Attachments

        Activity

          People

            Unassigned Unassigned
            Camille_D Camille Desmots
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: