Details
-
Bug
-
Resolution: Cannot Reproduce
-
Minor
-
None
-
9.10.1
-
None
-
Unknown
-
Description
For the REST request :
<your rest bae URL>/wikis/<your default wiki>/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/0
We've got this response :
<object>
<link href="<Your REST URL>/wikis/<Your default wiki>/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/0" rel="self"/>
<id>xwiki:XWiki.XWikiPreferences:369eb46f-6311-437b-a3a1-38755f324898</id>
<guid>369eb46f-6311-437b-a3a1-38755f324898</guid>
<pageId>xwiki:XWiki.XWikiPreferences</pageId>
<pageVersion>3.1</pageVersion>
<wiki>xwiki</wiki>
<space>XWiki</space>
<pageName>XWikiPreferences</pageName>
<pageAuthor>XWiki.adminxwiki02</pageAuthor>
<className>XWiki.XWikiGlobalRights</className>
<number>0</number>
<headline>1</headline>
<property name="allow" type="Boolean">
<link href="<Your REST URL>/wikis/<Your default wiki>/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/0/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="<Your REST URL>/wikis/<Your default wiki>/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/0/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.XWikiAdminGroup</value>
</property>
<property name="levels" type="Levels">
<link href="<Your REST URL>/wikis/<Your default wiki>/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/0/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>admin,edit,undelete,delete,programming,comment,createwiki,script</value>
</property>
<property name="users" type="Users">
<link href="<Your REST URL>/wikis/<Your default wiki>/spaces/XWiki/pages/XWikiPreferences/objects/XWiki.XWikiGlobalRights/0/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="<List of all users>"/>
<value/>
</property>
</object>
If you check well the allowedValues for the property 'levels' doesn't have 'undelete' despite this is in the content of 'value'.
Either 'undelete' should appear in the allowed values, either it shouldn't appear in 'value' of the property 'levels'.
Regards.
Camille Desmots