Re: [xwiki-users] Problem for removing or editing Workspaces

2012-02-27 Thread PUJOS Bertrand

Hi Eduard,

Thank you for your reply.  I ran new tests today, and problem is the 
same with latest 4.0 snapshot, and 3.5 stable. Here is the log with my 
latest config (XWiki 4.0-20120227.100811-45):


_catalina.out_
2012-02-27 15:17:55,188 
[https://xwiki-test.ircad.fr/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=ircadaudiovisuelworkspaceName=Audiovisuel%20IRCADconfirm=1srid=sun2nCFI] 
ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user 
[XWiki.superadmin] can delete workspace [ircadaudiovisuel]. Assuming false.

java.lang.NullPointerException: null
at 
org.xwiki.workspace.internal.DefaultWorkspaceManager.canDeleteWorkspace(DefaultWorkspaceManager.java:209) 
~[xwiki-platform-workspace-api-4.0-20120227.100811-45.jar:na]
at 
org.xwiki.workspace.internal.WorkspaceManagerScriptService.canDeleteWorkspace(WorkspaceManagerScriptService.java:105) 
[xwiki-platform-workspace-api-4.0-20120227.100811-45.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[na:1.6.0_20]
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
~[na:1.6.0_20]
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
~[na:1.6.0_20]


_ssl_access.log_
192.168.X.X - - [27/Feb/2012:15:17:59 +0100] GET 
/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=ircadaudiovisuelworkspaceName=Audiovisuel%20IRCADconfirm=1 
HTTP/1.1 200 6965 - Mozilla/5.0 (Windows NT 6.1; Win64; x64; 
rv:13.0) Gecko/20120223 Firefox/13.0a1
192.168.X.X - - [27/Feb/2012:15:17:59 +0100] POST 
/xwiki/bin/get/WorkspaceManager/DeleteWorkspaceCode?xpage=xpartvm=commentsinline.vm 
HTTP/1.1 200 1156 
https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=ircadaudiovisuelworkspaceName=Audiovisuel%20IRCADconfirm=1; 
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:13.0) Gecko/20120223 
Firefox/13.0a1
192.168.X.X - - [27/Feb/2012:15:18:09 +0100] GET 
/xwiki/bin/logout/XWiki/XWikiLogout?xredirect=https%3A%2F%2Fxwiki%2Dtest.domain.local%2Fxwiki%2Fbin%2Fview%2FWorkspaceManager%2FDeleteWorkspaceCode%3FworkspaceId%3Dircadaudiovisuel%26workspaceName%3DAudiovisuel%2520IRCAD%26confirm%3D1 
HTTP/1.1 302 1140 
https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=ircadaudiovisuelworkspaceName=Audiovisuel%20IRCADconfirm=1; 
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:13.0) Gecko/20120223 
Firefox/13.0a1
192.168.X.X - - [27/Feb/2012:15:18:10 +0100] GET 
/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=ircadaudiovisuelworkspaceName=Audiovisuel%20IRCADconfirm=1 
HTTP/1.1 302 676 
https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=ircadaudiovisuelworkspaceName=Audiovisuel%20IRCADconfirm=1; 
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:13.0) Gecko/20120223 
Firefox/13.0a1
192.168.X.X - - [27/Feb/2012:15:18:10 +0100] GET 
/xwiki/bin/login/XWiki/XWikiLogin?srid=sun2nCFIxredirect=%2Fxwiki%2Fbin%2Fview%2FWorkspaceManager%2FDeleteWorkspaceCode%3FworkspaceId%3Dircadaudiovisuel%26workspaceName%3DAudiovisuel%2520IRCAD%26confirm%3D1%26srid%3Dsun2nCFI 
HTTP/1.1 401 3444 
https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=ircadaudiovisuelworkspaceName=Audiovisuel%20IRCADconfirm=1; 
Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:13.0) Gecko/20120223 
Firefox/13.0a1


_WebUI:_ {{error}}The user superadmin is not allowed to delete the 
workspace Audiovisuel IRCAD.{{/error}}



My setup is quite standard, I think: Tomcat6 with openjdk-6-jdk / 
Apache2 with proxy AJP / MySQL. Is there something I misconfigured?


Otherwise, to delete a workspace, I have to go through the URL because 
GUI doesn'thave any button to do so. That's not quite easy...


Again, thanks a lot for your help.

Bertrand PUJOS
IT Department - IRCAD
bertrand.pu...@ircad.fr
+33 (0) 3 88 11 91 36


Le 22/02/2012 14:27, Eduard Moraru a écrit :

Hi Bertrand,

Sorry for the late answer.

It seems that there is a slight problem with the logging and it is not
providing a proper stack trace. I have just pushed a fix for that which
will, hopefully, show better what is going on.

I notice that you are running 4.0-SNAPSHOT. Please download the latest (=
22 Feb) snapshot build of the xwiki-platform-workspace-api.jar [1] and put
it into your webapps/xwiki/WEB-INF/lib folder, restart XWiki then try to
edit/delete a workspace again. After that, please show again the error
messages that you get in the logs (console).

I ran a quick test with a jetty-mysql XEM 4.0-SNAPSHOT build from 17 Feb
and I am able to edit/delete workspaces without 

Re: [xwiki-users] Problem for removing or editing Workspaces

2012-02-22 Thread Eduard Moraru
Hi Bertrand,

Sorry for the late answer.

It seems that there is a slight problem with the logging and it is not
providing a proper stack trace. I have just pushed a fix for that which
will, hopefully, show better what is going on.

I notice that you are running 4.0-SNAPSHOT. Please download the latest (=
22 Feb) snapshot build of the xwiki-platform-workspace-api.jar [1] and put
it into your webapps/xwiki/WEB-INF/lib folder, restart XWiki then try to
edit/delete a workspace again. After that, please show again the error
messages that you get in the logs (console).

I ran a quick test with a jetty-mysql XEM 4.0-SNAPSHOT build from 17 Feb
and I am able to edit/delete workspaces without problems. Do you have any
special setup?

Anyway, please post the new error logs so we can hopefully identify the
problem.

Thanks,
Eduard

---
[1]
http://nexus.xwiki.org/nexus/content/groups/public-snapshots/org/xwiki/platform/xwiki-platform-workspace-api/4.0-SNAPSHOT/xwiki-platform-workspace-api-4.0-20120222.125925-25.jar

