Uploaded image for project: 'Rights API'
  1. Rights API
  2. RIGHTSAPI-32

Error when creating a subwiki

    XMLWordPrintable

Details

    • Bug
    • Resolution: Solved By
    • Major
    • None
    • 2.0-rc-5
    • Unknown
    • N/A
    • N/A

    Description

      Creating a subwiki with the flavor apparently leads to some errors related to the listener of the rightapi.
      Reproduction steps:

      • Install the right API
      • Create a new subwiki
      • Check the logs

      Expected result:

      • The subwiki should be properly created

      Obtained result:

      • Some errors are present in the logs such as:
        Installing document [Test » Scheduler » NotificationEmailDailySender]
        No user/group to build this rule.
        class java.lang.IllegalArgumentException: No user/group to build this rule.
            at org.xwiki.contrib.rights.internal.XWikiSecurityRule.createNewRule(XWikiSecurityRule.java:284)
            at org.xwiki.contrib.rights.internal.RightObjectEventListener.getRules(RightObjectEventListener.java:137)
            at org.xwiki.contrib.rights.internal.RightObjectEventListener.processLocalEvent(RightObjectEventListener.java:118)
            at org.xwiki.refactoring.internal.listener.AbstractDocumentEventListener.onEvent(AbstractDocumentEventListener.java:55)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
            at com.xpn.xwiki.internal.event.XObjectEventGeneratorListener.onDocumentCreatedEvent(XObjectEventGeneratorListener.java:102)
            at com.xpn.xwiki.internal.event.XObjectEventGeneratorListener.onEvent(XObjectEventGeneratorListener.java:88)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:320)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:285)
            at com.xpn.xwiki.XWiki.afterSave(XWiki.java:1999)
            at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:2079)
            at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocumentSetContextUser(DocumentMergeImporter.java:208)
            at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocument(DocumentMergeImporter.java:154)
            at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.importDocument(DocumentMergeImporter.java:117)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:230)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:184)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:157)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:148)
            at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:201)
            at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:166)
            at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
            at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:330)
            at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:233)
            at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:181)
            at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:154)
            at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
            at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
            at org.xwiki.platform.wiki.creationjob.internal.ExtensionInstaller.installExtension(ExtensionInstaller.java:73)
            at org.xwiki.platform.wiki.creationjob.internal.steps.ProvisionWikiStep.execute(ProvisionWikiStep.java:78)
            at org.xwiki.platform.wiki.creationjob.internal.WikiCreationJob.runInternal(WikiCreationJob.java:96)
            at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:243)
            at org.xwiki.job.AbstractJob.run(AbstractJob.java:220)
            at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
            at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
            at java.base/java.lang.Thread.run(Thread.java:829)
        
        

      Attachments

        Issue Links

          Activity

            People

              surli Simon Urli
              surli Simon Urli
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: