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.

Among other things, this release brings a new User API for developers, the ability to add custom content inside the user profile menu via UI extensions, and we have more consistent menu icons. As usual, we have fixed numerous bugs.

Some important bugs have been found since this release has been made:

TypeKeySummaryStatusCreated Date
BugXWIKI-17258'Load older notifications' button under Activity Stream is missing on IE11 on TomcatClosed27-Apr-2020
BugXWIKI-17255Activity Stream does not load/display events properly anymoreClosed27-Apr-2020
BugXWIKI-17194XWIKI Office Importer options not available after server startedClosed08-Apr-2020
BugXWIKI-17192NullPointerException when using Notification macro with tagsClosed08-Apr-2020
BugXWIKI-17188Failure to compute diff in Extension ManagerClosed06-Apr-2020
BugXWIKI-17179Notifications cannot be displayed anymore on Tomcat installationsClosed02-Apr-2020
BugXWIKI-17175User membership in the profile - missing groupsClosed01-Apr-2020
BugXWIKI-17170LiveTables not working on IE 11 - "The environment prevents the table from loading data."Closed30-Mar-2020
BugXWIKI-17163Emoji characters break Office exportClosed27-Mar-2020
BugXWIKI-16967Failed to get the list of flavors on Distribution Wizard on TomcatClosed13-Jan-2020

New and Noteworthy (since XWiki 12.1)

Full list of issues fixed and Dashboard for XWiki 12.2.

For Users

More consistent menu icons


Updated class and object edit menu icons to make them more consistent with other places like the document tree viewer. The missing Annotations menu icon was also added.

For Admins

No changes!

Miscellaneous

  • HTTPS extensions repositories: The extensions repositories are now accessed through HTTPS instead of HTTP.

  • Ignore extension dependencies: It's now possible to force Extension Manager to ignore a set of dependencies that might cause problem or simply be useless. See Dependencies for more details.

  • SuperAdmin and Guest configuration: The configuration properties for the Guest and SuperaAdmin virtual users can now be overridden. This is achieved by modifying the xwiki.properties file.

    For example:

    user.preferences.superadmin.editor = Wysiwyg
    user.preferences.guest.editor = Text
    user.preferences.guest.displayHiddenDocuments = 1
  • Remove User's default_language xproperty: Remove the default_language xproperty that could be set in XWikiUsers xobjects since it was not working (since a very long time ago, possibly 1.1M3) and it was not a very useful and used xproperty.

  • SuperAdmin sees hidden pages: The Super Admin user now sees hidden pages.

For Developers

Maven exclusions support


Support for Maven dependency <exclusions> has (finally) been added.

New User API


We now have a new User API (see the History section to understand the various ways to get properties for a User and which APIs to use and which ones shouldn't be used).

Example from Java:

@Inject
private UserResolver<UserReference> userResolver;
...
User currentUser = userResolver.resolve(UserReference.CURRENT_USER_REFERENCE);
boolean isActive = currentUser.isActive()

Example from Velocity:

$services.user.resolveUser('').isActive()

Extensible User Profile Menu


The user profile menu is now extensible. You can add new entries to the user menu using the org.xwiki.plaftorm.user.profile.menu User Interface Extension Point (UIXP).

Miscellaneous

  • Solr multi-core: It's now possible to "reserve" a dedicated Solr core for the specific storage needs of an extension. See Solr Search Application for more details.

  • Allow to inject Javascript/CSS in Notification displayers: It is now possible to use the Skin Extension Plugin in the custom Notification displayers: this might allow to use custom javascript for the notifications.

  • Allow to unregister components in Extension Mojo: If you use some XWiki Maven Build Tools such as the Extension Plugin or the Packager Plugin, we introduced a new parameter disabledComponents in those mojos to allow to unregister some components during their execution.

    A typical usage of such parameter can be to prevent the execution of a MandatoryDocumentInitializer, for example:

    <configuration>
     <disabledComponents>
       <disabledComponent>
         <type>com.xpn.xwiki.doc.MandatoryDocumentInitializer</type>
         <role>XWiki.XWikiServerXwiki</role>
       </disabledComponent>
     </disabledComponents>
    </configuration>

Upgrades

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

In addition we stopped bundling Xalan and we're now relying on the version provided by the JVM instead.

Translations

The following translations have been updated: 

  • Polish
  • Indonesian
  • Marathi
  • German
  • French
  • Norwegian
  • Russian

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.1:

  • Not a Breakage. Moved to Legacy.
    • Violation type:
      java.class.removed
    • Code:
      ## Old:
      class org.xwiki.velocity.tools.CollectionsTool

Credits

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

  • Clemens Robbenhaar
  • Guillaume Delhumeau
  • Hassan Ali
  • Jarle Sandmo
  • Manuel Leduc
  • Marius Dumitru Florea
  • Nikunj Bansal
  • nmancus1
  • Oana-Lavinia Florean
  • Onlo
  • Prachi Joshi
  • Simon Urli
  • Thomas Mortagne
  • Usama ahmad
  • Vincent Massol
  • Vyacheslav Sukharnikov
  • xrichard
Tags:
Created by Vincent Massol on 2020/03/25
   

Get Connected