To reproduce :
Expected results : The REST API should return an error as the Guest user do not have view rights on the "TestPage" page. Current results : The REST API returns the list of the pages available in the "TestPage" page. See bellow :
<pages>
<pageSummary>
<link href="http: rel="http://www.xwiki.org/rel/page"/>
<id>xwiki:TestPage.WebPreferences</id>
<fullName>TestPage.WebPreferences</fullName>
<wiki>xwiki</wiki>
<space>TestPage</space>
<name>WebPreferences</name>
<title>Preferences</title>
<parent>WebHome</parent>
<xwikiRelativeUrl>
http:</xwikiRelativeUrl>
<xwikiAbsoluteUrl>
</xwikiAbsoluteUrl>
</pageSummary>
<pageSummary>
<link href="http: rel="http://www.xwiki.org/rel/page"/>
<id>xwiki:TestPage.WebHome</id>
<fullName>TestPage.WebHome</fullName>
<wiki>xwiki</wiki>
<space>TestPage</space>
<name>WebHome</name>
<title>TestPage</title>
<parent>Main.WebHome</parent>
<xwikiRelativeUrl>http:<xwikiAbsoluteUrl>http:</pageSummary>
<pageSummary>
<link href="http: rel="http://www.xwiki.org/rel/page"/>
<id>xwiki:TestPage.Page 1.Sub page 1.WebHome</id>
<fullName>TestPage.Page 1.Sub page 1.WebHome</fullName>
<wiki>xwiki</wiki>
<space>TestPage.Page 1.Sub page 1</space>
<name>WebHome</name>
<title>Sub page 1</title>
<parent>TestPage.Page 1.WebHome</parent>
<xwikiRelativeUrl>
http:</xwikiRelativeUrl>
<xwikiAbsoluteUrl>
http:</xwikiAbsoluteUrl>
</pageSummary>
<pageSummary>
<link href="http: rel="http://www.xwiki.org/rel/page"/>
<id>xwiki:TestPage.Page 1.WebHome</id>
<fullName>TestPage.Page 1.WebHome</fullName>
<wiki>xwiki</wiki>
<space>TestPage.Page 1</space>
<name>WebHome</name>
<title>Page 1</title>
<parent>TestPage.WebHome</parent>
<xwikiRelativeUrl>
http:</xwikiRelativeUrl>
<xwikiAbsoluteUrl>
http:</xwikiAbsoluteUrl>
</pageSummary>
<pageSummary>
<link href="http: rel="http://www.xwiki.org/rel/page"/>
<id>xwiki:Space5.TestPage.WebHome</id>
<fullName>Space5.TestPage.WebHome</fullName>
<wiki>xwiki</wiki>
<space>Space5.TestPage</space>
<name>WebHome</name>
<title>TestPage</title>
<parent>Main.WebHome</parent>
<xwikiRelativeUrl>
http:</xwikiRelativeUrl>
<xwikiAbsoluteUrl>
http:</xwikiAbsoluteUrl>
</pageSummary>
<pageSummary>
<link href="http: rel="http://www.xwiki.org/rel/page"/>
<id>xwiki:TestPage.Page 2.WebHome</id>
<fullName>TestPage.Page 2.WebHome</fullName>
<wiki>xwiki</wiki>
<space>TestPage.Page 2</space>
<name>WebHome</name>
<title>Page 2</title>
<parent>TestPage.WebHome</parent>
<xwikiRelativeUrl>
http:</xwikiRelativeUrl>
<xwikiAbsoluteUrl>
http:</xwikiAbsoluteUrl>
</pageSummary>
</pages>
Note that when using another REST API to get the list of children of the "TestPage" the REST API returns an error.
|