Version 28.1 by Thomas Mortagne on 2014/09/26

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 <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
13 == Extension Manager and Repository improvements ==
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
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
24 == Miscellaneous ==
25
26 * Improved L&F when a template fails to render:(((
27 {{image reference="templateerror.png" width="650px"/}}
28 )))
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 )))
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).
33 * [[It's possible to get DEBUG information only for shutdown operations>>dev:Community.Debugging||anchor="HLoggingshutdownoperations"]] by editing ##logback.xml## and setting:(((
34 {{code language="xml"}}
35 <logger name="org.xwiki.shutdown" level="debug"/>
36 {{/code}}
37 )))
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
43 == Velocity macros to display users and groups ==
44
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:
46
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
82 == New Velocity Tools ==
83
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).
86
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 ###displayUnexpectedException()## 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 #displayUnexpectedException($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
126 == New #displayException macro ==
127
128 Displays an error message with a title that can be clicked and expands to display an exception.
129
130 Example from a wiki page:
131
132 {{code language="none"}}
133 {{velocity}}
134 #set ($message = $services.mailsender.createMessage())
135 $message.send()
136
137 {{html}}
138 #displayException("hello world", $services.mailsender.lastError)
139 {{/html}}
140 {{/velocity}}
141 {{/code}}
142
143 == Component Disposal ==
144
145 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:
146
147 {{code language="java"}}
148 @Component
149 @Singleton
150 @DisposePriority(10000)
151 public class DefaultHibernateSessionFactory implements HibernateSessionFactory, Disposable
152 {
153 ...
154 @Override
155 public void dispose() throws ComponentLifecycleException
156 {
157 ... called after other components in order to shut down the database late...
158 }
159 ...
160 }
161 {{/code}}
162
163 See the [[Component Reference documentation>>extensions:Extension.Component Module]] for other details.
164
165 == Deprecated and Retired projects ==
166
167 <description of deprecated and retired projects>
168
169 == Upgrades ==
170
171 The following dependencies have been upgraded:
172
173 * [[JGroups 3.5.0>>http://jira.xwiki.org/browse/XWIKI-10987]]
174 * [[Tika 1.6>>http://jira.xwiki.org/browse/XWIKI-10956]]
175 * [[reflections 0.9.9>>http://jira.xwiki.org/browse/XCOMMONS-654]]
176 * [[Groovy 2.3.7>>http://jira.xwiki.org/browse/XCOMMONS-655]]
177
178 == Miscellaneous ==
179
180 * The wiki provisioning job has now the current user setted in the context.
181
182 = Translations =
183
184 The following translations have been updated:
185
186 {{language codes="none, none"/}}
187
188 = Tested Browsers & Databases =
189
190 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
191
192 = Known issues =
193
194 * [[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]]
195
196 = Backward Compatibility and Migration Notes =
197
198 == General Notes ==
199
200 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.
201
202 == Issues specific to XWiki <version> ==
203
204 <issues specific to the project>
205
206 == API Breakages ==
207
208 The following APIs were modified since <project> <version - 1>:
209
210 {{code language="none"}}
211 <clirr output here>
212 {{/code}}

Get Connected