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/DeleteWorkspaceC...] 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=ircadaudiovisuel&workspaceName=Audiovisuel%20IRCAD&confirm=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=xpart&vm=commentsinline.vm HTTP/1.1" 200 1156 "https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorksp..." "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/DeleteWorksp..." "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=ircadaudiovisuel&workspaceName=Audiovisuel%20IRCAD&confirm=1 HTTP/1.1" 302 676 "https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorksp..." "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=sun2nCFI&xredirect=%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/DeleteWorksp..." "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 [email protected] +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 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/platf...
On Thu, Feb 16, 2012 at 3:40 PM, PUJOS Bertrand<[email protected]>wrote:
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=1<https://xwiki-test.domain.local/xwiki/bin/view/WorkspaceManager/DeleteWorkspaceCode?workspaceId=informatique&workspaceName=Informatique&confirm=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<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<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=globaladmin§ion=**XWiki.ManageWorkspace&srid=**xXxXxX<https://xwiki-test.domain.local/xwiki/wiki/informatique/admin/XWiki/XWikiPreferences?editor=globaladmin§ion=XWiki.ManageWorkspace&srid=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 [email protected] +33 (0) 3 88 11 91 36
______________________________**_________________ users mailing list [email protected] http://lists.xwiki.org/**mailman/listinfo/users<http://lists.xwiki.org/mailman/listinfo/users>
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users