Hi Eduard,

thanks for the answer.
I checked once again and had a look to the exact error in the log file. The problem is related to a macro I had on the left column to visualise the hierarchy of the space. Without the macro it works great.
Here is the macro:

{{velocity}}
#set($docSpace = $doc.space)
#set($WebPreferences = "WebPreferences")
#set($docPrefixedFullName = $doc.PrefixedFullName)
#panelheader($doc.space)
{{hierarchy displayvalue="name" space="$docSpace" checkright="true" excludes="$docSpace.$WebPreferences" openNode="$docPrefixedFullName"/}}
#panelfooter()
{{/velocity}}

and the error I noticed was:
Max calling depth of 100 was exceeded in macro 'getPathToRoot'

So I'll have to work my macro to solve this problem.

Thanks again.
Yvan

Am 07.01.2015 um 17:27 schrieb Eduard Moraru:
I have just tried your usecase and it works without any issue. Feel free to
try it out yourself on a clean XWiki instance.

Please double check your rights and that the user you are testing with is
not denied from another group he might be member of.

Thanks,
Eduard

On Wed, Jan 7, 2015 at 2:58 PM, Yvan Arnaud <[email protected]> wrote:

Hi,

Sorry for the misunderstanding. I meant child page when I wrote subpage.

So I'll try to be more precise:
I set specific rights on the space A: only group A has read/write
permission.
I create a page P1 in space A without parent and set specific right on
that page: group B has read permission
It works as expected: group A has read/write permissions and group B has
read permission on page P1.
If I create a page P2 as a child from Webhome page and set the read
permission to group B on that page then group B has no right to read the
page.

I forgot to specify that I'm working with XWiki 6.3.

Thanks
Yvan

Am 07.01.2015 um 13:39 schrieb Eduard Moraru:

  Hi,
XWiki has no notion of "subpages". All the pages inside a space are at the
same level.

If you are using a parent-child relationship between 2 pages, it has no
impact on rights, i.e. the rights of the parent page are not inherited to
the child page. This only works on a page-space relationship, i.e. the
pages of a space inherit the rights of the space.

So if you have 2 pages P1 and P2 inside space A and you set the same
rights
on both P1 and P2, but P1 is the parent of P2, the rights work only on P1,
but not on P2? Is this what you are describing?

Thanks,
Eduard

On Wed, Jan 7, 2015 at 1:19 PM, Yvan Arnaud <[email protected]> wrote:

  Hi,
I've started working with XWiki for a short time and I'm facing a probem
with the rights management.
I configured XWiki so every registered users have read permission as
default.
Then I created some private spaces with read access for a specific group
of users. Let's say group A has read permission on space A.
Other groups don't have access to this space A. So it is fine.
But I need sometimes to allow some specific groups or users to access
some
specific pages in this space. For example, group B should have read
access
on page 1 of space A.
I modified the access rights of the page accordingly. The problem is: it
doesn't work when the page is a subpage. It is working fine if the page
is
at the root of the space.
Is it a normal behaviour? What shall I do to make this work?

Thanks.

Yvan Arnaud

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

  _______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users




_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users




_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to