Version 25.1 by Vincent Massol on 2014/09/26

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
7 <insert description of release here>
8
9 = New and Noteworthy (since XWiki 6.2) =
10
11 [[Full list of issues fixed and Dashboard for <version>>>http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=<fill id here>]].
12
Thomas Mortagne 3.1 13 == Extension Manager and Repository improvements ==
Thomas Mortagne 1.1 14
15 * ##<scm>## element from Maven ##pom.xml## is now supported and has been added to the standard in the API
16 * ##<issueManagement>## element from Maven ##pom.xml## is now supported and has been added to the standard in the API
17
Guillaume Delhumeau 6.1 18 == Flamingo ==
19
20 * The "Add" button has now a default action to create a new page. You can still create other kind of contents (Wiki, Space) by using the arrow, just like we do with the different "edit" actions.(((
21 {{image reference="flamingo-add.png"/}}
22 )))
23
Thomas Mortagne 1.1 24 == Miscellaneous ==
25
Vincent Massol 10.1 26 * Improved L&F when a template fails to render:(((
Guillaume Delhumeau 14.1 27 {{image reference="templateerror.png" width="650px"/}}
Vincent Massol 10.1 28 )))
Guillaume Delhumeau 14.1 29 * We have created dedicated groups for Colibri and Flamingo Themes inside the Administration. Every themes can be used with both skins but they looks better when they are used with the corresponding theme.(((
30 {{image reference="ColorThemeDisplayer.png"/}}
31 )))
Thomas Mortagne 24.1 32 * The start/stop shell scripts provided with the Standalone Distribution have been improved to display usage information when an invalid parameter is passed or when the ##-h## or ##~-~-help## parameters are passed. Also note that the start script doesn't stop anymore a running XWiki instance if the ##-k## or ##~-~-kill## parameter is passed (this parameter has been removed).
Vincent Massol 25.1 33 * It's possible to get DEBUG information only for shutdown operations by editing ##logback.xml## and setting:(((
34 {{code language="xml"}}
35 <logger name="org.xwiki.shutdown" level="debug"/>
36 {{/code}}
37 )))
Thomas Mortagne 1.1 38
39 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+%22<version>%22&tempMax=1000]] fixed in this release.
40
41 = For Developers =
42
Marius Dumitru Florea 7.2 43 == Velocity macros to display users and groups ==
Thomas Mortagne 1.1 44
Marius Dumitru Florea 7.1 45 We extracted the code that displays in view mode a property of type 'List of Users' and 'List of Groups' from the corresponding custom displayers (found in ##displayer_users.vm## and ##displayer_groups.vm##) into two Velocity macros that can be used to display arbitrary users and groups, even when you don't have an object. Here's how you can use them:
Thomas Mortagne 1.1 46
Marius Dumitru Florea 7.1 47 {{code language="none"}}
48 {{velocity}}
49 {{html wiki="true"}}
50 = Users =
51 == Just one ==
52 #displayUser('XWiki.Admin')
53
54 == List of users ==
55 #displayUser(['Admin', 'XWiki.mflorea'])
56
57 == A reference of a user ==
58 #displayUser($xcontext.userReference)
59
60 == A list of references of users ==
61 #displayUser([$xcontext.userReference, $otherUserReference])
62
63 = Groups =
64 == Just one ==
65 #displayGroup('XWiki.XWikiAdminGroup')
66
67 == List of groups ==
68 #displayGroup(['XWikiAdminGroup','XWiki.HRGroup'])
69
70 == A reference of a group ==
71 #set($adminGroupRef = $services.model.resolveDocument('XWiki.XWikiAdminGroup'))
72 #set($allGroupRef = $services.model.resolveDocument('XWiki.XWikiAllGroup'))
73 #displayGroup($adminGroupRef)
74
75 == A list of references of groups ==
76 #displayGroup([$adminGroupRef, $allGroupRef])
77
78 {{/html}}
79 {{/velocity}}
80 {{/code}}
81
Thomas Mortagne 20.1 82 == New Velocity Tools ==
Clemens Robbenhaar 12.1 83
Vincent Massol 15.1 84 * New URL Tool ##$urltool##: A [[new tool>>extensions:Extension.Velocity Module||anchor="HVelocityTools"]] has been added with one method to parse query string from the URL ##$urltool.parseQuery(String)##. The value returned by this is method is a ##Map<String, List<String>>## which maps parameter names to (possibly multiple) values, and can be passed e.g. directly into ##$escapetool.url(Map<String, ?>)## to convert it back to a string. This is useful e.g. in cases where one want to pass a complete query string around between requests, as it happend for the PDF export; the ##$urltool## allows for a sane deserialization of the value passed around.
85 * New Exception Tool ##$exceptiontool##: A [[new tool>>extensions:Extension.Velocity Module||anchor="HVelocityTools"]] to manipulate Java Exceptions (get root cause, convert into String, etc).
Clemens Robbenhaar 12.1 86
Vincent Massol 16.1 87 == Ability to catch Exceptions from Velocity ==
88
89 A new Velocity Directive has been added to catch Exceptions from Velocity. In addition a new ###displayException()## velocity macro has also been added to nicely display an exception to the user.
90
91 For example:
92
93 {{code language="velocity"}}
94 #try()
95 #set($outputSyntax = $xwiki.getAvailableRendererSyntax($request.outputSyntax, $request.outputSyntaxVersion))
96 #if ($outputSyntax)
97 ## If the passed syntax is not an HTML-compatible syntax we need to HTML-escape it so that it can be
98 ## displayed fine in HTML (since at the point this vm file is called we're already inside an HTML page with
99 ## panels on the side, header, etc).
100 #set($syntaxType = $outputSyntax.type.toIdString())
101 #if (($syntaxType == "xhtml") || ($syntaxType == "html"))
102 #set ($renderedContent = $tdoc.getRenderedContent($outputSyntax))
103 #else
104 ## Make sure to print correctly the result when it's not HTML
105 #set ($renderedContent = "<pre>$escapetool.html($tdoc.getRenderedContent($outputSyntax))</pre>")
106 #end
107 #else
108 #set ($renderedContent = $tdoc.getRenderedContent())
109 #end
110 #end
111 ...
112 <div id="xwikicontent">
113 #if ("$!exception" != '')
114 #displayException($exception)
115 #else
116 $renderedContent
117 #end
118 </div>
119 ...
120 {{/code}}
121
122 This generates the following in case of error rendering the page:
123
124 {{image reference="renderingerror.png"/}}
125
Vincent Massol 23.1 126 == Component Disposal ==
127
128 The order used by the ComponentManager to dispose its components is computed based on declared dependencies. However there might be cases when you wish a Component's ##dispose()## method to be called before or after all other components. In this case you can use the ##DisposePriority## annotation. The default priority is 1000. A higher value will mean disposing before all other components not having this annotation. For example:
129
130 {{code language="java"}}
131 @Component
132 @Singleton
133 @DisposePriority(10000)
134 public class DefaultHibernateSessionFactory implements HibernateSessionFactory, Disposable
135 {
136 ...
137 @Override
138 public void dispose() throws ComponentLifecycleException
139 {
140 ... called after other components in order to shut down the database late...
141 }
142 ...
143 }
144 {{/code}}
145
146 See the [[Component Reference documentation>>extensions:Extension.Component Module]] for other details.
147
Thomas Mortagne 1.1 148 == Deprecated and Retired projects ==
149
150 <description of deprecated and retired projects>
151
152 == Upgrades ==
153
154 The following dependencies have been upgraded:
155
Thomas Mortagne 2.1 156 * [[JGroups 3.5.0>>http://jira.xwiki.org/browse/XWIKI-10987]]
Thomas Mortagne 20.1 157 * [[Tika 1.6>>http://jira.xwiki.org/browse/XWIKI-10956]]
Thomas Mortagne 24.1 158 * [[reflections 0.9.9>>http://jira.xwiki.org/browse/XCOMMONS-654]]
Thomas Mortagne 1.1 159
160 == Miscellaneous ==
161
Guillaume Delhumeau 4.1 162 * The wiki provisioning job has now the current user setted in the context.
Thomas Mortagne 1.1 163
164 = Translations =
165
166 The following translations have been updated:
167
168 {{language codes="none, none"/}}
169
170 = Tested Browsers & Databases =
171
172 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
173
174 = Known issues =
175
176 * [[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]]
177
178 = Backward Compatibility and Migration Notes =
179
180 == General Notes ==
181
182 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.
183
184 == Issues specific to XWiki <version> ==
185
186 <issues specific to the project>
187
188 == API Breakages ==
189
190 The following APIs were modified since <project> <version - 1>:
191
192 {{code language="none"}}
193 <clirr output here>
194 {{/code}}

Get Connected