Release Notes for XWiki 12.10.1

Version 7.1 by Thomas Mortagne on 2020/12/15

This is the release notes for XWiki Commons, XWiki Rendering and XWiki Platform. They share the same release notes as they are released together and have the same version.

This is a stabilisation release for the end of 12.x cycle. One more will follow before 12.x become the new LTS branch. It mostly bring bugfixes but it also come with a new rendering Syntax variant API and new experimental Live Data tools (but not used in XWiki Standard yet).

New and Noteworthy (since XWiki 12.10)

Full list of issues fixed and Dashboard for XWiki 12.10.1.

For Users

No changes!

For Admins

No changes!

For Developers

  • Syntax Variants: A Rendering Syntax Type can now have "variants" which represent variations of the base syntax. For example markdown+github is the GitHub-Flavored Markdown Syntax, markdown+commonmark is the CommonMark Markdown Syntax, etc. It used to be a best practice to use the + character to separate variants. It's now official and part of the API with some constructors and getters. For example:

    SyntaxType syntaxType = new SyntaxType("id", Arrays.asList("variant1", "variant2"), "name");
    assertThat(syntaxType.getVariants(), contains("variant1", "variant2"));

Upgrades

The following runtime dependencies have been upgraded (they have a different release cycle than XWiki Commons, XWiki Rendering and XWiki Platform):

Translations

The following translations have been updated: 

Known issues

Backward Compatibility and Migration Notes

General Notes

  • When upgrading make sure you compare and merge the following XWiki configuration files since some parameters may have been modified, removed or added:
    • xwiki.cfg
    • xwiki.properties
    • web.xml
    • hibernate.cfg.xml
  • Add xwiki.store.migration=1 in xwiki.cfg so that XWiki will attempt to automatically migrate your current database to any new schema. Make sure you backup your Database before doing anything.

API Breakages

The following APIs were modified since XWiki 12.10:

  • Unstable API added by mistake.
    • Violation type:
      java.method.removed
    • Code:
      ## Old:
      method void org.xwiki.diff.xml.XMLDiff::xxx()
  • Revert a refactoring done by mistake
    • Violation type:
      java.class.noLongerInheritsFromClass
    • Code:
      ## Old:
      class org.xwiki.rendering.wikimodel.xhtml.impl.LocalEntityResolver

      ## New:
      class org.xwiki.rendering.wikimodel.xhtml.impl.LocalEntityResolver
  • Unstable API.
    • Violation type:
      java.method.numberOfParametersChanged
    • Code:
      ## Old:
      method java.lang.String org.xwiki.security.authentication.api.AuthenticationFailureManager::getForm(java.lang.String)

      ## New:
      method java.lang.String org.xwiki.security.authentication.api.AuthenticationFailureManager::getForm(java.lang.String, javax.servlet.http.HttpServletRequest)
  • Unstable API.
    • Violation type:
      java.method.numberOfParametersChanged
    • Code:
      ## Old:
      method boolean org.xwiki.security.authentication.api.AuthenticationFailureManager::recordAuthenticationFailure(java.lang.String)

      ## New:
      method boolean org.xwiki.security.authentication.api.AuthenticationFailureManager::recordAuthenticationFailure(java.lang.String, javax.servlet.http.HttpServletRequest)
  • Unstable API.
    • Violation type:
      java.method.parameterTypeChanged
    • Code:
      ## Old:
      parameter boolean org.xwiki.security.authentication.api.AuthenticationFailureManager::validateForm(java.lang.String, ===org.securityfilter.filter.SecurityRequestWrapper===)

      ## New:
      parameter boolean org.xwiki.security.authentication.api.AuthenticationFailureManager::validateForm(java.lang.String, ===javax.servlet.http.HttpServletRequest===)
  • Unstable API.
    • Violation type:
      java.method.parameterTypeChanged
    • Code:
      ## Old:
      parameter boolean org.xwiki.security.authentication.api.AuthenticationFailureStrategy::validateForm(java.lang.String, ===org.securityfilter.filter.SecurityRequestWrapper===)

      ## New:
      parameter boolean org.xwiki.security.authentication.api.AuthenticationFailureStrategy::validateForm(java.lang.String, ===javax.servlet.http.HttpServletRequest===)
  • Young API. Redesign of the mention notifications mechanism.
    • Violation type:
      java.class.removed
    • Code:
      ## Old:
      interface org.xwiki.mentions.MentionNotificationService
  • Young API. Redesign of the mention notifications mechanism.
    • Violation type:
      java.method.numberOfParametersChanged
    • Code:
      ## Old:
      method void org.xwiki.mentions.notifications.MentionNotificationParameters::<init>(org.xwiki.model.reference.DocumentReference, org.xwiki.model.reference.DocumentReference, org.xwiki.model.reference.DocumentReference, org.xwiki.mentions.MentionLocation, java.lang.String, org.xwiki.rendering.block.XDOM)

      ## New:
      method void org.xwiki.mentions.notifications.MentionNotificationParameters::<init>(java.lang.String, org.xwiki.model.reference.EntityReference, org.xwiki.mentions.MentionLocation, java.lang.String)
  • Young API. Redesign of the mention notifications mechanism.
    • Violation type:
      java.method.removed
    • Code:
      ## Old:
      method java.lang.String org.xwiki.mentions.notifications.MentionNotificationParameters::getAnchorId()
  • Young API. Redesign of the mention notifications mechanism.
    • Violation type:
      java.method.returnTypeChanged
    • Code:
      ## Old:
      method org.xwiki.model.reference.DocumentReference org.xwiki.mentions.notifications.MentionNotificationParameters::getAuthorReference()

      ## New:
      method java.lang.String org.xwiki.mentions.notifications.MentionNotificationParameters::getAuthorReference()
  • Young API. Redesign of the mention notifications mechanism.
    • Violation type:
      java.method.removed
    • Code:
      ## Old:
      method org.xwiki.model.reference.DocumentReference org.xwiki.mentions.notifications.MentionNotificationParameters::getDocumentReference()
  • Young API. Redesign of the mention notifications mechanism.
    • Violation type:
      java.method.removed
    • Code:
      ## Old:
      method org.xwiki.model.reference.DocumentReference org.xwiki.mentions.notifications.MentionNotificationParameters::getMentionedIdentity()
  • Young API. Redesign of the mention notifications mechanism.
    • Violation type:
      java.method.removed
    • Code:
      ## Old:
      method org.xwiki.rendering.block.XDOM org.xwiki.mentions.notifications.MentionNotificationParameters::getXdom()
  • Young API. Redesign of the mention notifications mechanism.
    • Violation type:
      java.method.numberOfParametersChanged
    • Code:
      ## Old:
      method java.lang.String org.xwiki.mentions.script.MentionsScriptService::format(java.lang.String, org.xwiki.mentions.DisplayStyle)

      ## New:
      method java.lang.String org.xwiki.mentions.script.MentionsScriptService::format(java.lang.String, org.xwiki.mentions.DisplayStyle, java.lang.String)
  • Young API.
    • Violation type:
      java.method.addedToInterface
    • Code:
      ## Old:


      ## New:
      method long org.xwiki.ratings.RatingsManager::moveRatings(org.xwiki.model.reference.EntityReference, org.xwiki.model.reference.EntityReference) throws org.xwiki.ratings.RatingsException
  • Young API: fix typo.
    • Violation type:
      java.method.removed
    • Code:
      ## Old:
      method void org.xwiki.ratings.RatingsManager::setIdentifer(java.lang.String)
  • Young API: fix typo.
    • Violation type:
      java.method.addedToInterface
    • Code:
      ## Old:


      ## New:
      method void org.xwiki.ratings.RatingsManager::setIdentifier(java.lang.String)

Credits

The following people have contributed code and translations to this release (sorted alphabetically):

  • ClĂ©ment
  • Marius Dumitru Florea
  • Simon Urli
  • Thomas Mortagne
  • Vincent Massol
Tags:
   

Get Connected