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

xwiki-platform-legacy-security-authentication-api is not included in the WAR

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      Since XWIKI-18267 (13.1RC1), the APIs of xwiki-platform-security-authentication-api which were in the org.xwiki.security.authentication.api package have been deprecated and moved to xwiki-platform-legacy-security-authentication-api, which weaves xwiki-platform-security-authentication-api and adds back those deprecated APIs (and the matching components).

      But xwiki-platform-legacy-security-authentication-api was never added to the XWiki WAR: the WAR ships the plain xwiki-platform-security-authentication-api instead. So the following deprecated APIs and components are missing from XWiki since 13.1RC1:

      • org.xwiki.security.authentication.api.AuthenticationConfiguration
      • org.xwiki.security.authentication.api.AuthenticationFailureEvent
      • org.xwiki.security.authentication.api.AuthenticationFailureLimitReachedEvent
      • org.xwiki.security.authentication.api.AuthenticationFailureManager
      • org.xwiki.security.authentication.api.AuthenticationFailureStrategy

      STEPS TO REPRODUCE:

      • Install an extension written for XWiki < 13.1 which uses one of those APIs (e.g. injects an org.xwiki.security.authentication.api.AuthenticationFailureManager or implements org.xwiki.security.authentication.api.AuthenticationFailureStrategy)

      EXPECTED RESULTS: The extension works, thanks to the legacy module.

      ACTUAL RESULTS: The extension fails to load or to work (NoClassDefFoundError, missing component).

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: