Wiki source code of Release Notes for XWiki 5.1

Version 23.1 by Vincent Massol on 2013/07/10

Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 This is the release notes for XWiki Platform, XWiki Enterprise and XWiki Enterprise Manager. They share the same release notes as they are released together and have the same version.
6
7 This release comes with Solr search enabled by default. The search UI has been redesigned and the search backend has been greatly improved. A new Menu application is now avaible to help you create navigation menus that ca be placed after the header or in a side panel. Beside this, a lot of bug fixes (124) and small improvements (53) make this release worth trying.
8
9 = New and Noteworthy (since XWiki 5.0.3) =
10
11 [[Full list of issues fixed and Dashboard for 5.1>>http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=11595]].
12
13 == Solr is the default search engine ==
14
15 We have redesigned the Solr search page to include faceted search and we improved the display of the advanced search options and the search results.
16
17 {{warning}}
18 In 5.1 we haven't updated yet the Search Suggest feature (a.k.a Live Search) to use Solr. It's still using the Lucene Search. You should also know that as a consequence right know we do 2 indexing: one for Lucene and one for Solr. We're planning to move the Search Suggest so Solr in XWiki 5.2
19 {{/warning}}
20
21 {{image reference="solr-search.png" width="400px"/}}
22
23 The Solr search module now automatically indexes all modifications made to the wiki. A synchronization background job is started at each XWiki startup to make sure the solr index and the database are in sync (only updates what needs to be updated). The manual indexing in the administration UI should also be a lot more stable since all the actual reading of wiki documents and their indexing is now done in a safe background thread.
24
25 {{image reference="solr-admin.png" width="400px"/}}
26
27 Entities are now indexed with the list of supported locales (among the available locales). This means that if your current locale is "fr_FR" you will find all entities that you would have seen when the current locale is "fr_FR". For example if a document does not have any "fr_FR" explicit version you will still find the version you would have seen when going to that document (generally the default version of the document or the "fr" version of the document if any since the parent locale of "fr_FR" is "fr"). We call it locale inheritance.
28
29 See the documentation for the [[Solr Search Application>>doc:extensions:Extension.Solr Search Application]] for more details.
30
31 == Menu Application ==
32
33 We have rewritten the [[Navigation Menu Wiki Macro>>doc:extensions:Extension.Navigation Menu Wiki Macro]] and the [[Navigation Menu Config Application>>doc:extensions:Extension.NavigationMenuConfig]] into a single application that can help you create navigation menus to be displayed either horizontally as a top bar after the page header or vertically in a side panel. See the documentation page of the new [[Menu Application>>doc:extensions:Extension.Menu Application]] for details.
34
35 {{image reference="ReleaseNotesXWiki51RC1@menuViewPage.png" width="400px"/}}
36
37 == Miscellaneous ==
38
39 * When an user wants to change his password, he now has to enter his current password for more security. Live validation of his new password validity (length) has also been added.
40 {{image reference="ReleaseNotesXWiki51M1@ChangeOwnPassword .png" width="400px"/}}
41 * The attachment upload input now remains visible after uplading one or more files:(((
42 {{image reference="ReleaseNotesXWiki51M1@attachmentUpload.png" width="400px"/}}
43 )))
44 * The "Send to" input from the [[Share page>>doc:platform:Features.DocumentLifecycle||anchor="HSharePagebyEmail"]] dialog displays a scope toggle when you are in a subwiki (or an workspace) that allows you to control whether the suggested users are local or global.(((
45 {{image reference="ReleaseNotesXWiki51M1@sharePage-scopeToggle.png" width="400px"/}}
46 )))
47 * We changed the dashboard to display the gadget actions when hovering the gadget.(((
48 {{image reference="ReleaseNotesXWiki51RC1@gadgetActions.png" width="400px"/}}
49 )))
50 * Moved the User Directory feature [[to an application on its own>>extensions:Extension.User Directory Application]].
51 * Moved the XWiki Syntax Help feature [[to an application on its own>>extensions:Extension.Help Application]].
52 * More documents marked as hidden by default: ##Blog.News, Blog.Other, Blog.Personal, Main.Activity, Main.MessageSenderMacro, Main.Tags, Sandbox.WebPreferences, XWiki.WebHome, XWiki.XWikiAdminGroup, XWiki.XWikiAllGroup, XWiki.SearchConfig##
53 * Added support for new Google Analytics "Universal" tracking method.
54
55 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%2C+XEM%29+and+status+%3D+Closed+and+resolution+%3D+Fixed+and+fixVersion+in+%28%225.1-milestone-1%22%2C+%225.1-milestone-2%22%2C+%225.1-rc-1%22%2C+%225.1%22%29&tempMax=1000]] fixed in this release.
56
57 = For Developers =
58
59 == Merging WARs with Packager plugin ==
60
61 We added a ##contextPathMapping## configuration parameter to the Packager Maven plugin to allow us to bind WAR artifact IDs to the context path where they should be extracted. Here's an example:
62
63 {{code language="xml"}}
64 <plugin>
65 <groupId>org.xwiki.platform</groupId>
66 <artifactId>xwiki-platform-tool-packager-plugin</artifactId>
67 ...
68 <configuration>
69 <contextPathMapping>
70 <!-- Merge the WYSIWYG editor WAR with the platform web WAR. -->
71 <xwiki-platform-wysiwyg-war>xwiki</xwiki-platform-wysiwyg-war>
72 </contextPathMapping>
73 </configuration>
74 </plugin>
75 {{/code}}
76
77 The Packager plugin looks for WAR artifacts in the list of dependencies. If no WAR-type dependencies are found then the following WARs are used, with the corresponding default context path binding:
78
79 {{code language="none"}}
80 xwiki-platform-web: xwiki
81 xwiki-platform-tool-rootwebapp: root
82 {{/code}}
83
84 If more WARs share the same context path then they are merged. Of course, in this case the order in the list of dependencies is important because the last WAR can overwrite files from the previous ones. When no mapping is defined for a WAR, its artifact id is used instead as context path.
85
86 == Upgrades ==
87
88 The following dependencies have been upgraded:
89
90 * commons-compress 1.5
91 * commons-codec 1.8
92 * diffutils 1.3
93 * Doxia 1.4
94 * Groovy 2.1.5
95 * HTMLCleaner 2.5
96 * httpclient 4.2.5
97 * JGroups 3.3
98 * jQuery 1.10.1
99 * logback 1.0.13
100 * Lucene and Solr 4.3
101 * Require.js 2.1.6
102
103 == Miscellaneous ==
104
105 Client side:
106
107 * We added a new [[special CSS class name>>doc:platform:DevGuide.SpecialCSSClasses]], ##useTitleAsTip##, that, combined with ##withTip##, will allow you to have a tip (place-holder) different than the initial value of the text input.
108 * A new URL parameter has been added to reference non aggregated JavaScript files: ##?minify=false##. See the [[Debugging Guide>>dev:Community.Debugging||anchor="HDebuggingJavaScript"]].
109 * A new 'jQueryNoConflict' module is available. All it does is calling ##jQuery.noConflict(false)## to prevent conflicts with Prototype.js (with respect to ##$## global variable):(((
110 {{code language="javascript"}}
111 require(['jQueryNoConflict'], function($) {
112 // Your code here.
113 })
114 {{/code}}
115 )))
116
117 Scripting:
118
119 * A new [[UI extension point>>doc:extensions:Extension.UIExtension Module]] is available: ##org.xwiki.platform.template.header.after##. See the list of [[available UIXs>>doc:extensions:Extension.UIExtension Module||anchor="HAvailableUIExtensionPoints"]] for more information.
120 * Added API to easily create a DocumentReference from a LocalDocumentReference
121 {{code language="java"}}DocumentReference documentReference = new DocumentReference(localReference, wikiReference);{{/code}}
122 * A new Velocity macro is available to display the title of a [[sheet>>doc:extensions:Extension.Sheet Module]]. Most of the times when you have a sheet you want to display some text when the user visits the sheet page and something different when the user visits a page where the sheet is applied. Up until now the solution was to write an if in the sheet title to check if the current document is the sheet. E.g.:(((
123 {{code language="velocity"}}#if ($doc.fullName == 'AppWithinMinutes.LiveTableViewSheet')LiveTable View Sheet#{else}#evaluate($doc.title)#end{{/code}}
124 This can now be written as:
125 {{code language="velocity"}}#sheetTitle('LiveTable View Sheet' $doc.fullName.equals('AppWithinMinutes.LiveTableViewSheet')){{/code}}
126 or, if the sheet has an object of type ##XWiki.SheetDescriptorClass##:
127 {{code language="velocity"}}#sheetTitle('LiveTable View Sheet'){{/code}}
128 )))
129 * Add render method in Localization module taking syntax without parameters:(((
130 {{code language="velocity"}}
131 $services.localization.render('some.key', 'xhtml/1.0')
132 {{/code}}
133 )))
134 * Added [[new ##language## and ##currentlanguage## Query Filters>>extensions:Extension.Query Module||anchor="HFromVelocity"]]
135
136 REST:
137
138 * All REST responses now specify the version of XWiki running on the server in the ##XWiki-Version## HTTP header, and the current user in the ##XWiki-User## header.
139 * You can now provide a version summary (comment) when updating a page using REST. You can retrieve the version summary either by getting the page or by getting the page history, in which case you get the summary for each page revision.
140
141 Backend:
142
143 * A new method to add a custom Job to the JobManager:(((
144 {{code language="java"}}
145 Job myjob = new MyJob();
146 this.jobManager.addJob(myjob);
147 {{/code}}
148 )))
149 * Jobs don't share the same ##ExecutionContext## anymore.
150 * A new Runnable wrapper to initialize and dispose ##ExecutionContext##:(((
151 {{code language="java"}}
152 Thread thread = new Thread(new ExecutionContextRunnable(runnable, componentManger));
153 thread.start();
154 {{/code}}
155 )))
156 * It's now possible to write Rendering Integration tests using Mockito. For example:(((
157 {{code language="java"}}
158 @RunWith(RenderingTestSuite.class)
159 @RenderingTestSuite.Scope("wiki")
160 @AllComponents
161 public class WikiIntegrationTests
162 {
163 @RenderingTestSuite.Initialized
164 public void initialize(MockitoComponentManager componentManager) throws Exception
165 {
166 componentManager.registerComponent(MockWikiModel.getComponentDescriptor());
167
168 // Add InterWiki Definition for links28 test
169 DefaultRenderingConfiguration renderingConfiguration =
170 (DefaultRenderingConfiguration) componentManager.getInstance(RenderingConfiguration.class);
171 renderingConfiguration.addInterWikiDefinition("knownalias", "http://server/common/url/");
172 }
173 }
174 {{/code}}
175 )))
176
177 Other:
178
179 * The WYSIWYG editor administration section has been moved from the [[Administration Application>>doc:extensions:Extension.Administration Application]] to its own module under ##xwiki-platform-wysiwyg##.
180
181 = Translations =
182
183 The following translations have been updated:
184
185 {{language codes="cs, da, de, es, fr, it, lv, pt_BR, ru, sv, uk"/}}
186
187 = Tested Browsers & Databases =
188
189 {{include reference="TestReports.ManualTestReportXWiki51Summary"/}}
190
191 = Known issues =
192
193 * [[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]]
194
195 = Backward Compatibility and Migration Notes =
196
197 == General Notes ==
198
199 You may also want to [[import the default wiki XAR>>Main.Download]] in order to benefit from all the improvements listed above.
200
201 {{warning}}
202 Always make sure you compare your ##xwiki.cfg## and ##xwiki.properties## files with the newest version since some configuration parameters were 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.
203 {{/warning}}
204
205 == GIF Silk icon set no longer available ==
206
207 The [[Silk icon set>>http://www.famfamfam.com/lab/icons/silk/]] has always been officially provided in PNG format. However, since they use Alpha transparency, a feature not supported by Internet Explorer 6, we provided our own GIF version of the icon set, with simple transparency. Once we dropped support for IE6, we also included the official PNG version, with the goal of transitioning from the jagged GIF version to the nicer looking PNGs. The time has come to deprecate the GIF icons, so they are no longer available in the non-legacy builds of XWiki Enterprise. However, the official releases will still have the icons included for a while, so it's unlikely that this deprecation will break custom applications.
208
209 However, an update of the documents that still use the GIF icons is recommended. Since the base icon name is the same, all that's required is to change the extension from ##.gif## to ##.jpg## to use the right icons.
210
211 == User email ==
212
213 The data type of the 'email' property from the user profile has changed from ##String## to ##Email##, a specialized type [[introduced in 4.2>>ReleaseNotes.ReleaseNotesXWiki42||anchor="HNewfieldtypesforemailandlistofpages"]]. Unfortunately this change doesn't apply automatically when you upgrade from an older version so you have to do it your self:
214
215 (((
216 1. edit ##XWiki.XWikiUsers## with the class editor
217 1. delete the 'email' property
218 1. add a new property of type ##Email## named 'email' with 'e-Mail' as pretty name
219 1. save
220 )))
221
222 The values of both ##String## and ##Email## data types are stored in the same database table so there souldn't be any migration issues for existing users.
223
224 == API Breakages ==
225
226 The following APIs were modified since XWiki 5.0.3:
227
228 * Young API: New method to separate job setup from job start to put real jobs in queue.(((
229 {{code language="none"}}
230 org.xwiki.job.Job: Method 'public void initialize(org.xwiki.job.Request)' has been added to an interface
231 {{/code}}
232 )))
233 * Young API: New method to add a custom Job to the queue.(((
234 {{code language="none"}}
235 org.xwiki.job.JobManager: Method 'public void addJob(org.xwiki.job.Job)' has been added to an interface
236 {{/code}}
237 )))
238 * Needed to fix [[XWIKI-9251>>http://jira.xwiki.org/browse/XWIKI-9251]] and the IRC Bot API is still relatively new and not a mainstream API used by lots of people.(((
239 {{code language="none"}}
240 org.xwiki.ircbot.IRCBot: Method 'public java.lang.String getWikiId()' has been added to an interface
241 {{/code}}
242 )))
243 * Young API: The URL module has never been finished and we started working on it again.(((
244 {{code language="none"}}
245 org.xwiki.url.InvalidURLException: Class org.xwiki.url.InvalidURLException removed
246 {{/code}}
247 )))

Get Connected