On Sat, Mar 6, 2010 at 18:13, Thomas Mortagne <[email protected]> wrote: > On Sat, Mar 6, 2010 at 18:09, Thomas Mortagne <[email protected]> > wrote: >> On Sat, Mar 6, 2010 at 17:39, Thomas Mortagne <[email protected]> >> wrote: >>> On Sat, Mar 6, 2010 at 17:17, Pascal Voitot Dev >>> <[email protected]> wrote: >>>> On Sat, Mar 6, 2010 at 2:24 PM, Thomas Mortagne >>>> <[email protected]>wrote: >>>> >>>>> On Fri, Mar 5, 2010 at 01:26, Pascal Voitot Dev >>>>> <[email protected]> wrote: >>>>> > Hello, >>>>> > I installed an XEM 2.2.1 on glassfish + mysql... OK >>>>> > Then I imported xwiki-enterprise-manager-wiki-administrator-2.2.1.xar >>>>> into >>>>> > the Wiki... it works and I get the XEM pages... >>>>> > I login as XWiki.Admin >>>>> > I try to create a new Wiki and I get this exception >>>>> > >>>>> > >>>>> [#|2010-03-05T01:16:21.719+0100|INFO|glassfishv3.0|javax.enterprise.system.std.com.sun.enterprise.v3.services.impl|_ThreadID=25;_ThreadName=Thread-1;|2010-03-05 >>>>> > 01:16:21,718 [ >>>>> > >>>>> http://MY_IP:8080/xwiki/bin/view/WikiManager/CreateNewWiki?wikiname=mywiki&XWiki.XWikiServerClass_0_wikiprettyname=mywiki&XWiki.XWikiServerClass_0_description=&XWiki.XWikiServerClass_0_server=my-adress.info&XWiki.XWikiServerClass_0_owner=XWiki.Admin&XWiki.XWikiServerClass_0_owner=&wikitemplate=&readersusers=xwiki%3AXWiki.Admin&writersusers=xwiki%3AXWiki.Admin&adminsusers=xwiki%3AXWiki.Admin&actioncreate=Create >>>>> ] >>>>> > ERROR kimanager.WikiManagerPluginApi - Wiki >>>>> > [Main.WebHome,my-adress.info,XWiki.Admin] >>>>> > creation failed >>>>> > com.xpn.xwiki.plugin.wikimanager.WikiManagerException: Error number 9001 >>>>> in >>>>> > 5: com.xpn.xwiki.plugin.wikimanager.WikiManagerPlugin: You dont have >>>>> right >>>>> > to create wiki [{0}] >>>>> > at >>>>> > >>>>> com.xpn.xwiki.plugin.wikimanager.WikiManagerPluginApi.createNewWiki(WikiManagerPluginApi.java:204) >>>>> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>> > at >>>>> > >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) >>>>> > at >>>>> > >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) >>>>> > at java.lang.reflect.Method.invoke(Method.java:597) >>>>> > at >>>>> > >>>>> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:389) >>>>> > at >>>>> > >>>>> org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:378) >>>>> > at >>>>> > >>>>> org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:270) >>>>> > at >>>>> > >>>>> org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:252) >>>>> > at >>>>> > >>>>> org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:493) >>>>> > at >>>>> > >>>>> org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:71) >>>>> > at >>>>> > >>>>> org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:142) >>>>> > at >>>>> > org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:72) >>>>> > at >>>>> > >>>>> org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:87) >>>>> > at >>>>> > >>>>> org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:336) >>>>> > at >>>>> > >>>>> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:191) >>>>> > at >>>>> > >>>>> org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:156) >>>>> > at >>>>> > >>>>> com.xpn.xwiki.render.XWikiVelocityRenderer.evaluate(XWikiVelocityRenderer.java:116) >>>>> > at >>>>> > >>>>> com.xpn.xwiki.render.XWikiVelocityRenderer.render(XWikiVelocityRenderer.java:93) >>>>> > at >>>>> > >>>>> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:272) >>>>> > at >>>>> > >>>>> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:202) >>>>> > at >>>>> > >>>>> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderText(DefaultXWikiRenderingEngine.java:170) >>>>> > at >>>>> > >>>>> com.xpn.xwiki.render.DefaultXWikiRenderingEngine.renderDocument(DefaultXWikiRenderingEngine.java:159) >>>>> > at >>>>> > >>>>> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:741) >>>>> > at >>>>> > >>>>> com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:758) >>>>> > at >>>>> com.xpn.xwiki.api.Document.getRenderedContent(Document.java:492) >>>>> > >>>>> > I've seen a closed/Won't fix bug in Jira >>>>> > http://jira.xwiki.org/jira/browse/XAWM-115 but the given information >>>>> brings >>>>> > no help... >>>>> > I create a page in Wiki WikiManager as indicated in this bug: >>>>> > >>>>> > {{velocity}} >>>>> > #set($xwikicontext = $context.context) >>>>> > #set($rightService = $xwikicontext.getWiki().getRightService()) >>>>> > * Is the wiki in virtual mode: $xwikicontext.getWiki().isVirtualMode() >>>>> > * The user [$context.user] has admin rights: >>>>> > $rightService.hasAdminRights($xwikicontext) >>>>> > * The user [$context.user] has programming rights: >>>>> > $rightService.hasProgrammingRights($xwikicontext) >>>>> > {{/velocity}} >>>>> > >>>>> > It gives: >>>>> > Is the wiki in virtual mode: true >>>>> > The user [XWiki.Admin] has admin rights: true >>>>> > The user [XWiki.Admin] has programming rights: true >>>>> > >>>>> > I tried with the template "templatexe" also but nothing better... >>>>> > >>>>> > Has anyone encountered the same error as me or any idea? >>>>> >>>>> You should make the the /WikiManager/CreateNewWiki page has been saved >>>>> with the proper user, if your XWiki.Admin has programming right edit >>>>> and save the page to make sure the page has programming right, maybe >>>>> for some reason the page as been modified with another user in your >>>>> wiki. >>>>> >>>>> > >>>>> >>>> >>>> ok I see... >>>> Basically, when I create the wiki, it's simply empty and I'm recognized as >>>> XWiki.Guest! >>> >>> That is normal. >>> >>>> Then I import XEM xar file into this wiki and then I log in as >>>> XWiki.Admin... but everything has been imported as Guest! >>> >>> What "import mode" did you used ? I think "Add a new version to the >>> existing document" use current user as author for security reasons but >>> it should keep the user from the xar with "Replace the document >>> history with the history from the package" or "Reset history to >>> version 1.1" i think. >> >> Actually that's not it, looks like all the modes change the user. >> Checking something. > > I found what is the issue but it doe snot seems right. To properly > import the xar you have to open it and modify the package.xml file to > change <backupPack>false</backupPack> in <backupPack>true</backupPack>
Another way is to log with superadmin before importing the xar (but it means all the pages will have superadmin as author). > >> >>> >>>> >>>> Pascal >>>> >>>> >>>> >>>>> > regards >>>>> > Pascal >>>>> > _______________________________________________ >>>>> > devs mailing list >>>>> > [email protected] >>>>> > http://lists.xwiki.org/mailman/listinfo/devs >>>>> > >>>>> >>>>> >>>>> >>>>> -- >>>>> Thomas Mortagne >>>>> _______________________________________________ >>>>> devs mailing list >>>>> [email protected] >>>>> http://lists.xwiki.org/mailman/listinfo/devs >>>>> >>>> _______________________________________________ >>>> devs mailing list >>>> [email protected] >>>> http://lists.xwiki.org/mailman/listinfo/devs >>>> >>> >>> >>> >>> -- >>> Thomas Mortagne >>> >> >> >> >> -- >> Thomas Mortagne >> > > > > -- > Thomas Mortagne > -- Thomas Mortagne _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

