Version 22.1 by Marius Dumitru Florea on 2015/12/16

Show last authors
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
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).
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
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
19 More details on the [[documentation page on document templates>>extensions:Extension.Administration Application||anchor="HUsingahierarchyofNestedDocumentsastemplate"]].
20
21 {{image reference="savingNewDocumentWithTemplateHierarchy.png" width="50%"/}}
22
23 == Miscellaneous ==
24
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 )))
28 * The Create Page UI allows you to view and change the location of the new page (that is going to be created) even when you [[open directly the URL of a new page>>platform:Features.DocumentLifecycle||anchor="HByenteringdirectlytheURLofthenewpage"]].
29
30 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.
31
32 = For Developers =
33
34 == New lifespan LRU Cache setup ==
35
36 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.
37
38 {{code language="java"}}
39 // Configure cache eviction policy
40 LRUEvictionConfiguration lru = new LRUEvictionConfiguration();
41 // Set maximum size of the cache as 1000 entries
42 lru.setMaxEntries(1000);
43 // Set the maximum time to live since when the entry is used to 1 hour
44 lru.setMaxIdle(3600)
45 // Set the maximum time to live since when the entry is put in the cache to 1 hour
46 lru.setLifespan(3600)
47 {{/code}}
48
49 [[Cache Macro>>extensions:Extension.Cache Macro]] and [[Rendering Cache>>platform:AdminGuide.Performances||anchor="HRenderingcache"]] are now based on this behavior.
50
51 == VFS API ==
52
53 {{warning}}
54 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.
55 {{/warning}}
56
57 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).
58
59 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##.
60
61 See [[VFS API>>extensions:Extension.VFS API]] and [[VFS Tree Macro>>extensions:Extension.VFS Tree Macro]] for more details. Some API examples:
62
63 {{code language="velocity"}}
64 {{velocity}}
65 ## Get the URL to access the content of a file inside a zip:
66 [[link to file in zip>>$services.vfs.url("attach:Sandbox.WebHome@vma.txt.zip/vma.txt")]]
67
68 ## Display inline an image from a zip attached to a wiki page:
69 [[image:path:$services.vfs.url("attach:Sandbox.WebHome@test.zip/test.png")]]
70
71 ## Read the content of a file inside a zip attached to a page:
72 $stringtool.toString($niotool.readAllBytes("attach:Sandbox.WebHome@vma.txt.zip/vma.txt"), "utf-8")
73
74 ## List all entries inside a zip attached to a page:
75 #set ($dirStream = $niotool.newDirectoryStream("attach:Sandbox.WebHome@vma.txt.zip/"))
76 #foreach ($entry in $dirStream)
77 * {{{$entry}}} - $niotool.isDirectory($entry)
78 #end
79 {{/velocity}}
80
81 {{vfsTree root="attach:Sandbox.WebHome@vma.txt.zip/"/}}
82 {{/code}}
83
84 Example of using the ##vfsTree## Macro:
85
86 {{code language="none"}}
87 {{vfsTree root="attach:Sandbox.WebHome@vma.txt.zip/"/}}
88 {{/code}}
89
90 Results in:
91
92 {{image reference="vfstree.png"/}}
93
94 == Miscellaneous ==
95
96 * [[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}}
97 * The default link behaviour can be disabled for a tree node, when you use the [[Tree Widget>>extensions:Extension.Tree Widget]], by using the 'jstree-no-link' CSS class on the node anchor, which can be set from the node JSON:(((
98 {{code language="none"}}
99 {
100 ... (node JSON) ...
101 'a_attr': {
102 'class': 'jstree-no-link',
103 'href': 'some/url'
104 }
105 }
106 {{/code}}
107 )))
108
109 == Deprecated and Retired projects ==
110
111 * XML-RPC module have been moved to https://github.com/xwiki-contrib/xwiki-platform-xmlrpc
112
113 == Upgrades ==
114
115 The following dependencies have been upgraded:
116
117 * [[Batik 1.8>>http://jira.xwiki.org/browse/XWIKI-12904]]
118 * [[FOP 2.0>>http://jira.xwiki.org/browse/XWIKI-12871]]
119 * [[Jackson 2.6.4>>http://jira.xwiki.org/browse/XCOMMONS-893]]
120 * [[guava 19>>http://jira.xwiki.org/browse/XCOMMONS-894]]
121 * [[Less4j 1.15.4>>http://jira.xwiki.org/browse/XWIKI-12905]]
122
123 = Translations =
124
125 The following translations have been updated:
126
127 {{language codes="de, fr, zh"/}}
128
129 = Tested Browsers & Databases =
130
131 {{warning}}
132 The QA Tests are executed after the release has been done. Thus, they are being prepared now and will be published soon.
133 {{/warning}}
134
135 {{comment}}
136 TODO: uncomment and update with proper link when the report is ready.
137 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
138 {{/comment}}
139
140 = Known issues =
141
142 * [[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]]
143
144 = Backward Compatibility and Migration Notes =
145
146 == General Notes ==
147
148 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.
149
150 == API Breakages ==
151
152 The following APIs were modified since <project> <version - 1>:
153
154 {{code language="none"}}
155 <clirr output here>
156 {{/code}}

Get Connected