Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-14627

XWiki.UserProfileTranslations is requiring programming rights to register translations

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 8.4
    • User - User Profile
    • None
    • Unknown

    Description

      It's because the scope is GLOBAL.

      So when you are in a farm mode (such as myxwiki.org), you'll see errors like this one:

      2017-08-18 11:49:16,593 [pool-2-thread-90] INFO  .a.DefaultAuthorizationManager - [programming] access has been denied for user [lescastcodeurs:XWiki.EmmanuelBernard] on [Public]: security checkpoint 
      2017-08-18 11:49:16,595 [pool-2-thread-90] ERROR cumentTranslationBundleFactory - Failed to register translation bundle from document [lescastcodeurs:XWiki.UserProfileTranslations] 
      org.xwiki.security.authorization.AccessDeniedException: Access denied when checking [programming] access to [Main Wiki] for user [lescastcodeurs:XWiki.EmmanuelBernard]
          at org.xwiki.security.authorization.DefaultAuthorizationManager.checkAccess(DefaultAuthorizationManager.java:94)
          at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.checkRegistrationAuthorization(DocumentTranslationBundleFactory.java:439)
          at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.registerTranslationBundle(DocumentTranslationBundleFactory.java:418)
          at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.loadTranslations(DocumentTranslationBundleFactory.java:233)
          at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory.access$200(DocumentTranslationBundleFactory.java:86)
          at org.xwiki.localization.wiki.internal.DocumentTranslationBundleFactory$2.onEvent(DocumentTranslationBundleFactory.java:177)
          at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:304)
          at org.xwiki.observation.internal.DefaultObservationManager.notify(DefaultObservationManager.java:269)
          at com.xpn.xwiki.internal.WikiInitializerJob.runInternal(WikiInitializerJob.java:120)
          at org.xwiki.job.AbstractJob.runInContext(AbstractJob.java:206)
          at org.xwiki.job.AbstractJob.run(AbstractJob.java:189)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
          at java.lang.Thread.run(Thread.java:745)
      

      Attachments

        Issue Links

          Activity

            People

              evalica Ecaterina Moraru (Valica)
              vmassol Vincent Massol
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: