Re: [xwiki-users] Only Admin Users can access Main space

2008-04-11 Thread Thomas Mortagne
Hi,

On Fri, Apr 11, 2008 at 12:23 AM, [Ricardo Rodriguez] Your EPEC
Network ICT Team [EMAIL PROTECTED] wrote:
 Hi Glenn,

  Glenn Everitt wrote:
   Thanks for the link Ricardo I reviewed that again and it helped me 
 understand
   the code more clearly.  I think I may have found an issue not sure yet if 
 it
   solves my problem.  If I add a group and give is some global rights and 
 then
   delete the group the group is still in the XWikiPreferences document in a
   XWiki.XWikiGlobalRights object.  It seems like when the group is deleted 
 the
   group reference in XWikiGlobalRights object should also be removed.  Can 
 you
   verify this?  I'll open a jira issue if you also believe it is a problem.
   Thanks
   Glenn Everitt
  

  Confirmed in a XE 1.3.8295 running on Suse Linux 9.0/Tomcat 6.0.10 and
  MySQL 5.0.24a via TCP/IP. Thanks for debugging this!

  By the way, have you seen this...

  http://www.nabble.com/Admin-rights-td16585830.html

  It has been confirmed by [EMAIL PROTECTED]

  It is not the same issue, but it seems that there is an object anywhere,
  or several ones, that are conferring this user pseudo admin rights. I
  say pseudo admin because access is rejected to pages/spaces where admin
  rights are required, but he/she is still evaluated as admin. Any idea
  will be welcome! Thanks.

  Cheers,

  Ricardo


  --
  Ricardo Rodríguez
  Your EPEC Network ICT Team

  ___
  users mailing list
  users@xwiki.org
  http://lists.xwiki.org/mailman/listinfo/users


I found what i the problem the field type of XWikiRights and
XWikiGlobalRights changed from String to LargeString somewhere between
1.2 and 1.3 it seems. Anyway I fixed this asking to class for the
field type name in place of directly set it in the hql query. See
http://jira.xwiki.org/jira/browse/XWIKI-2304

Fixed for 1.3 and 1.4, now I have to do selenium tests for this before
commiting ;)
It will be in the 1.3.2 and 1.4M2.

-- 
Thomas Mortagne
___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Only Admin Users can access Main space

2008-04-10 Thread Glenn Everitt

Thanks for the link Ricardo I reviewed that again and it helped me understand
the code more clearly.  I think I may have found an issue not sure yet if it
solves my problem.  If I add a group and give is some global rights and then
delete the group the group is still in the XWikiPreferences document in a
XWiki.XWikiGlobalRights object.  It seems like when the group is deleted the
group reference in XWikiGlobalRights object should also be removed.  Can you
verify this?  I'll open a jira issue if you also believe it is a problem.
Thanks
Glenn Everitt
-- 
View this message in context: 
http://www.nabble.com/Only-Admin-Users-can-access-Main-space-tp16421644p16609883.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Only Admin Users can access Main space

2008-04-10 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Glenn,

Glenn Everitt wrote:
 Thanks for the link Ricardo I reviewed that again and it helped me understand
 the code more clearly.  I think I may have found an issue not sure yet if it
 solves my problem.  If I add a group and give is some global rights and then
 delete the group the group is still in the XWikiPreferences document in a
 XWiki.XWikiGlobalRights object.  It seems like when the group is deleted the
 group reference in XWikiGlobalRights object should also be removed.  Can you
 verify this?  I'll open a jira issue if you also believe it is a problem.
 Thanks
 Glenn Everitt
   

Confirmed in a XE 1.3.8295 running on Suse Linux 9.0/Tomcat 6.0.10 and 
MySQL 5.0.24a via TCP/IP. Thanks for debugging this!

By the way, have you seen this...

http://www.nabble.com/Admin-rights-td16585830.html

It has been confirmed by [EMAIL PROTECTED]

