Wiki source code of Release Notes for XWiki 7.4

Version 30.1 by Guillaume Delhumeau on 2015/12/28

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 release for the XWiki 7.x cycle. It mainly brings polishing and stabilization for the Nested Pages feature, especially in the UI. Among other things, this release introduces a new notifications menu with the watchlist actions inside. Application Within Minutes now creates a //Code// and a //Data// page where the application content is stored. And it is now possible to have template hierarchies and to add an redirection when a page is renamed.
8
9 = New and Noteworthy (since XWiki 7.3) =
10
11 [[Full list of issues fixed and Dashboard for 7.4>>http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=13590]].
12
13 == Notifications & Watchlist ==
14
15 * A new menu has been added to the top bar, on the right: the "notifications" menu (represented by a bell). In the future, it will be the place where you can find notifications about some events happening on the wiki (personal message, a page has been modified, etc...).(((
16 {{image reference="Notifications.png"/}}
17 )))
18 * In this menu, we have moved the Watchlist icons (watch this page, watch this wiki, etc...). These actions can be triggered with the new switch buttons.(((
19 {{image reference="WatchList-Notifications.png"/}}
20 )))
21 * The livetable of the [[WatchList macro>>extensions:Extension.Watchlist Application]] have been updated to support Nested Pages.(((
22 {{image reference="WatchListTable.png"/}}
23 )))
24
25 == App Within Minutes ==
26
27 The application Code and Data pages are now being created. The Code page lists the application code pages.
28
29 {{image reference="[email protected]"/}}
30
31 The application Data page shows a live table with the application entries. The application home page has been modified to include the Data page.
32
33 {{image reference="[email protected]"/}}
34
35 The application entries (custom) live table results page is not generated any more because it was used only to load the translations on demand and now they are loaded on the wiki or user scope, based on the user rights.
36
37 == Support for template hierarchies ==
38
39 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.
40
41 The save operation will display progress and if it was a Save&View operation, the form will be disabled until the operation is complete.
42
43 More details on the [[documentation page on document templates>>extensions:Extension.Administration Application||anchor="HUsingahierarchyofNestedDocumentsastemplate"]].
44
45 {{image reference="[email protected]" width="50%"/}}
46
47 == Automatic Redirect on Page Rename ==
48
49 The [[Rename Page>>platform:Features.DocumentLifecycle||anchor="HMove2FRename"]] action has a new option (selected by default) to create an automatic redirect from the old page location to the new one. This will ensure that the external links (e.g. the bookmarks) to the renamed page (and its children) will continue to work.
50
51 {{image reference="[email protected]"/}}
52
53 == Database Search ==
54
55 The [[Database Search>>extensions:Extension.Search Application||anchor="HDatabaseSearch"]] UI has been modified to support nested pages.
56
57 {{image reference="[email protected]"/}}
58
59 == Miscellaneous ==
60
61 * The default logo is now optimized for "Retina" screens, and can be scaled to any dimensions since it's a vectorial image.
62 * The Information tab, at the bottom of each page, does not display the parent and the children of the current page anymore. Since this information is available both in the breadcrumb and in the children viewer, they were redundant and have been removed.(((
63 {{image reference="[email protected]"/}}
64 )))
65 * To be more intuitive, the titles of the Rights sections in the page administration have been changed.(((
66 {{image reference="[email protected]"/}}
67 )))
68 * Some [[bootswatch themes>>extensions:Extension.Bootswatch Themes for Flamingo]] have now a more accurate logo.
69 * When the search button on the top menu is clicked, it now closes all other menus.
70 * The Sandbox now uses XWiki Syntax 2.1.
71 * Non terminal pages are now exported with their corresponding ##WebPreferences## page
72 * The "annotations" button in the "More Actions" menu has been moved in the same menu but with other actions and renamed "Annotate".(((
73 {{image reference="[email protected]"/}}
74 )))
75 * 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"]].
76
77 See the [[full list of JIRA issues>>http://jira.xwiki.org/issues/?filter=14295]] fixed in this release.
78
79 = For Developers =
80
81 == Flamingo ==
82
83 An extension point to add content inside the new "Notifications" menu has been added:
84
85 |=##[[org.xwiki.platform.notifications>>platform:ExtensionPoint.Notifications]]##
86 |{{image reference="[email protected]"/}}
87
88 == Tree Velocity Macros ==
89
90 You are now able to "call" the Document Tree from Velocity using something like this:
91
92 {{code language="none"}}
93 #documentTree({
94 'class': 'location-tree',
95 'finder': true,
96 'showAttachments': false,
97 'showRoot': $showRoot,
98 'showTerminalDocuments': false,
99 'showTranslations': false,
100 'showWikis': $showWikis
101 })
102 {{/code}}
103
104 The same is possible with the generic Tree Widget:
105
106 {{code language="none"}}
107 #tree({
108 'reference': 'XWiki.DocumentTree',
109 'root': 'document:xwiki:Sandbox.WebHome',
110 'openTo': 'document:xwiki:Sandbox.TestPage2'
111 })
112 {{/code}}
113
114 All the parameters that are available for the wiki macros (##~{~{documentTree}}## and ##~{~{tree}}##) should be available also for the corresponding Velocity macro.
115
116 == New public Abstract job ==
117
118 A public ##org.xwiki.job.AbstractJob## (and corresponding ##AbstractJobStatus##) is now provided to help implementing a Job. An ##AbstractJob## class already existed since a long time but it was in an internal package.
119
120 == New lifespan LRU Cache setup ==
121
122 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.
123
124 {{code language="java"}}
125 // Configure cache eviction policy
126 LRUEvictionConfiguration lru = new LRUEvictionConfiguration();
127 // Set maximum size of the cache as 1000 entries
128 lru.setMaxEntries(1000);
129 // Set the maximum time to live since when the entry is used to 1 hour
130 lru.setMaxIdle(3600)
131 // Set the maximum time to live since when the entry is put in the cache to 1 hour
132 lru.setLifespan(3600)
133 {{/code}}
134
135 [[Cache Macro>>extensions:Extension.Cache Macro]] and [[Rendering Cache>>platform:AdminGuide.Performances||anchor="HRenderingcache"]] are now based on this behavior.
136
137 == VFS API ==
138
139 {{warning}}
140 Right now the [[VFS API is missing authorization checks>>http://jira.xwiki.org/browse/XWIKI-12912]], meaning that you should use it only for public archives.
141 {{/warning}}
142
143 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).
144
145 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##.
146
147 See [[VFS API>>extensions:Extension.VFS API]] and [[VFS Tree Macro>>extensions:Extension.VFS Tree Macro]] for more details. Some API examples:
148
149 {{code language="velocity"}}
150 {{velocity}}
151 ## Get the URL to access the content of a file inside a zip:
152 [[link to file in zip>>$services.vfs.url("attach:[email protected]/vma.txt")]]
153
154 ## Display inline an image from a zip attached to a wiki page:
155 [[image:path:$services.vfs.url("attach:[email protected]/test.png")]]
156
157 ## Read the content of a file inside a zip attached to a page:
158 $stringtool.toString($niotool.readAllBytes("attach:[email protected]/vma.txt"), "utf-8")
159
160 ## List all entries inside a zip attached to a page:
161 #set ($dirStream = $niotool.newDirectoryStream("attach:[email protected]/"))
162 #foreach ($entry in $dirStream)
163 * {{{$entry}}} - $niotool.isDirectory($entry)
164 #end
165 {{/velocity}}
166
167 {{vfsTree root="attach:[email protected]/"/}}
168 {{/code}}
169
170 Example of using the ##vfsTree## Macro:
171
172 {{code language="none"}}
173 {{vfsTree root="attach:[email protected]/"/}}
174 {{/code}}
175
176 Results in:
177
178 {{image reference="[email protected]"/}}
179
180
181 == Miscellaneous ==
182
183 * A new ##extractFirstReference(EntityType)## API has been added to ##EntityReference##: Extract the first entity of the given type from this one by traversing the current entity to the root. This differentiates it from ##extractReference(EntityType)## which extracts the last entity of the given type.
184 * The escape Velocity tool has a new method to escape CSS identifiers. This is similar to ##CSS.escape()## available in JavaScript, and is useful if you want to create CSS selectors dynamicaly using untrusted input.(((
185 {{code language="none"}}
186 $escapetool.css('a#b.c d[e=f]g{h:i;j}k')
187 ## Output: a\\#b\\.c\\ d\\[e\\=f\\]g\\{h\\:i\\;j\\}k
188 {{/code}}
189 )))
190 * The Document Tree Macro has a new parameter to control whether the hidden documents are filtered or not. Set to false to force the display of the hidden documents in the tree.(((
191 {{code language="none"}}
192 {{documentTree filterHiddenDocuments="false" /}}
193 {{/code}}
194 )))
195 * Temporary resources can now be forced to be downloaded by using the ##force-download=1## URL parameter
196 * [[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}}
197 * 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:(((
198 {{code language="none"}}
199 {
200 ... (node JSON) ...
201 'a_attr': {
202 'class': 'jstree-no-link',
203 'href': 'some/url'
204 }
205 }
206 {{/code}}
207 )))
208 * The ##$regextool## [[Velocity Tool>>extensions:Extension.Velocity Module||anchor="HVelocityTools"]] has a new method:(((
209 {{code language="java"}}
210 /**
211 * @param content the content to parse
212 * @param regex the regular expression to look for in the passed content
213 * @return an empty list if the passed regular expression doesn't match the content, several {@link RegexResult}
214 * objects containing the matched position and matched content for all capturing groups and sub-groups
215 * otherwise
216 */
217 public List<List<RegexResult>> findAll(String content, String regex)
218 {{/code}}
219
220 We had to add a new method because the existing ##RegexTool#find(String, String)## returns information about only the first capturing group. Here's a test to show how the new method works:
221
222 {{code language="java"}}
223 @Test
224 public void findAll()
225 {
226 RegexTool tool = new RegexTool();
227 List<List<RegexResult>> result =
228 tool.findAll("one :two three (:four) five :six seven=:eight", ":(\\w+) (\\w+)");
229
230 Assert.assertEquals(2, result.size());
231 Assert.assertEquals(":two three", result.get(0).get(0).getGroup());
232 Assert.assertEquals(":six seven", result.get(1).get(0).getGroup());
233
234 Assert.assertEquals(3, result.get(0).size());
235 Assert.assertEquals("two", result.get(0).get(1).getGroup());
236 Assert.assertEquals("three", result.get(0).get(2).getGroup());
237
238 Assert.assertEquals(3, result.get(1).size());
239 Assert.assertEquals("six", result.get(1).get(1).getGroup());
240 Assert.assertEquals("seven", result.get(1).get(2).getGroup());
241 }
242 {{/code}}
243 )))
244
245 * The top level Commons POM now performs some checks on the POMs that have it as parent; for example it checks that non core POMs don't use the "XWiki Development Team" in the developers section so that non-core Extensions deployed on extensions.xwiki.org don't appear as developed by the XWiki Development Team.
246 * You can now disable the default [[Live Table>>extensions:Extension.Livetable Macro]] query filters by passing the empty string as the value of the ##queryFilters## parameter.
247
248 == Deprecated and Retired projects ==
249
250 * XML-RPC module have been moved to https://github.com/xwiki-contrib/xwiki-platform-xmlrpc
251
252 == Upgrades ==
253
254 The following dependencies have been upgraded:
255
256 * [[Batik 1.8>>http://jira.xwiki.org/browse/XWIKI-12904]]
257 * [[commons-collections 3.2.2>>http://jira.xwiki.org/browse/XCOMMONS-881]]
258 * [[commons-collections 4.1>>http://jira.xwiki.org/browse/XCOMMONS-889]]
259 * [[commons-dbcp2 2.1.1>>http://jira.xwiki.org/browse/XCOMMONS-884]]
260 * [[commons-net 3.4>>http://jira.xwiki.org/browse/XCOMMONS-887]]
261 * [[FOP 2.0>>http://jira.xwiki.org/browse/XWIKI-12871]]
262 * [[guava 19>>http://jira.xwiki.org/browse/XCOMMONS-894]]
263 * [[Guice 4.0>>http://jira.xwiki.org/browse/XCOMMONS-883]]
264 * [[Jackson 2.6.4>>http://jira.xwiki.org/browse/XCOMMONS-893]]
265 * [[jboss-logging 3.1.4>>http://jira.xwiki.org/browse/XCOMMONS-885]]
266 * [[Joda-Time 2.9.1>>http://jira.xwiki.org/browse/XWIKI-12816]]
267 * [[Less4j 1.15.4>>http://jira.xwiki.org/browse/XWIKI-12905]]
268 * [[Maven 3.3.9>>http://jira.xwiki.org/browse/XCOMMONS-883]]
269 * [[slf4j 1.7.13>>http://jira.xwiki.org/browse/XCOMMONS-879]]
270 * [[Woodstox 4.4.1>>http://jira.xwiki.org/browse/XWIKI-12853]]
271
272 = Translations =
273
274 The following translations have been updated:
275
276 {{language codes="none, none"/}}
277
278 = Tested Browsers & Databases =
279
280 {{warning}}
281 The QA Tests are executed after the release has been done. Thus, they are being prepared now and will be published soon.
282 {{/warning}}
283
284 {{comment}}
285 TODO: uncomment and update with proper link when the report is ready.
286 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
287 {{/comment}}
288
289 = Performances tests compared to <last super stable version> =
290
291 <a summary of the comparison with latest super stable version>
292
293 More details on <link to the test report>.
294
295 = Known issues =
296
297 * [[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]]
298
299 = Backward Compatibility and Migration Notes =
300
301 == General Notes ==
302
303 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.
304
305 == Issues specific to XWiki 7.4 ==
306
307 * Better backward-compatibility for URLs has been added for the following 2 cases:
308 ** If the ##view## action is omitted in the URL and the first space name doesn't match an action name, then the "view" action is implied
309 ** The ##view## action can be specified even when the wiki is configured to hide the ##view## action.
310 ** Note that this fixes [[some backward-compatibility issue introduced in XWiki 7.2>>ReleaseNotes.ReleaseNotesXWiki72||anchor="HURLs"]]
311
312 == API Breakages ==
313
314 The following APIs were modified since <project> <version - 1>:
315
316 {{code language="none"}}
317 <clirr output here>
318 {{/code}}

Get Connected