Uploaded image for project: '{RETIRED} XWiki Enterprise'
  1. {RETIRED} XWiki Enterprise
  2. XE-1371

Access rights issue for Admin user during clean install with Distribution Wizard

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 6.0-milestone-1, 5.4.3
    • 5.4.2
    • Packaging
    • None
    • N/A
    • N/A

    Description

      Here's what I did to reproduce the issue:

      1. downloaded and unpacked xwiki-enterprise-jetty-hsqldb-5.4.2 zip
      2. deleted the data folder
      3. started XWiki and accessed the home page Main.WebHome
      4. The Distribution Wizard was triggered immediately and I started the installation.
      5. I was prompted to login
      6. After logging in I got "You are not allowed to view this document or perform this action.". I reloaded the page and I got the Distribution Wizard (probably related to XWIKI-10071). The installation of "XWiki Enterprise - UI - Main wiki" was done. The progress log had a couple of:
        Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.Admin]
        class org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [admin] access to [Wiki xwiki] for user [xwiki:XWiki.Admin]
            at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.checkRegistrationAuthorization(DocumentTranslationBundleFactory.java:436)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.registerTranslationBundle(DocumentTranslationBundleFactory.java:410)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.translationObjectAdded(DocumentTranslationBundleFactory.java:350)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.access$000(DocumentTranslationBundleFactory.java:89)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory$1.onEvent(DocumentTranslationBundleFactory.java:163)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:299)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:264)
            at com.xpn.xwiki.internal.event.XObjectEventGeneratorListener.onDocumentCreatedEvent(XObjectEventGeneratorListener.java:101)
            at com.xpn.xwiki.internal.event.XObjectEventGeneratorListener.onEvent(XObjectEventGeneratorListener.java:85)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:299)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:264)
            at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1325)
            at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocumentSetContextUser(DocumentMergeImporter.java:344)
            at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocument(DocumentMergeImporter.java:330)
            at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocument(DocumentMergeImporter.java:124)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:223)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:174)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:146)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:136)
            at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:222)
            at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:186)
            at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
            at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:218)
            at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:169)
            at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:116)
            at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:148)
            at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154)
            at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134)
            at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113)
            at java.lang.Thread.run(Thread.java:744)
        

        and (at the end) one of:

        Access denied when checking [programming] access to [Main Wiki] for user [xwiki:XWiki.Admin]
        class org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [programming] access to [Main Wiki] for user [xwiki:XWiki.Admin]
            at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.checkRegistrationAuthorization(DocumentTranslationBundleFactory.java:433)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.registerTranslationBundle(DocumentTranslationBundleFactory.java:410)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.translationObjectAdded(DocumentTranslationBundleFactory.java:350)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.access$000(DocumentTranslationBundleFactory.java:89)
            at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory$1.onEvent(DocumentTranslationBundleFactory.java:163)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:299)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:264)
            at com.xpn.xwiki.internal.event.XObjectEventGeneratorListener.onDocumentCreatedEvent(XObjectEventGeneratorListener.java:101)
            at com.xpn.xwiki.internal.event.XObjectEventGeneratorListener.onEvent(XObjectEventGeneratorListener.java:85)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:299)
            at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:264)
            at com.xpn.xwiki.XWiki.saveDocument(XWiki.java:1325)
            at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocumentSetContextUser(DocumentMergeImporter.java:344)
            at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocument(DocumentMergeImporter.java:330)
            at org.xwiki.extension.xar.internal.handler.packager.DocumentMergeImporter.saveDocument(DocumentMergeImporter.java:124)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importDocumentToWiki(Packager.java:223)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:174)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importXARToWiki(Packager.java:146)
            at org.xwiki.extension.xar.internal.handler.packager.Packager.importXAR(Packager.java:136)
            at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.installInternal(XarExtensionHandler.java:222)
            at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:186)
            at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:85)
            at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:218)
            at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:169)
            at org.xwiki.extension.job.internal.AbstractExtensionJob.applyActions(AbstractExtensionJob.java:116)
            at org.xwiki.extension.job.internal.InstallJob.runInternal(InstallJob.java:148)
            at org.xwiki.job.internal.AbstractJob.run(AbstractJob.java:154)
            at org.xwiki.job.internal.DefaultJobManager.runJob(DefaultJobManager.java:134)
            at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:113)
            at java.lang.Thread.run(Thread.java:744)
        
      7. I finished the wizard and I noticed that some translations were missing (the registration failed probably)

      So there are two issues:

      1. After logging in you need to reload the page (related to XWIKI-10071)
      2. There are some access rights checks that fail for Admin user
      3. Translation registration failed

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: