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

Application manager fails to update application translations during initalization.

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      If there are any instances of XWikiApplicationClass on which the user that happens to initiate the wiki does not have view access to, the application manager will fail to update application translations. This is because the list of application is searched for with rights checking enabled. Moreover, the right service will try to display the login page because XWikiHibernateStore inappropriately use 'checkAccess' rather than 'haveAccessRights'.

      ERROR c.x.x.p.XWikiPluginManager     - Cannot initialize plugin [com.xpn.xwiki.plugin.applicationmanager.ApplicationManagerPlugin]. This plugin will not be available.
      java.lang.IllegalStateException: null
              at org.apache.catalina.connector.ResponseFacade.sendRedirect(ResponseFacade.java:436) ~[jbossweb-7.0.13.Final.jar!/:na]
              at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.showLogin(MyFormAuthenticator.java:88) ~[xwiki-platform-oldcore-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.user.impl.xwiki.MyFormAuthenticator.showLogin(MyFormAuthenticator.java:62) ~[xwiki-platform-oldcore-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.user.impl.xwiki.XWikiAuthServiceImpl.showLogin(XWikiAuthServiceImpl.java:350) ~[xwiki-platform-oldcore-4.1.4-kreablo.jar:na]
              at org.xwiki.security.authorization.internal.XWikiCachingRightService.showLogin(XWikiCachingRightService.java:209) ~[xwiki-platform-security-bridge-4.1.4-kreablo.jar:na]
              at org.xwiki.security.authorization.internal.XWikiCachingRightService.checkAccess(XWikiCachingRightService.java:333) ~[xwiki-platform-security-bridge-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.store.XWikiHibernateStore.searchDocuments(XWikiHibernateStore.java:2442) ~[xwiki-platform-oldcore-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.store.XWikiHibernateStore.searchDocuments(XWikiHibernateStore.java:2827) ~[xwiki-platform-oldcore-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.store.XWikiHibernateStore.searchDocuments(XWikiHibernateStore.java:2806) ~[xwiki-platform-oldcore-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.store.XWikiHibernateStore.searchDocuments(XWikiHibernateStore.java:2799) ~[xwiki-platform-oldcore-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.store.XWikiHibernateStore.searchDocuments(XWikiHibernateStore.java:2771) ~[xwiki-platform-oldcore-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.store.XWikiCacheStore.searchDocuments(XWikiCacheStore.java:480) ~[xwiki-platform-oldcore-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractXClassManager.searchXObjectDocumentsByFields(AbstractXClassManager.java:838) ~[xwiki-platform-application-manager-api-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.plugin.applicationmanager.core.doc.objects.classes.AbstractXClassManager.searchXObjectDocuments(AbstractXClassManager.java:802) ~[xwiki-platform-application-manager-api-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.getApplicationList(ApplicationManager.java:128) ~[xwiki-platform-application-manager-api-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.plugin.applicationmanager.ApplicationManager.updateAllApplicationTranslation(ApplicationManager.java:309) ~[xwiki-platform-application-manager-api-4.1.4-kreablo.jar:na]
              at com.xpn.xwiki.plugin.applicationmanager.ApplicationManagerPlugin.init(ApplicationManagerPlugin.java:81) ~[xwiki-platform-application-manager-api-4.1.4-kreablo.jar:na]
      

      Attachments

        Activity

          People

            aj Andreas Jonsson
            aj Andreas Jonsson
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: