From version < 17.1 >
edited by Vincent Massol
on 2015/12/15
To version < 19.1 >
edited by Eduard Moraru
on 2015/12/15
< >
Change comment: Upload new image [savingNewDocumentWithTemplateHierarchy.png, /xwiki/bin/downloadrev/ReleaseNotes/ReleaseNotesXWiki74M2/savingNewDocumentWithTemplateHierarchy.png?rev=1.1]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.VincentMassol
1 +XWiki.enygma
Content
... ... @@ -57,7 +57,7 @@
57 57  
58 58  In addition a new [[Velocity Tool>>extensions:Extension.Velocity Module||anchor="HVelocityTools"]] was added in order to be able to use a portion of the NIO2 API from Velocity: ##niotool##.
59 59  
60 -See [[VFS API>>extensions:Extension.VFS API]] and [[VFS Tree Macro>>extensions:Extension.VFS Tree Macro]] for more details. Some examples:
60 +See [[VFS API>>extensions:Extension.VFS API]] and [[VFS Tree Macro>>extensions:Extension.VFS Tree Macro]] for more details. Some API examples:
61 61  
62 62  {{code language="velocity"}}
63 63  {{velocity}}
... ... @@ -80,6 +80,16 @@
80 80  {{vfsTree root="attach:Sandbox.WebHome@vma.txt.zip/"/}}
81 81  {{/code}}
82 82  
83 +Example of using the ##vfsTree## Macro:
84 +
85 +{{code language="none"}}
86 +{{vfsTree root="attach:Sandbox.WebHome@vma.txt.zip/"/}}
87 +{{/code}}
88 +
89 +Results in:
90 +
91 +{{image reference="vfstree.png"/}}
92 +
83 83  == Miscellaneous ==
84 84  
85 85  * [[WebJars URL format>>extensions:Extension.WebJars Integration||anchor="HURLFormat"]] now supports a ##wiki## query string parameter to specify the wiki in which the webjars resource is available. For example: {{code language="none"}}/xwiki/webjars/AjaxQ/0.0.2/ajaxq.js?wiki=mywiki{{/code}}
savingNewDocumentWithTemplateHierarchy.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.enygma
Size
... ... @@ -1,0 +1,1 @@
1 +79.3 KB
Content

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

This is our last stabilization branch for the XWiki 7.x Cycle. It brings polishing and stabilization for the Nested Pages feature and the changes in UI that resulted from it. It also introduce a new API to indicate how long a cache entry to stay in the cache (since it was inserted in the cache).

New and Noteworthy (since XWiki 7.4 Milestone 1)

Full list of issues fixed and Dashboard for 7.4.

Miscellaneous

  • The "annotations" button in the "More Actions" menu has been moved in the same menu but with other actions and renamed "Annotate".

     Annotate.png

See the full list of JIRA issues fixed in this release.

For Developers

New lifespan LRU Cache setup

It's now possible to define the maximum time to live since the entry is put in the cache. It used to be possible to set it only since the last time the value was used.

// Configure cache eviction policy
LRUEvictionConfiguration lru = new LRUEvictionConfiguration();
// Set maximum size of the cache as 1000 entries
lru.setMaxEntries(1000);
// Set the maximum time to live since when the entry is used to 1 hour
lru.setMaxIdle(3600)
// Set the maximum time to live since when the entry is put in the cache to 1 hour
lru.setLifespan(3600)

Cache Macro and Rendering Cache are now based on this behavior.

Deprecated and Retired projects

Upgrades

The following dependencies have been upgraded:

VFS API

Replacement of the Zip Explorer Plugin. API to access the content of archives files (zip, jar, gzip, tar, etc) located as attachments in wiki pages or elsewhere (external URLs, file system, et).

In addition a new Velocity Tool was added in order to be able to use a portion of the NIO2 API from Velocity: niotool.

See VFS API and VFS Tree Macro for more details. Some examples:

See VFS API and VFS Tree Macro for more details. Some API examples:

{{velocity}}
## Get the URL to access the content of a file inside a zip:
[[link to file in zip>>$services.vfs.url("attach:Sandbox.WebHome@vma.txt.zip/vma.txt")]]

## Display inline an image from a zip attached to a wiki page:
[[image:path:$services.vfs.url("attach:Sandbox.WebHome@test.zip/test.png")]]

## Read the content of a file inside a zip attached to a page:
$stringtool.toString($niotool.readAllBytes("attach:Sandbox.WebHome@vma.txt.zip/vma.txt"), "utf-8")

## List all entries inside a zip attached to a page:
#set ($dirStream = $niotool.newDirectoryStream("attach:Sandbox.WebHome@vma.txt.zip/"))
#foreach ($entry in $dirStream)
  * {{{$entry}}} - $niotool.isDirectory($entry)
#end
{{/velocity}}

{{vfsTree root="attach:Sandbox.WebHome@vma.txt.zip/"/}}

Example of using the vfsTree Macro:

{{vfsTree root="attach:Sandbox.WebHome@vma.txt.zip/"/}}

Results in:

vfstree.png

Miscellaneous

  • WebJars URL format now supports a wiki query string parameter to specify the wiki in which the webjars resource is available. For example: /xwiki/webjars/AjaxQ/0.0.2/ajaxq.js?wiki=mywiki

Translations

The following translations have been updated: 

  • German
  • French
  • Simplified Chinese

Tested Browsers & Databases

The QA Tests are executed after the release has been done. Thus, they are being prepared now and will be published soon.

Known issues

Backward Compatibility and Migration Notes

General Notes

When upgrading make sure you compare your xwiki.cfg, xwiki.properties and web.xml files with the newest version since some configuration parameters may have been modified or added. Note that you should add xwiki.store.migration=1 so that XWiki will attempt to automatically migrate your current database to the new schema. Make sure you backup your Database before doing anything.

API Breakages

The following APIs were modified since :

Get Connected