On Thu, Feb 16, 2012 at 3:40 PM, PUJOS Bertrand bertrand.pu...@ircad.frwrote:

 Hi all,

 I am trying to get a mock-up with XWiki workspaces. I have a problem,
 especially to remove a workspace or to make a change in the description.
 Each time, the Tomcat log indicates that XWiki could not verify the user
 rights:

 When I try to delete the workspace:

 2012-02-16 14:02:54,068 [https://xwiki-test.domain.**local/xwiki/bin/view/
 **WorkspaceManager/**DeleteWorkspaceCode?**workspaceId=informatique**
 workspaceName=Informatique**confirm=1https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=informatiqueworkspaceName=Informatiqueconfirm=1]
 ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user
 [[XWiki.superadmin, informatique]] can delete workspace 
 [java.lang.**NullPointerException].
 Assuming false.

 When I try to edit any workspace parameter:

 2012-02-16 14:14:27,686 [https://xwiki-test.domain.**local/xwiki/bin/view/
 **WorkspaceManager/**UpdateWorkspaceCodehttps://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/UpdateWorkspaceCode]
 ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user
 [[XWiki.superadmin, informatique]] can edit workspace 
 [java.lang.**NullPointerException].
 Assuming false.
 2012-02-16 14:14:27,692 [https://xwiki-test.domain.**local/xwiki/bin/view/
 **WorkspaceManager/**UpdateWorkspaceCodehttps://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/UpdateWorkspaceCode]
 ERROR .WorkspaceManagerScriptService - Failed to edit workspace
 'informatique'.
 org.xwiki.workspace.**WorkspaceException: Access denied for user
 'XWiki.superadmin' to edit the workspace 'informatique' at
 org.xwiki.workspace.internal.**WorkspaceManagerScriptService.**
 editWorkspace(**WorkspaceManagerScriptService.**java:188)
 ~[xwiki-platform-workspace-**api-4.0-20120215.094308-2.jar:**na]
 2012-02-16 14:14:28,031 [https://xwiki-test.domain.**
 local/xwiki/wiki/informatique/**admin/XWiki/XWikiPreferences?**
 editor=globaladminsection=**XWiki.ManageWorkspacesrid=**xXxXxXhttps://xwiki-test.domain.local/xwiki/wiki/informatique/admin/XWiki/XWikiPreferences?editor=globaladminsection=XWiki.ManageWorkspacesrid=xXxXxX]
 ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user
 [[xwiki:XWiki.superadmin, informatique]] can delete workspace [java.lang.*
 *NullPointerException]. Assuming false.

 Problem is the same with XWiki.Admin, the owner of the workspace.Beyond
 that,I always thought that XWiki.superadmin always had full access,
 regardless of the rights settings... Do I have something wrong in my config?

 Any help will be welcome! Thanks.

 --
 Bertrand PUJOS
 IT Department - IRCAD
 bertrand.pu...@ircad.fr
 +33 (0) 3 88 11 91 36

 __**_
 users mailing list
 users@xwiki.org
 http://lists.xwiki.org/**mailman/listinfo/usershttp://lists.xwiki.org/mailman/listinfo/users

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


[xwiki-users] Problem for removing or editing Workspaces

2012-02-16 Thread PUJOS Bertrand

Hi all,

I am trying to get a mock-up with XWiki workspaces. I have a problem, 
especially to remove a workspace or to make a change in the description. 
Each time, the Tomcat log indicates that XWiki could not verify the user 
rights:


When I try to delete the workspace:

2012-02-16 14:02:54,068 
[https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=informatiqueworkspaceName=Informatiqueconfirm=1] 
ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user 
[[XWiki.superadmin, informatique]] can delete workspace 
[java.lang.NullPointerException]. Assuming false.


When I try to edit any workspace parameter:

2012-02-16 14:14:27,686 
[https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/UpdateWorkspaceCode] 
ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user 
[[XWiki.superadmin, informatique]] can edit workspace 
[java.lang.NullPointerException]. Assuming false.
2012-02-16 14:14:27,692 
[https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/UpdateWorkspaceCode] 
ERROR .WorkspaceManagerScriptService - Failed to edit workspace 
'informatique'.
org.xwiki.workspace.WorkspaceException: Access denied for user 
'XWiki.superadmin' to edit the workspace 'informatique' at 
org.xwiki.workspace.internal.WorkspaceManagerScriptService.editWorkspace(WorkspaceManagerScriptService.java:188) 
~[xwiki-platform-workspace-api-4.0-20120215.094308-2.jar:na]
2012-02-16 14:14:28,031 
[https://xwiki-test.domain.local/xwiki/wiki/informatique/admin/XWiki/XWikiPreferences?editor=globaladminsection=XWiki.ManageWorkspacesrid=xXxXxX] 
ERROR .x.w.i.DefaultWorkspaceManager - Failed to check if user 
[[xwiki:XWiki.superadmin, informatique]] can delete workspace 
[java.lang.NullPointerException]. Assuming false.


Problem is the same with XWiki.Admin, the owner of the workspace.Beyond 
that,I always thought that XWiki.superadmin always had full access, 
regardless of the rights settings... Do I have something wrong in my 
config?


Any help will be welcome! Thanks.

--
Bertrand PUJOS
IT Department - IRCAD
bertrand.pu...@ircad.fr
+33 (0) 3 88 11 91 36

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