Version 9.1 by Sorin Burjan on 2010/10/19

Show last authors
1 = XWiki Enterprise 2.5 Release Notes =
2
3 {{box cssClass="floatinginfobox" title="**Contents**"}}
4 {{toc/}}
5 {{/box}}
6
7 First milestone of the XWiki Enterprise 2.5 version ([[Roadmap>>enterprise:Main.Roadmap]]).
8
9 The highlights of this release are: improvements to action menus, a mechanism for inserting custom links in the header, the introduction of cancelable events and better external search engine indexing support.
10
11 = New and Noteworthy (since XWiki Enterprise 2.4) =
12
13 == Improvements to Action Menus ==
14
15 * New Add menu: Use the "Add" menu to create new spaces, pages, add attachments and comments.(((
16 [[image:AddMenu.png||style="border:1px solid black;"]]
17 )))
18 * Improved Wiki and Space menus: You may now access the document index straight from the wiki & space menus.(((
19 [[image:WikiMenu.png||style="border:1px solid black;"]] [[image:SpaceMenu.png||style="border:1px solid black;"]]
20 )))
21 * New Page menu: Integrates the Watch, Copy, Rename and Delete actions.(((
22 [[image:PageMenu.png||style="border:1px solid black;"]]
23 )))
24 * The Edit, Export, More actions and Profile menus also benefited from a refresh.
25
26 == Mechanism for inserting custom links in the header ==
27
28 As a new part of the [[UI extensions>>dev:Design.InterfaceExtensions]] mechanism, similar to [[skin extensions>>code:Plugins.SkinExtensionsPlugin]], applications can now insert custom ##<link>## elements in the HTML header of the page, which allows to insert, for example:
29 * custom navigational links (universal edit, paged navigation, index, author...)
30 * custom RSS feed links
31 * custom metadata links (DOAP, FOAF, generic RDF...)
32
33 Usage example:
34
35 {{code}}$xwiki.linkx.use($xwiki.getURL('Blog.BlogRss', 'view', "xpage=plain&blog=${blogDoc.fullName}"),
36 {'rel' : 'alternate', 'type' : 'application/rss+xml', 'title' : $title}){{/code}}
37
38 == Introduced cancelable events ==
39
40 This allows to cancel document saving, better security with script execution and canceling an event that has errors on initialization.
41
42 == Better external search engine indexing support ==
43
44 Google search results now always point to canonical view of pages.
45
46 == Visible content menu when scrolling down ==
47
48 [[image:ActionMenu.png||style="border:1px solid black;"]]
49
50 When scrolling down on a document, the content menu will follow, so the user will not have to scroll up on top of the page in order to access it.
51
52 == Introduced [[XWiki Cryptographic Module>>code:Modules.CryptographicModule]] ==
53 This module exposes high level api, allowing developers to bolster their security using cryptography for both integrity and confidentiality.
54 You can find more information about the cryptographic module including examples at the code zone page for the [[XWiki Cryptographic Module>>code:Modules.CryptographicModule]].
55
56
57
58
59
60
61 M2
62
63 Second milestone of the XWiki Enterprise 2.5 version ([[Roadmap>>enterprise:Main.Roadmap]]).
64
65 The highlights of this release are: support for [[viewing attached office documents>>code:Macros.OfficeMacro]] in the wiki, an experimental Extension Manager, experimental [[CSRF>>http://en.wikipedia.org/wiki/CSRF]] protection, a new User Directory, further improvements to the edit UI, more consistent [[use of user avatars>>http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Avatars]], support for activating a special accessibility stylesheet, and an experimental ##xwiki/2.1## wiki syntax.
66
67 = New and Noteworthy (since XWiki Enterprise 2.4) =
68
69 == Support for viewing attached office documents in the wiki ==
70
71 XWiki now supports viewing attached office documents without saving them on the client side.
72
73 image:OfficePreview.png
74
75 We also included a new Macro for the WYSIWYG Editor. It allows to embed a office file into a page.
76
77 [[image:MacroOfficeViewer||style="border:1px solid black;"]]
78
79 == Experimental Extension Manager ==
80
81 The new Extension Manager will allow you to install new extensions to your XWiki XE. Please note that this is an experimental feature. Use it at your own risk.
82
83 [[image:ExtensionManager.png||style="border:1px solid black;"]]
84
85 == New User Directory ==
86
87 Added User Directory section on the Quick Links tab on the left of the page. This will show you the users that the XWiki instance has, along with their avatar image. This page also allows to filter users by username.
88 image:userdir.png
89
90 == Further improvements to the edit UI ==
91
92 After the improvements to the object and class editors introduced in 1.8 and 2.4, the wiki and WYSIWYG editors also see some enhancements in this release, bringing in some of the proposed changes from [[an older proposal>>http://incubator.myxwiki.org/xwiki/bin/Improvements/ImprovedEdit]], with some additional improvements. Specifically:
93
94 * A new label for the content area in the wiki editor:(((
95 image:edit-header.png
96 )))
97 * A more descriptive label for the version summary field
98 * Better positioning of the "minor edit" option
99 * Better positioning and display of the "autosave" option(((
100 image:edit-footer.png
101 )))
102
103 == More consistent use of user avatars ==
104
105 As proposed on [[the design page>>http://incubator.myxwiki.org/xwiki/bin/Improvements/Avatars]], avatars come in three default sizes:
106
107 * small avatars, 30px wide, used in secondary actions and where there's very little space available
108 * medium avatars, 50px wide, the preferred and most frequent display option for avatars
109 * large avatars,120px wide, to be used where a large version of the avatar must be displayed (for example in the user profile)
110
111 Accordingly, the wiki dashboard has been changed to use the medium avatars, and as a new feature user avatars are displayed in the comments area.
112
113 image:comment-avatars.png
114
115 Four new velocity macros have been added for making it easier to display avatars:
116
117 * ###smallUserAvatar('XWiki.username')##
118 * ###mediumUserAvatar('XWiki.username')##
119 * ###largeUserAvatar('XWiki.username')##
120 * ###resizedUserAvatar('XWiki.username', 100)## which allows resizing an avatar to a custom size
121
122 == More image manipulation settings ==
123
124 For a long time it was possible to scale attached images on the server, thus reducing the download time and ensuring consistent scaling of images across browsers. This is achieved by appending ##width## and/or ##height## query string parameters to the URL of the image. This feature has been further enhanced:
125
126 * It is now possible to force the same aspect ratio of the original picture even when both width/height parameters were used (the ##keepAspectRatio## parameter). In case the requested width and height don't match the original aspect ratio, the image is resized to fit inside the rectangle defined by the two parameters, i.e. the resized image will not exceed the requested dimensions.
127 * The size of the generated JPGs can be further tweaked by specifying an encoding ##quality## (the configurable default is at 30%, but will be changed to 50% before the final release). This does not affect lossless image formats such as PNG.
128 * The WYSIWYG editor also supports the width and height parameters, setting them as needed when manually resizing the image in the editor.
129
130 {{code language="none"}}
131 /xwiki/bin/download/Spage/Page/logo.jpg?width=1024&height=768&keepAspectRatio=true&quality=0.8
132 {{/code}}
133
134 Note that this does not affect images from the filesystem, which are served directly by the servlet conainer and do not pass through XWiki's image handling code. Also note that in case the image processing triggers any errors, the original image will be sent unchanged, so the requested image dimensions are not guaranteed.
135
136 Example:
137
138 {{code language="html"}}
139 {{velocity}}{{html wiki=false}}
140 <img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150&quality=1')"/>
141 <img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150')"/>
142 <img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150&quality=0')"/>
143 <img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150&height=100&quality=0.7')"/>
144 <img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150&height=100&quality=0.7&keepAspectRatio=true')"/>
145 {{/html}}{{/velocity}}
146 {{/code}}
147
148 Gives:
149
150 image:img.png
151
152 == Better handling of attachment versions when rolling back documents ==
153
154 Rolling back a document will also roll back the correct attachment version, including restoring a deleted attachment from the trash (if not manually deleted from there). Even if an attachment was deleted and re-uploaded several times, the platform will try to find the right version for the attachment, if it still exists in the attachment trash. As an improvement, if the attachment did not change, then a new version is not created.
155
156 == Preliminary optional accessibility stylesheet ==
157
158 Moving further on the quest for better accessibility in the XWiki platform, we introduced a preliminary stylesheet which makes the skin slightly more accessible to people with visual disabilities: bigger fonts by default, and underlined links to make them more easily distinguished by colorblind people. This stylesheet can either be activated globally in a wiki, or individually from each user's preferences.
159
160 Enabling the special stylesheet:
161
162 image:a11y-enable.png
163
164 Bigger fonts and underlined links:
165
166 image:a11y.png
167
168 == Experimental xwiki/2.1 wiki syntax ==
169
170 The xwiki wiki syntax sees further improvements as xwiki/2.1, still in an experimental stage. A new feature is an enhanced syntax for links, which is more generic and allows easier extensions with new link types, demonstrated in this release with support for path and [[interwiki links>>http://en.wikipedia.org/wiki/Interwiki_links]].
171
172 Basic syntax:
173
174 {{code language="none"}}
175 [[label>>referenceType:referenceData]]
176 {{/code}}
177
178 Special ##queryString## and ##anchor## parameters which will be used as the query string, respectively anchor when forming URLs.
179
180 {{code language="none"}}
181 [[label>>doc:My.Page||queryString="a=b&c=d" anchor="HSection1"]]
182 {{/code}}
183
184 Document references are still the implicit default, with the explicit ##doc:## reference type. The other standard reference types are ##url##, ##path##, ##mailto##, ##attach##, ##image##, ##interwiki##.
185
186 Path links allow to link to a relative path on the server, which makes it easier to combine wiki syntax and velocity code, using ##$doc.getURL##, in order to link to non-view actions on documents.
187
188 {{code language="none"}}
189 {{velocity}}[[reset the history>>path:$doc.getURL('reset')||queryString="confirm=1"]]{{/velocity}}
190 {{/code}}
191
192 === [[Interwiki links>>http://en.wikipedia.org/wiki/Interwiki_links]] ===
193
194 Basic syntax:
195
196 {{code language="none"}}
197 [[label>>interwiki:wikiAlias:path/data]]
198 [[Interwiki links>>interwiki:wikipedia:Interwiki_links]]
199 {{/code}}
200
201 By default no sister wikis are defined. You can define some in ##xwiki.properties## by adding ##rendering.interWikiDefinitions## values:
202
203 {{code language="none"}}
204 rendering.interWikiDefinitions = wikipedia = http://en.wikipedia.org/wiki/
205 rendering.interWikiDefinitions = udic = http://www.urbandictionary.com/define.php?term=
206 {{/code}}
207
208 == Various Security improvements ==
209
210 Continuing a push for better security started this summer, 2.5M2 fixes some of the few remaining cross-site scripting and SQL injections holes, and tightens the scope of programming rights. Of particular concern:
211
212 * With a default skin, programming rights are no longer available after the main content of the page; this means that the panels and the bottom tabs can't use restricted APIs anymore.
213 * To explicitly drop programming rights, a new API method was introduced: ##$xcontext.dropPermissions()##
214 * An experimental Cross-Site Request Forgery prevention mechanism is included, though not enabled by default. To enable it and test/upgrade your custom applications for compatibility, edit ##xwiki.properties## and flip on the ##core.csrf.enabled## setting.
215
216 = Backward Compatibility and Migration Notes =
217
218 == General Notes ==
219
220 {{warning}}
221 If you're running in a multiwiki setup you'll also need to define the property //xwiki.store.migration.databases=all// to your //xwiki.cfg// file or explicitly name all databases to be migrated as in //xwiki.store.migration.databases=db1,db2,...//.
222 {{/warning}}
223
224 You may also want to [[import the default wiki XAR>>Main.Download]] in order to benefit from the improvements listed above.
225
226 {{warning}}
227 Always make sure you compare your //xwiki.cfg// file with the newest version since some configuration parameters were added. Note 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.
228 {{/warning}}
229
230 {{warning}}
231 Experimental support for CSRF protection is included in this release, although not enabled by default. This mechanism changes the way data is supposed to be saved, a change which will not completely break custom applications in most cases, but which might insert an extra validation step needed for actually saving the data.
232 {{/warning}}
233
234 It is **strongly recommended** to set up a testing/development environment, enable this feature and fully test all the code. In most cases things should work with no additional changes. If the default edit mode is not used, or if the default velocity templates are not used, it should be enough to add the following line:
235
236 {{code language="html"}}
237 <input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />
238 {{/code}}
239
240 == API Breakages ==
241
242 The following APIs were modified since XWiki Enterprise 2.4:
243
244 {{code language="none"}}
245 [ERROR] org.xwiki.rendering.transformation.MacroTransformationContext: Method 'public org.xwiki.rendering.internal.transformation.MacroTransformation getMacroTransformation()' has been removed
246 [ERROR] org.xwiki.rendering.transformation.MacroTransformationContext: Method 'public void setMacroTransformation(org.xwiki.rendering.internal.transformation.MacroTransformation)' has been removed
247 [ERROR] org.xwiki.rendering.transformation.Transformation: Method 'public void transform(org.xwiki.rendering.block.Block, org.xwiki.rendering.transformation.TransformationContext)' has been added to an interface
248 [ERROR] org.xwiki.rendering.transformation.TransformationManager: Method 'public void performTransformations(org.xwiki.rendering.block.Block, org.xwiki.rendering.transformation.TransformationContext)' has been added to an interface
249 {{/code}}
250
251
252 RC1
253
254
255 First and hopefully last release candidate of the XWiki Enterprise 2.5 version ([[Roadmap>>enterprise:Main.Roadmap]]).
256
257 This is mostly a bugfixing release before the 2.5 final.
258
259 = New and Noteworthy (since XWiki Enterprise 2.5 Milestone 2) =
260
261 == New features ==
262
263 New macros for the Space List and Tag Cloud; display user avatars in annotations.
264
265 image:annotation-avatars.png
266
267 == Improvements to the Extension Manager ==
268
269 Nicer URLs displayed for extensions, core extensions are also shown, fixed missing translations, provided script access to extensions.
270
271 == Improvements to the User Directory ==
272
273 New avatar for subgroups, better UI, fixed a broken link.
274
275 image:group-avatar.png
276
277 == WYSIWYG and Rendering improvements ==
278
279 Display macro parameter names instead of IDs, generalized the syntax for links, added support for query string for image links, fixed a random error when loading several WYSIWYG instances in parallel.
280
281 == Performance improvements ==
282
283 Fixed a performance issue with the Jump To Page feature.
284
285 == Security improvements ==
286
287 Fixed a few XSS bugs, fixed a broken check on rights from the Rest system, fixed a missing author update when editing classes.
288
289 == Translations ==
290
291 * All the translations have been updated
292
293 = Known issues =
294
295 * [[Bugs we know about>>http://jira.xwiki.org/jira/secure/IssueNavigator.jspa?reset=true&&type=1&pid=10010&resolution=-1&sorter/field=updated&sorter/order=DESC]]
296
297 = Backward Compatibility and Migration Notes =
298
299 == General Notes ==
300
301 {{warning}}
302 If you're running in a multiwiki setup you'll also need to define the property //xwiki.store.migration.databases=all// to your //xwiki.cfg// file or explicitly name all databases to be migrated as in //xwiki.store.migration.databases=db1,db2,...//.
303 {{/warning}}
304
305 You may also want to [[import the default wiki XAR>>Main.Download]] in order to benefit from the improvements listed above.
306
307 {{warning}}
308 Always make sure you compare your //xwiki.cfg// file with the newest version since some configuration parameters were added. Note 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.
309 {{/warning}}
310
311
312
313
314 = Known issues =
315
316 * [[Bugs we know about>>http://jira.xwiki.org/jira/secure/IssueNavigator.jspa?reset=true&jqlQuery=category+in+%28%22XWiki.org+Top+Level+Projects%22%2C+%22XWiki+Plugins%2C+Applications+%26+Skins%22%29+AND+issuetype+%3D+Bug+AND+resolution+%3D+Unresolved+ORDER+BY+updated+DESC]]
317
318 = Backward Compatibility and Migration Notes =
319
320 == Important non-compatible changes ==
321
322 == General Notes ==
323
324 {{warning}}
325 Always make sure you compare your ##xwiki.cfg## file with the newest version since some configuration parameters were added. Note 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.
326 {{/warning}}
327
328 = Known issues =
329
330 = Backward Compatibility and Migration Notes =
331
332 == General Notes ==
333
334 {{warning}}
335 If you're running in a multiwiki setup you'll also need to define the property //xwiki.store.migration.databases=all// to your //xwiki.cfg// file or explicitly name all databases to be migrated as in //xwiki.store.migration.databases=db1,db2,...//.
336 {{/warning}}
337
338 You may also want to [[import the default wiki XAR>>Main.Download]] in order to benefit from the improvements listed above.
339
340 {{warning}}
341 Always make sure you compare your //xwiki.cfg// file with the newest version since some configuration parameters were added. Note 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.
342 {{/warning}}
343
344 == Migration Notes ==
345
346 The main entry point for the search UI is now the Main.Search page that will use the configured search engine (Lucene by default). If you want to refer to Lucene or Database search explicitly you can use the ##Main.LuceneSearch## and ##Main.DatabaseSearch## pages. Note that nothing is broken here (##Main.WebSearch## page is still there and internally it includes the ##Main.DatabaseSearch## page), it's just the new clean way of targeting the search page.
347
348 === Removed deprecated flickr plugin ===
349
350 The old flickr plugin was outdated and the API was broken, so, as a consequence, it has been removed. A new plugin will be available in the future. Meanwhile you can still find it in the contrib-retired at this [[link>>http://svn.xwiki.org/svnroot/xwiki/contrib/retired/plugin-flickr/]].
351
352 === Update your web.xml ===
353
354 Some servlet filters (SetCharacterEncodingFilter, used to handle character encoding and SavedRequestRestorerFilter, used to restore requests on login) were refactored and moved to another package. Make sure you update your //WEB-INF/web.xml// to the current version, otherwise XWiki server will fail to start.
355
356 == API Breakages ==
357
358 The following APIs were modified since XWiki Enterprise 2.4:
359
360 {{code language="none"}}
361 [ERROR] org.xwiki.rendering.transformation.MacroTransformationContext: Method 'public org.xwiki.rendering.internal.transformation.MacroTransformation getMacroTransformation()' has been removed
362 [ERROR] org.xwiki.rendering.transformation.MacroTransformationContext: Method 'public void setMacroTransformation(org.xwiki.rendering.internal.transformation.MacroTransformation)' has been removed
363 [ERROR] org.xwiki.rendering.transformation.Transformation: Method 'public void transform(org.xwiki.rendering.block.Block, org.xwiki.rendering.transformation.TransformationContext)' has been added to an interface
364 [ERROR] org.xwiki.rendering.transformation.TransformationManager: Method 'public void performTransformations(org.xwiki.rendering.block.Block, org.xwiki.rendering.transformation.TransformationContext)' has been added to an interface
365 {{/code}}

Get Connected