Version 31.1 by Vincent Massol on 2014/09/30

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 )))
Vincent Massol 31.1 23 * The Flamingo Theme Application now uses a new Color Picker.(((
24 {{image reference="ReleaseNotesXWiki621@NewColorPicker.png"/}}
25 )))
Guillaume Delhumeau 6.1 26
Thomas Mortagne 1.1 27 == Miscellaneous ==
28
Vincent Massol 31.1 29 * In the administration, clicking the "Customize" button for customizing a Skin or a Color Theme now opens the page it leads to in edit mode.
Vincent Massol 10.1 30 * Improved L&F when a template fails to render:(((
Guillaume Delhumeau 14.1 31 {{image reference="templateerror.png" width="650px"/}}
Vincent Massol 10.1 32 )))
Guillaume Delhumeau 14.1 33 * 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.(((
34 {{image reference="ColorThemeDisplayer.png"/}}
35 )))
Thomas Mortagne 24.1 36 * 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 26.1 37 * [[It's possible to get DEBUG information only for shutdown operations>>dev:Community.Debugging||anchor="HLoggingshutdownoperations"]] by editing ##logback.xml## and setting:(((
Vincent Massol 25.1 38 {{code language="xml"}}
39 <logger name="org.xwiki.shutdown" level="debug"/>
40 {{/code}}
41 )))
Thomas Mortagne 30.1 42 * It's now possible to configure the maximum number of search results to be returned from a search operation using ##xwiki.authentication.ldap.maxresults## property in ##xwiki.cfg## file. See [[LDAP documentation>>platform:AdminGuide.Authentication||anchor="HGenericLDAPconfiguration"]].
Eduard Moraru 30.2 43 * The "Empty is today" option on Date fields of classes created with Application Within Minutes is now working as expected. See [[XWIKI-10296>>http://jira.xwiki.org/browse/XWIKI-10296]]
Thomas Mortagne 1.1 44
45 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.
46
47 = For Developers =
48
Marius Dumitru Florea 7.2 49 == Velocity macros to display users and groups ==
Thomas Mortagne 1.1 50
Marius Dumitru Florea 7.1 51 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 52
Marius Dumitru Florea 7.1 53 {{code language="none"}}
54 {{velocity}}
55 {{html wiki="true"}}
56 = Users =
57 == Just one ==
58 #displayUser('XWiki.Admin')
59
60 == List of users ==
61 #displayUser(['Admin', 'XWiki.mflorea'])
62
63 == A reference of a user ==
64 #displayUser($xcontext.userReference)
65
66 == A list of references of users ==
67 #displayUser([$xcontext.userReference, $otherUserReference])
68
69 = Groups =
70 == Just one ==
71 #displayGroup('XWiki.XWikiAdminGroup')
72
73 == List of groups ==
74 #displayGroup(['XWikiAdminGroup','XWiki.HRGroup'])
75
76 == A reference of a group ==
77 #set($adminGroupRef = $services.model.resolveDocument('XWiki.XWikiAdminGroup'))
78 #set($allGroupRef = $services.model.resolveDocument('XWiki.XWikiAllGroup'))
79 #displayGroup($adminGroupRef)
80
81 == A list of references of groups ==
82 #displayGroup([$adminGroupRef, $allGroupRef])
83
84 {{/html}}
85 {{/velocity}}
86 {{/code}}
87
Thomas Mortagne 20.1 88 == New Velocity Tools ==
Clemens Robbenhaar 12.1 89
Vincent Massol 15.1 90 * 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.
91 * 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 92
Vincent Massol 16.1 93 == Ability to catch Exceptions from Velocity ==
94
Vincent Massol 27.1 95 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.
Vincent Massol 16.1 96
97 For example:
98
99 {{code language="velocity"}}
100 #try()
101 #set($outputSyntax = $xwiki.getAvailableRendererSyntax($request.outputSyntax, $request.outputSyntaxVersion))
102 #if ($outputSyntax)
103 ## If the passed syntax is not an HTML-compatible syntax we need to HTML-escape it so that it can be
104 ## displayed fine in HTML (since at the point this vm file is called we're already inside an HTML page with
105 ## panels on the side, header, etc).
106 #set($syntaxType = $outputSyntax.type.toIdString())
107 #if (($syntaxType == "xhtml") || ($syntaxType == "html"))
108 #set ($renderedContent = $tdoc.getRenderedContent($outputSyntax))
109 #else
110 ## Make sure to print correctly the result when it's not HTML
111 #set ($renderedContent = "<pre>$escapetool.html($tdoc.getRenderedContent($outputSyntax))</pre>")
112 #end
113 #else
114 #set ($renderedContent = $tdoc.getRenderedContent())
115 #end
116 #end
117 ...
118 <div id="xwikicontent">
119 #if ("$!exception" != '')
Vincent Massol 27.1 120 #displayUnexpectedException($exception)
Vincent Massol 16.1 121 #else
122 $renderedContent
123 #end
124 </div>
125 ...
126 {{/code}}
127
128 This generates the following in case of error rendering the page:
129
130 {{image reference="renderingerror.png"/}}
131
Vincent Massol 27.1 132 == New #displayException macro ==
133
134 Displays an error message with a title that can be clicked and expands to display an exception.
135
136 Example from a wiki page:
137
138 {{code language="none"}}
139 {{velocity}}
140 #set ($message = $services.mailsender.createMessage())
141 $message.send()
142
143 {{html}}
144 #displayException("hello world", $services.mailsender.lastError)
145 {{/html}}
146 {{/velocity}}
147 {{/code}}
148
Vincent Massol 23.1 149 == Component Disposal ==
150
151 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:
152
153 {{code language="java"}}
154 @Component
155 @Singleton
156 @DisposePriority(10000)
157 public class DefaultHibernateSessionFactory implements HibernateSessionFactory, Disposable
158 {
159 ...
160 @Override
161 public void dispose() throws ComponentLifecycleException
162 {
163 ... called after other components in order to shut down the database late...
164 }
165 ...
166 }
167 {{/code}}
168
169 See the [[Component Reference documentation>>extensions:Extension.Component Module]] for other details.
170
Thomas Mortagne 1.1 171 == Deprecated and Retired projects ==
172
173 <description of deprecated and retired projects>
174
175 == Upgrades ==
176
177 The following dependencies have been upgraded:
178
Thomas Mortagne 2.1 179 * [[JGroups 3.5.0>>http://jira.xwiki.org/browse/XWIKI-10987]]
Thomas Mortagne 20.1 180 * [[Tika 1.6>>http://jira.xwiki.org/browse/XWIKI-10956]]
Thomas Mortagne 24.1 181 * [[reflections 0.9.9>>http://jira.xwiki.org/browse/XCOMMONS-654]]
Thomas Mortagne 28.1 182 * [[Groovy 2.3.7>>http://jira.xwiki.org/browse/XCOMMONS-655]]
Vincent Massol 31.1 183 * [[jQuery 1.11.1>>http://jira.xwiki.org/browse/XWIKI-11094]]
Thomas Mortagne 1.1 184
185 == Miscellaneous ==
186
Vincent Massol 31.1 187 * The wiki provisioning job has now the current user set in the context.
188 * 10 new icons have been mapped into [[Font Awesome Icon Theme>>extensions:Extension/Font Awesome Icon Theme]].
Thomas Mortagne 1.1 189
190 = Translations =
191
192 The following translations have been updated:
193
194 {{language codes="none, none"/}}
195
196 = Tested Browsers & Databases =
197
198 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
199
200 = Known issues =
201
202 * [[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]]
203
204 = Backward Compatibility and Migration Notes =
205
206 == General Notes ==
207
208 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.
209
210 == Issues specific to XWiki <version> ==
211
212 <issues specific to the project>
213
214 == API Breakages ==
215
216 The following APIs were modified since <project> <version - 1>:
217
218 {{code language="none"}}
219 <clirr output here>
220 {{/code}}

Get Connected