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

The groups displayer store values with a coma at the end

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 9.10.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      docker, PostreSQL
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      If you create a new wiki and then consult the list of objects of class "XWiki.XWikiGlobalRights", the response return the property "groups" with a "," at the end.
      I create a new wiki. And right after that I do a REST request with the URL:

      ".../rest/wikis/testcamille/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/1/"
      We've got the answer :

      <object>
      <link href="http://dvtyfo-dev-02-lvn.in.ac-rennes.fr:8080/rest/wikis/testcamille/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/1" rel="self"/>
      <id>testcamille:XWiki.XWikiPreferences:e9630277-a371-4228-8659-8a1abc7bacfa</id>
      <guid>e9630277-a371-4228-8659-8a1abc7bacfa</guid>
      <pageId>testcamille:XWiki.XWikiPreferences</pageId>
      <pageVersion>2.1</pageVersion>
      <wiki>testcamille</wiki>
      <space>XWiki</space>
      <pageName>XWikiPreferences</pageName>
      <pageAuthor>xwiki:XWiki.superadmin</pageAuthor>
      <className>XWiki.XWikiGlobalRights</className>
      <number>1</number>
      <headline>1</headline>
      <property name="allow" type="Boolean">
      <link href="http://.../rest/wikis/testcamille/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/1/properties/allow" rel="self"/>
      <attribute name="name" value="allow"/>
      <attribute name="prettyName" value="Allow/Deny"/>
      <attribute name="unmodifiable" value="0"/>
      <attribute name="disabled" value="0"/>
      <attribute name="displayFormType" value="select"/>
      <attribute name="defaultValue" value="1"/>
      <attribute name="displayType" value="allow"/>
      <attribute name="number" value="4"/>
      <value>1</value>
      </property>
      <property name="groups" type="Groups">
      <link href="http://.../rest/wikis/testcamille/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/1/properties/groups" rel="self"/>
      <attribute name="name" value="groups"/>
      <attribute name="prettyName" value="Groups"/>
      <attribute name="unmodifiable" value="0"/>
      <attribute name="disabled" value="0"/>
      <attribute name="relationalStorage" value="0"/>
      <attribute name="displayType" value="input"/>
      <attribute name="multiSelect" value="1"/>
      <attribute name="size" value="5"/>
      <attribute name="separator" value=" "/>
      <attribute name="cache" value="0"/>
      <attribute name="picker" value="1"/>
      <attribute name="number" value="1"/>
      <attribute name="allowedValues" value="XWiki.LDAPUsers,XWiki.XWikiAllGroup,XWiki.XWikiAdminGroup"/>
      <value>XWiki.XWikiAllGroup,</value>
      </property>
      <property name="levels" type="Levels">
      <link href="http://.../rest/wikis/testcamille/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/1/properties/levels" rel="self"/>
      <attribute name="name" value="levels"/>
      <attribute name="prettyName" value="Levels"/>
      <attribute name="unmodifiable" value="0"/>
      <attribute name="disabled" value="0"/>
      <attribute name="relationalStorage" value="0"/>
      <attribute name="displayType" value="select"/>
      <attribute name="multiSelect" value="1"/>
      <attribute name="size" value="3"/>
      <attribute name="separator" value=" "/>
      <attribute name="cache" value="0"/>
      <attribute name="number" value="2"/>
      <attribute name="allowedValues" value="login,view,edit,delete,creator,register,comment,script,admin,createwiki,programming"/>
      <value>edit,comment,undelete,script</value>
      </property>
      <property name="users" type="Users">
      <link href="http://.../rest/wikis/testcamille/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/1/properties/users" rel="self"/>
      <attribute name="name" value="users"/>
      <attribute name="prettyName" value="Users"/>
      <attribute name="unmodifiable" value="0"/>
      <attribute name="disabled" value="0"/>
      <attribute name="relationalStorage" value="0"/>
      <attribute name="displayType" value="input"/>
      <attribute name="multiSelect" value="1"/>
      <attribute name="size" value="5"/>
      <attribute name="separator" value=" "/>
      <attribute name="cache" value="0"/>
      <attribute name="picker" value="1"/>
      <attribute name="number" value="3"/>
      <attribute name="allowedValues" value="XWiki.maconq,XWiki.pessi,..."/>
      <value/>
      </property>
      </object>

      On the above response we see "<value>XWiki.XWikiAllGroup,</value>" with a comma at the end despite it is the only one element of the list.
      For the answer of the REST request "http://.../rest/wikis/testcamille/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/0/" the property value of "groups" is correct.

      Regards.
      {{Camille Desmots }}

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Camille_D Camille Desmots
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Date of First Response: