Wiki source code of Release Notes for XWiki 5.1

Version 19.1 by Marius Dumitru Florea on 2013/07/09

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 (121) and small improvements (52) 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 {{image reference="solr-search.png" width="400px"/}}
18
19 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.
20
21 {{image reference="solr-admin.png" width="400px"/}}
22
23 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.
24
25 See the documentation for the [[Solr Search Application>>doc:extensions:Extension.Solr Search Application]] for more details.
26
27 == Menu Application ==
28
29 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.
30
31 {{image reference="ReleaseNotesXWiki51RC1@menuViewPage.png" width="400px"/}}
32
33 == Miscellaneous ==
34
35 * 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.
36 {{image reference="ReleaseNotesXWiki51M1@ChangeOwnPassword .png" width="400px"/}}
37 * The attachment upload input now remains visible after uplading one or more files:(((
38 {{image reference="ReleaseNotesXWiki51M1@attachmentUpload.png" width="400px"/}}
39 )))
40 * 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.(((
41 {{image reference="ReleaseNotesXWiki51M1@sharePage-scopeToggle.png" width="400px"/}}
42 )))
43 * We changed the dashboard to display the gadget actions when hovering the gadget.(((
44 {{image reference="ReleaseNotesXWiki51RC1@gadgetActions.png" width="400px"/}}
45 )))
46 * Moved the User Directory feature [[to an application on its own>>extensions:Extension.User Directory Application]].
47 * Moved the XWiki Syntax Help feature [[to an application on its own>>extensions:Extension.Help Application]].
48 * 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##
49 * Added support for new Google Analytics "Universal" tracking method.
50
51 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.
52
53 = For Developers =
54
55 == Merging WARs with Packager plugin ==
56
57 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:
58
59 {{code language="xml"}}
60 <plugin>
61 <groupId>org.xwiki.platform</groupId>
62 <artifactId>xwiki-platform-tool-packager-plugin</artifactId>
63 ...
64 <configuration>
65 <contextPathMapping>
66 <!-- Merge the WYSIWYG editor WAR with the platform web WAR. -->
67 <xwiki-platform-wysiwyg-war>xwiki</xwiki-platform-wysiwyg-war>
68 </contextPathMapping>
69 </configuration>
70 </plugin>
71 {{/code}}
72
73 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:
74
75 {{code language="none"}}
76 xwiki-platform-web: xwiki
77 xwiki-platform-tool-rootwebapp: root
78 {{/code}}
79
80 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.
81
82 == Upgrades ==
83
84 The following dependencies have been upgraded:
85
86 * commons-compress 1.5
87 * commons-codec 1.8
88 * diffutils 1.3
89 * Doxia 1.4
90 * Groovy 2.1.5
91 * HTMLCleaner 2.5
92 * httpclient 4.2.5
93 * JGroups 3.3
94 * jQuery 1.10.1
95 * logback 1.0.13
96 * Lucene and Solr 4.3
97 * Require.js 2.1.6
98
99 == Miscellaneous ==
100
101 Client side:
102
103 * 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.
104 * A new URL parameter has been added to reference non aggregated JavaScript files: ##?minify=false##. See the [[Debugging Guide>>dev:Community.Debugging||anchor="HDebuggingJavaScript"]].
105 * 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):(((
106 {{code language="javascript"}}
107 require(['jQueryNoConflict'], function($) {
108 // Your code here.
109 })
110 {{/code}}
111 )))
112
113 Scripting:
114
115 * 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.
116 * Added API to easily create a DocumentReference from a LocalDocumentReference
117 {{code language="java"}}DocumentReference documentReference = new DocumentReference(localReference, wikiReference);{{/code}}
118 * 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.:(((
119 {{code language="velocity"}}#if ($doc.fullName == 'AppWithinMinutes.LiveTableViewSheet')LiveTable View Sheet#{else}#evaluate($doc.title)#end{{/code}}
120 This can now be written as:
121 {{code language="velocity"}}#sheetTitle('LiveTable View Sheet' $doc.fullName.equals('AppWithinMinutes.LiveTableViewSheet')){{/code}}
122 or, if the sheet has an object of type ##XWiki.SheetDescriptorClass##:
123 {{code language="velocity"}}#sheetTitle('LiveTable View Sheet'){{/code}}
124 )))
125 * Add render method in Localization module taking syntax without parameters:(((
126 {{code language="velocity"}}
127 $services.localization.render('some.key', 'xhtml/1.0')
128 {{/code}}
129 )))
130 * Added [[new ##language## and ##currentlanguage## Query Filters>>extensions:Extension.Query Module||anchor="HFromVelocity"]]
131
132 REST:
133
134 * 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.
135 * 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.
136
137 Backend:
138
139 * A new method to add a custom Job to the JobManager:(((
140 {{code language="java"}}
141 Job myjob = new MyJob();
142 this.jobManager.addJob(myjob);
143 {{/code}}
144 )))
145 * Jobs don't share the same ##ExecutionContext## anymore.
146 * A new Runnable wrapper to initialize and dispose ##ExecutionContext##:(((
147 {{code language="java"}}
148 Thread thread = new Thread(new ExecutionContextRunnable(runnable, componentManger));
149 thread.start();
150 {{/code}}
151 )))
152 * It's now possible to write Rendering Integration tests using Mockito. For example:(((
153 {{code language="java"}}
154 @RunWith(RenderingTestSuite.class)
155 @RenderingTestSuite.Scope("wiki")
156 @AllComponents
157 public class WikiIntegrationTests
158 {
159 @RenderingTestSuite.Initialized
160 public void initialize(MockitoComponentManager componentManager) throws Exception
161 {
162 componentManager.registerComponent(MockWikiModel.getComponentDescriptor());
163
164 // Add InterWiki Definition for links28 test
165 DefaultRenderingConfiguration renderingConfiguration =
166 (DefaultRenderingConfiguration) componentManager.getInstance(RenderingConfiguration.class);
167 renderingConfiguration.addInterWikiDefinition("knownalias", "http://server/common/url/");
168 }
169 }
170 {{/code}}
171 )))
172
173 Other:
174
175 * 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##.
176
177 = Translations =
178
179 The following translations have been updated:
180
181 {{language codes="da, de, fr, lv, pt_BR, ru, sv"/}}
182
183 = Tested Browsers & Databases =
184
185 {{include reference="TestReports.ManualTestReportXWiki51Summary"/}}
186
187 = Known issues =
188
189 * [[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]]
190
191 = Backward Compatibility and Migration Notes =
192
193 == General Notes ==
194
195 You may also want to [[import the default wiki XAR>>Main.Download]] in order to benefit from all the improvements listed above.
196
197 {{warning}}
198 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.
199 {{/warning}}
200
201 == GIF Silk icon set no longer available ==
202
203 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.
204
205 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.
206
207 == User email ==
208
209 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:
210
211 (((
212 1. edit ##XWiki.XWikiUsers## with the class editor
213 1. delete the 'email' property
214 1. add a new property of type ##Email## named 'email' with 'e-Mail' as pretty name
215 1. save
216 )))
217
218 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.
219
220 == API Breakages ==
221
222 The following APIs were modified since XWiki 5.0.3:
223
224 * Young API: New method to separate job setup from job start to put real jobs in queue.(((
225 {{code language="none"}}
226 org.xwiki.job.Job: Method 'public void initialize(org.xwiki.job.Request)' has been added to an interface
227 {{/code}}
228 )))
229 * Young API: New method to add a custom Job to the queue.(((
230 {{code language="none"}}
231 org.xwiki.job.JobManager: Method 'public void addJob(org.xwiki.job.Job)' has been added to an interface
232 {{/code}}
233 )))
234 * 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.(((
235 {{code language="none"}}
236 org.xwiki.ircbot.IRCBot: Method 'public java.lang.String getWikiId()' has been added to an interface
237 {{/code}}
238 )))
239 * Young API: The URL module has never been finished and we started working on it again.(((
240 {{code language="none"}}
241 org.xwiki.url.InvalidURLException: Class org.xwiki.url.InvalidURLException removed
242 {{/code}}
243 )))

Get Connected