It is not the same issue, but it seems that there is an object anywhere, 
or several ones, that are conferring this user pseudo admin rights. I 
say pseudo admin because access is rejected to pages/spaces where admin 
rights are required, but he/she is still evaluated as admin. Any idea 
will be welcome! Thanks.

Cheers,

Ricardo


-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Only Admin Users can access Main space

2008-04-10 Thread [Ricardo Rodriguez] Your EPEC Network ICT Team
Hi Glenn,

Glenn Everitt wrote:
 Thanks for the link Ricardo I reviewed that again and it helped me understand
 the code more clearly.  I think I may have found an issue not sure yet if it
 solves my problem.  If I add a group and give is some global rights and then
 delete the group the group is still in the XWikiPreferences document in a
 XWiki.XWikiGlobalRights object.  It seems like when the group is deleted the
 group reference in XWikiGlobalRights object should also be removed.  Can you
 verify this?  I'll open a jira issue if you also believe it is a problem.
 Thanks
 Glenn Everitt
   
Confirmed in a XE 1.3.8295 running on Suse Linux 9.0/Tomcat 6.0.10 and 
MySQL 5.0.24a via TCP/IP. Thanks for debugging this!

By the way, have you seen this...

http://www.nabble.com/Admin-rights-td16585830.html

It has been confirmed by [EMAIL PROTECTED]

It is not the same issue, but it seems that there is an object anywhere, 
or several ones, that are conferring this user pseudo admin rights. I 
say pseudo admin because access is rejected to pages/spaces where admin 
rights are required, but he/she is still evaluated as admin. Any idea 
will be welcome! Thanks.

Cheers,

Ricardo

-- 
Ricardo Rodríguez
Your EPEC Network ICT Team

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Only Admin Users can access Main space

2008-04-09 Thread Glenn Everitt

Ricardo:
sorry for the delay in replying.  I moved the XWiki database from an Oracle
9 instance to an Oracle 10 instance since I read that XWiki is only
supported on Oracle 10.  I wanted to try the same test on Oracle 10.  

Here is what I'm doing: 
add a new Group
add a new User
add User to Group
Give Group rights to View and Edit a specific Space

and the User just gets the message You are not allowed...

Maybe I am misunderstanding how rights work.  I am not giving the User ANY
Global Rights only rights to a couple of spaces like Main and a Space I
added.  

Can you tell me what method actually checks the authorization for a viewing
a Space?  I'll trace through the code and see if I can understand the
problem.
Thanks
Glenn Everitt


-- 
View this message in context: 
http://www.nabble.com/Only-Admin-Users-can-access-Main-space-tp16421644p16594869.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users


Re: [xwiki-users] Only Admin Users can access Main space

2008-04-07 Thread [Ricardo Rodríguez]

Hi Glenn,


Glenn Everitt wrote:
 
 Is the Main space special?  XWiki seems to require Admin rights to view
 Main.WebHome.  
 I am using XWiki version 1.3.  I searched jira but couldn't find anything
 that seemed relevant.
 

This is weird. I can not figure out any reasson other than you have modify
in any way the access rights to Main.WebHome or to Main by itself.

Do you keep getting this error? Have you already worked it out?


Glenn Everitt wrote:
 
 Is there some setting to change the redirect of
 http://localhost:8080/xwiki from Main.WebHome to MySpace.WebHome?
 

I guess the simplest way is to use $response.sendRedirect, but I don't know
yet how to avoid to pass the whole URL of the desired home page to the
method. Taking this into account, to add this to your Main.WebHome page will
do the job:

$response.sendRedirect(http://localhost:8080/xwiki/bin/view/MySpace/WebHome;)

HTH,

Ricardo

-- 
View this message in context: 
http://www.nabble.com/Only-Admin-Users-can-access-Main-space-tp16421644p16537272.html
Sent from the XWiki- Users mailing list archive at Nabble.com.

___
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users