Version 19.4 by Vincent Massol on 2015/12/16

Hide last authors
Thomas Mortagne 1.1 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 This is the release notes for [[XWiki Commons>>http://commons.xwiki.org]], [[XWiki Rendering>>http://rendering.xwiki.org]], [[XWiki Platform>>http://platform.xwiki.org]] and [[XWiki Enterprise>>http://enterprise.xwiki.org]]. They share the same release notes as they are released together and have the same version.
6
Thomas Mortagne 11.1 7 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).
Thomas Mortagne 1.1 8
9 = New and Noteworthy (since XWiki 7.4 Milestone 1) =
10
11 [[Full list of issues fixed and Dashboard for 7.4>>http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=13590]].
12
Eduard Moraru 19.2 13 == Support for template hierarchies ==
14
15 When creating a new document from template, if the template has descendent documents under its path, those documents will also be copied over to the new document's location, preserving the hierarchy, as it was under the template document.
16
17 The save operation will display progress and if it was a Save&View operation, the form will be disabled until the operation is complete.
18
Eduard Moraru 19.3 19 More details on the [[documentation page on document templates>>extensions:Extension.Administration Application||anchor="HUsingahierarchyofNestedDocumentsastemplate"]].
Eduard Moraru 19.2 20
Eduard Moraru 19.3 21 {{image reference="savingNewDocumentWithTemplateHierarchy.png" width="50%" /}}
22
Thomas Mortagne 1.1 23 == Miscellaneous ==
24
Guillaume Delhumeau 9.1 25 * The "annotations" button in the "More Actions" menu has been moved in the same menu but with other actions and renamed "Annotate".(((
26 {{image reference="Annotate.png"/}}
27 )))
Thomas Mortagne 1.1 28
Guillaume Delhumeau 14.1 29 See the [[full list of JIRA issues>>http://jira.xwiki.org/sr/jira.issueviews:searchrequest-printable/temp/SearchRequest.html?jqlQuery=project+in+%28XCOMMONS%2C+XRENDERING%2C+XWIKI%2C+XE%29+and+status+%3D+Closed+and+resolution+%3D+Fixed+and+fixVersion+%3D+%227.4-milestone-2%22&tempMax=1000]] fixed in this release.
Thomas Mortagne 1.1 30
31 = For Developers =
32
Thomas Mortagne 6.1 33 == New lifespan LRU Cache setup ==
Thomas Mortagne 1.1 34
Thomas Mortagne 6.1 35 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.
Thomas Mortagne 1.1 36
Thomas Mortagne 6.1 37 {{code language="java"}}
38 // Configure cache eviction policy
39 LRUEvictionConfiguration lru = new LRUEvictionConfiguration();
40 // Set maximum size of the cache as 1000 entries
41 lru.setMaxEntries(1000);
42 // Set the maximum time to live since when the entry is used to 1 hour
43 lru.setMaxIdle(3600)
44 // Set the maximum time to live since when the entry is put in the cache to 1 hour
45 lru.setLifespan(3600)
46 {{/code}}
47
Thomas Mortagne 7.1 48 [[Cache Macro>>extensions:Extension.Cache Macro]] and [[Rendering Cache>>platform:AdminGuide.Performances||anchor="HRenderingcache"]] are now based on this behavior.
49
Vincent Massol 19.4 50 == VFS API ==
Thomas Mortagne 1.1 51
Vincent Massol 19.4 52 {{warning}}
53 Right now the [[VFS API works as Guest only>>http://jira.xwiki.org/browse/XWIKI-12912]], meaning that you'll only be able to access archives that are viewable by Guest users in your wiki.
54 {{/warning}}
Thomas Mortagne 1.1 55
Vincent Massol 16.1 56 Replacement of the [[Zip Explorer Plugin>>extensions:Extension.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).
Vincent Massol 15.1 57
Vincent Massol 16.1 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##.
Vincent Massol 15.1 59
Vincent Massol 18.1 60 See [[VFS API>>extensions:Extension.VFS API]] and [[VFS Tree Macro>>extensions:Extension.VFS Tree Macro]] for more details. Some API examples:
Vincent Massol 16.1 61
Vincent Massol 15.1 62 {{code language="velocity"}}
63 {{velocity}}
64 ## Get the URL to access the content of a file inside a zip:
65 [[link to file in zip>>$services.vfs.url("attach:Sandbox.WebHome@vma.txt.zip/vma.txt")]]
66
67 ## Display inline an image from a zip attached to a wiki page:
68 [[image:path:$services.vfs.url("attach:Sandbox.WebHome@test.zip/test.png")]]
69
70 ## Read the content of a file inside a zip attached to a page:
71 $stringtool.toString($niotool.readAllBytes("attach:Sandbox.WebHome@vma.txt.zip/vma.txt"), "utf-8")
72
73 ## List all entries inside a zip attached to a page:
74 #set ($dirStream = $niotool.newDirectoryStream("attach:Sandbox.WebHome@vma.txt.zip/"))
75 #foreach ($entry in $dirStream)
76 * {{{$entry}}} - $niotool.isDirectory($entry)
77 #end
78 {{/velocity}}
79
80 {{vfsTree root="attach:Sandbox.WebHome@vma.txt.zip/"/}}
81 {{/code}}
82
Vincent Massol 18.1 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
Thomas Mortagne 1.1 93 == Miscellaneous ==
94
Vincent Massol 4.2 95 * [[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}}
Thomas Mortagne 1.1 96
Vincent Massol 19.4 97 == Deprecated and Retired projects ==
98
99 * XML-RPC module have been moved to https://github.com/xwiki-contrib/xwiki-platform-xmlrpc
100
101 == Upgrades ==
102
103 The following dependencies have been upgraded:
104
105 * [[Batik 1.8>>http://jira.xwiki.org/browse/XWIKI-12904]]
106 * [[FOP 2.0>>http://jira.xwiki.org/browse/XWIKI-12871]]
107 * [[Jackson 2.6.4>>http://jira.xwiki.org/browse/XCOMMONS-893]]
108 * [[guava 19>>http://jira.xwiki.org/browse/XCOMMONS-894]]
109 * [[Less4j 1.15.4>>http://jira.xwiki.org/browse/XWIKI-12905]]
110
Thomas Mortagne 1.1 111 = Translations =
112
113 The following translations have been updated:
114
Thomas Mortagne 12.1 115 {{language codes="de, fr, zh"/}}
Thomas Mortagne 1.1 116
117 = Tested Browsers & Databases =
118
119 {{warning}}
120 The QA Tests are executed after the release has been done. Thus, they are being prepared now and will be published soon.
121 {{/warning}}
122
123 {{comment}}
124 TODO: uncomment and update with proper link when the report is ready.
125 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
126 {{/comment}}
127
128 = Known issues =
129
130 * [[Bugs we know about>>http://jira.xwiki.org/secure/IssueNavigator.jspa?reset=true&jqlQuery=category+%3D+%22Top+Level+Projects%22+AND+issuetype+%3D+Bug+AND+resolution+%3D+Unresolved+ORDER+BY+updated+DESC]]
131
132 = Backward Compatibility and Migration Notes =
133
134 == General Notes ==
135
136 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.
137
138 == API Breakages ==
139
140 The following APIs were modified since <project> <version - 1>:
141
142 {{code language="none"}}
143 <clirr output here>
144 {{/code}}

Get Connected