Version 34.1 by Vincent Massol on 2015/03/03

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 7.0 Milestone 1) =
10
11 [[Full list of issues fixed and Dashboard for 7.0>>http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=13092]].
12
13 == Wiki Creation ==
14
15 * During the wiki creation, Distribution Wizard is not triggered anymore. Instead, the whole wiki creation process has been moved into a job, and everything happens inside the Wiki Creation Wizard (with a progress bar and a logging area):(((
16 {{image reference="WikiCreationStep.png" width="45%"/}} {{image reference="WikiCreationStepEnd.png" width="45%"/}}
17 )))
18 * The Wiki Provisioning Step has been integrated into the job too.
19 * When a wiki is created from a template, we now have a message in the logs that displays which document is copied.
20
21 == Extension categories ==
22
23 It's now possible to indicate a predefined category for each extension in the repository:
24
25 {{image reference="category.png"/}}
26
27 It's also possible to filter and order extension by category:
28
29 {{image reference="categorylivetable.png"/}}
30
31 == Miscellaneous ==
32
33 * The user/group displayer is now showing the wiki for local users/groups in edit mode too (the wiki was shown only in view mode previously).(((
34 {{image reference="userDisplayer-editMode-wiki.png"/}}
35 )))
36 * When deleting a wiki the confirmation page now asks to type in the wiki identifier to prevent accidental deletion.(((
37 {{image reference="delete-wiki-confirm-screen.png"/}}
38 )))
39 * The ##Main.RssFeeds## documentation page has been removed since it wasn't linked from anywhere, provided little value in itself and wasn't dynamic (the RSS features for each extensions depends on the extension being installed and if the extension is not installed or uninstalled the ##RssFeeds## page gets broken links).
40
41 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+%227.0-milestone-2%22&tempMax=1000]] fixed in this release.
42
43 = For Developers =
44
45 == Mail Sender API Improvements ==
46
47 The [[Mail Sender API>>extensions:Extension.Mail Sender API]] has been improved to allow sending mails to a list of users, a list of groups and a list of email addresses, all at once. It also supports excluding users, groups and email addresses. Last, it ensures that recipients don't get duplicate mails. Before 6.4.2/7.0M2, you could send a mail either to a list of users or to a group (and to an email address) but you had to use several API calls for that and you had to handle yourself potential mail duplication (if a user was inside your user list and inside the group you were sending to for example).
48
49 Using the new API, the following example will send a template email to all the users in the ##XWiki.MyGroup## group, to the ##XWiki.User1## and ##XWiki.User2## users + to the ##john@doe.com## email address.
50
51 Also note that contrary to the previous API to send email to a group, the new API handles nested groups (i.e. if the ##XWiki.MyGroup## group contains other groups, all users of those other groups will also receive the template email)!
52
53 {{code language="none"}}
54 {{velocity}}
55 ## Parameters for the 'template' MimeMessageFactory
56 #set ($templateParameters = {'language' : $xcontext.language, 'velocityVariables' : { 'var1' : 'value1' }})
57
58 #set ($templateReference = $services.model.createDocumentReference('', 'Space', 'MailTemplatePage'))
59 #set ($parameters = {'hint' : 'template', 'parameters' : $templateParameters, 'source' : $templateReference})
60
61 #set ($groupReference = $services.model.createDocumentReference('', 'XWiki', 'MyGroup'))
62 #set ($user1Reference = $services.model.createDocumentReference('', 'XWiki', 'User1'))
63 #set ($user2Reference = $services.model.createDocumentReference('', 'XWiki', 'User2'))
64
65 #set ($source = {'groups' : [$groupReference], 'users' : [$user1Reference, $user2Reference], 'emails' : ['john@doe.com']})
66
67 #set ($messages = $services.mailsender.createMessages('usersandgroups', $source, $parameters))
68 #set ($mailResult = $services.mailsender.send($messages, 'database'))
69 {{/velocity}}
70 {{/code}}
71
72 == Group Member Iterator ==
73
74 A new ##ReferenceUserIterator## iterator has been introduced to iterate over all the users found in a list of users/groups. It supports the following:
75
76 * Ability to iterate over a list of references (either group or user) or a single user/group
77 * Handles nested groups
78 * Ability to return user data (e.g. user's email) and to programatically skip some entries based on programmatic condition
79 * Ability to exclude users/groups
80
81 Notes:
82
83 * Right now duplication is not handled at the level of ##UserIterator## (thus for example if a user is a member of several groups it'll be returned several times).
84 * This code is not performant as it will load one document per group and per user found. There's [[currently no way of handling this in a performant way>>http://jira.xwiki.org/browse/XWIKI-10377]].
85
86 Example 1: List all users of a group by returning references
87
88 {{code language="groovy"}}
89 {{groovy}}
90 import com.xpn.xwiki.internal.plugin.rightsmanager.*
91 import org.xwiki.model.reference.*
92 import org.xwiki.context.*
93
94 def groupReference = new DocumentReference("xwiki", "XWiki", "XWikiAllGroup")
95 def resolver = services.component.getInstance(DocumentReferenceResolver.TYPE_STRING, "explicit")
96 def execution = services.component.getInstance(Execution.class)
97 def iterator = new ReferenceUserIterator(groupReference, resolver, execution)
98 iterator.each() {
99 println "* ${it}"
100 }
101 {{/groovy}}
102 {{/code}}
103
104 Example 2: Get all emails from all users inside the passed groups
105
106 {{code language="groovy"}}
107 {{groovy}}
108 import com.xpn.xwiki.doc.*
109 import com.xpn.xwiki.objects.*
110 import com.xpn.xwiki.internal.plugin.rightsmanager.*
111 import org.xwiki.model.reference.*
112 import org.xwiki.context.*
113
114 def group1Reference = new DocumentReference("xwiki", "XWiki", "XWikiAllGroup")
115 def group2Reference = new DocumentReference("xwiki", "XWiki", "XWikiAdminGroup")
116 def resolver = services.component.getInstance(DocumentReferenceResolver.TYPE_STRING, "explicit")
117 def execution = services.component.getInstance(Execution.class)
118
119 class EmailUserDataExtractor implements UserDataExtractor<String>
120 {
121 public String extractFromSuperadmin(DocumentReference reference)
122 {
123 return null
124 }
125
126 public String extractFromGuest(DocumentReference reference)
127 {
128 return null
129 }
130
131 public String extract(DocumentReference reference, XWikiDocument document, BaseObject userObject)
132 {
133 return userObject.getStringValue("email")
134 }
135 }
136
137 def iterator = new UserIterator([group1Reference, group2Reference], [], new EmailUserDataExtractor(), resolver, execution)
138 iterator.each() {
139 println "* ${it}"
140 }
141 {{/groovy}}
142 {{/code}}
143
144 == Extensions improvement and new features ==
145
146 === Extension category ===
147
148 Each extension can now expose a category (flavor, application, macro...).
149
150 === Advanced extensions search ===
151
152 A new ##org.xwiki.extension.repository.search.AdvancedSearchable## extending ##org.xwiki.extension.repository.search.Searchable## provide field based filtering and ordering to extensions search. It's implemented by default core, local, installed, xar extensions repositories.
153
154 === Advanced extensions search in REST protocol ===
155
156 Support for advanced filtering and ordering or extensions search result has been added XWiki Repository protocol and client. See [[extensions:Extension.Repository Module||anchor="H2Fsearch"]].
157
158 === Custom properties in REST protocol ===
159
160 Support for missing custom properties has been added to the XWiki Repository REST protocol. See [[extensions:Extension.Repository Module||anchor="HREST"]]. Only String properties are supported for now.
161
162 == Deprecated and Retired projects ==
163
164 <description of deprecated and retired projects>
165
166 == Upgrades ==
167
168 The following dependencies have been upgraded:
169
170 * [[Selenium 2.44.0>>http://jira.xwiki.org/browse/XCOMMONS-753]]
171 * [[Arquilian Phantom JS Driver 1.1.3.Final>>http://jira.xwiki.org/browse/XWIKI-11832]]
172 * [[Groovy 2.4.1>>http://jira.xwiki.org/browse/XCOMMONS-755]]
173 * [[JGroups 3.6.2>>http://jira.xwiki.org/browse/XWIKI-11848]]
174 * [[Jython 2.7-b4>>http://jira.xwiki.org/browse/XWIKI-11850]]
175 * [[DBCP 2.1>>http://jira.xwiki.org/browse/XCOMMONS-756]]
176 * [[Pygments 2.0.2>>http://jira.xwiki.org/browse/XWIKI-11864]]
177 * [[jdom 2.0.6>>http://jira.xwiki.org/browse/XCOMMONS-760]]
178 * [[XStream 1.4.8>>http://jira.xwiki.org/browse/XCOMMONS-761]]
179
180 == Miscellaneous ==
181
182 * $datetool has a new method to access the [[DateFormatSymbols>>http://docs.oracle.com/javase/7/docs/api/java/text/DateFormatSymbols.html]]:(((
183 {{code language="none"}}
184 {{velocity}}
185 #set ($currentLocale = $services.localization.currentLocale)
186 #set ($dateFormatSymbols = $datetool.getDateFormatSymbols($currentLocale))
187 $jsontool.serialize($dateFormatSymbols.shortMonths)
188
189 ## Output for French locale:
190 ## ["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc.",""]
191 {{/velocity}}
192 {{/code}}
193 )))
194 * Message Stream script service now offers a ##getLastError()## method to get the last error.
195 * "input" displayed Static and Database Lists separators handling has been improved to properly allow using multiple separators at once for entering data (including escaped separators inside list values). More importantly, when displaying an existing list inside an input, the existing values will always be separated using the first separator specified in the object's class for the edited object property. For non-relationally stored properties, the value that is stored in the database as a LargeStringProperty will always be separated using the default pipe ("|") separator. See [[XWIKI-10098>>http://jira.xwiki.org/browse/XWIKI-10098]] for more details.
196 * The ##/deleteversions/## action now supports the "latest" and "previous" pseudoversions and the ##/rollback/## action now supports the "previous" pseudoversion. See [[XWIKI-11841>>http://jira.xwiki.org/browse/XWIKI-11841]] for more information.
197
198 = Translations =
199
200 The following translations have been updated:
201
202 {{language codes="none, none"/}}
203
204 = Tested Browsers & Databases =
205
206 {{include reference="TestReports.ManualTestReportSummaryXWiki70M2"/}}
207
208 = Performances tests compared to <last super stable version> =
209
210 <a summary of the comparison with latest super stable version>
211
212 More details on <link to the test report>.
213
214 = Known issues =
215
216 * [[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]]
217
218 = Backward Compatibility and Migration Notes =
219
220 == General Notes ==
221
222 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.
223
224 == Issues specific to XWiki 7.0M2 ==
225
226 * The Watchlist class and its objects have been migrated to use relationally stored DBList properties instead of TextArea properties in order to solve scalability issues that occurred when too many elements were being watched by a user. See [[XWIKI-7339>>http://jira.xwiki.org/browse/XWIKI-7339]].
227 * The upgrade to DBCP 2.1 has caused some Hibernate configuration properties to have been removed and new ones created. The following properties have been removed:(((
228 * ##dbcp.maxActive## replaced by ##dbcp.maxTotal##
229 * ##dbcp.maxWait## replaced by ##dbcp.maxWaitMillis##
230
231 Note that we've kept backward compatibility support for the old properties so that you don't need to immediately modify your ##hibernate.cfg## file (although we recommend you do that!).
232
233 Also note that even though the following properties were defined in ##hibernate.cfg## they were not handled by XWiki's code (nor by DBCP 1.3 - which was the version we were using prior to moving to 2.1). Since they had no effect they've now been removed:
234
235 * ##dbcp.whenExhaustedAction##. Note that the default action is BLOCK in Commons Pool (used by DBCP)
236 * ##dbcp.ps.whenExhaustedAction##
237 * ##dbcp.ps.maxWait##
238 * ##dbcp.ps.maxIdle##
239 )))
240
241 == API Breakages ==
242
243 The following APIs were modified since XWiki 6.4.1:
244
245 {{code language="none"}}
246 <clirr output here>
247 {{/code}}

Get Connected