Version 35.1 by Marius Dumitru Florea on 2015/01/07

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 This milestone brings mainly UI improvements in the Menu application, Mail application and Flamingo skin, while offering developers the ability to write LESS in Skin Extensions, a cool icon picker and new ConfigurableClass and Mail Sender API features.
8
9 = New and Noteworthy (since XWiki 6.4-milestone-1) =
10
11 [[Full list of issues fixed and Dashboard for 6.4>>http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=12791]].
12
13 == Menu Application ==
14
15 Taking advantage of the ability to have LESS inside our [[StyleSheetExtensions>>extensions:Extension.Skin Extension Plugin||anchor="HUseLESS"]], we improved the [[Menu Application>>extensions:Extension.Menu Application]], on Flamingo based skins, making it responsive and also adapting its styling according to the active [[Flamingo Theme>>extensions:Extension.Flamingo Theme Application]].
16 Colibri based skins preserve the initial styling.
17
18 {{gallery}}
19 image:menu_flamingo_charcoal.png
20 image:menu_flamingo_united.png
21 image:menu_flamingo_darkly.png
22 image:menu_flamingo_simplex.png
23 image:menu_flamingo_charcoal_responsive.png
24 {{/gallery}}
25
26 == Mail Feature ==
27
28 * The mail feature has a new Category in the Admin UI (see the [[Mail Application>>extensions:Extension.Mail Application]] for details).(((
29 {{image reference="emailcategory.png"/}}
30 )))
31 * There's now the possibility to configure default BCC addresses which will be added by default to all emails sent using the [[Mail Sender API>>extensions:Extension.Mail Sender API]].(((
32 {{image reference="emailsend.png"/}}
33 )))
34 * The [[Mail Sender API>>extensions:Extension.Mail Sender API]] now checks for permission before sending emails, when using it from scripts (i.e. when using the Mail Sender Script Service). There are currently 2 possible strategies that you configure in your ##xwiki.properties## file(((
35 {{code language="none"}}
36 #-# [Since 6.4M2]
37 #-# Defines which authorization checks are done when sending mails using the Mail Sender Script Service.
38 #-# Example of valid values:
39 #-# - "programmingrights": the current document must have Programming Rights
40 #-# - "alwaysallow": no check is performed. This is useful when running XWiki in a secure environment where we
41 #-# want to allow all users to be able to send emails through the Script Service.
42 #-# The default is:
43 # mail.sender.scriptServiceCheckerHint = programmingrights
44 {{/code}}
45 )))
46
47 == Flamingo ==
48
49 The history table, under each page, is now responsive to the screen size:
50
51 (((
52 {{image reference="responsive-history.png"/}}
53 )))
54
55 .
56
57 == Miscellaneous ==
58
59 * The selected tree node is now highlighted even when links are enabled:(((
60 {{image reference="highlightSelectedTreeNode.png"/}}
61 )))
62 * A list of icons supported by XWiki have been created, with mapping for Silk and Font Awesome. Which means that we now propose a list of icons that are both present in Silk and Font Awesome.
63 * The list of columns in the UserDirectory customization screen is now sorted alphabetically
64 * The accuracy of the attachment content type detection has been improved. If the file name extension is unknown then we attempt to detect the content type from the first bytes of the file content. You can check this by attaching a text file without the 'txt' file name extension.
65
66 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+%226.4-milestone-2%22&tempMax=1000]] fixed in this release.
67
68 = For Developers =
69
70 == Mail Sender Permissions ==
71
72 There's now a [[pluggable permission checker>>extensions:Extension.Mail Sender API||anchor="HPluggablePermissionChecker"]] used for checking if a mail should be sent, when using the Mail Sender Script Service. Two implementations are provided (see above) but you can also provide your own implementation by implementing the ##org.xwiki.mail.script.ScriptServicePermissionChecker## component role:
73
74 {{code language="java"}}
75 @Role
76 @Unstable
77 public interface ScriptServicePermissionChecker
78 {
79 /**
80 * @param message the message to check for authorization
81 * @exception MessagingException if the message is not allowed to be sent
82 */
83 void check(MimeMessage message) throws MessagingException;
84 }
85 {{/code}}
86
87 For example you could imagine implementing checks on the size of the email or who the recipients are, run the content of the mail through some filter, etc.
88
89 == Icon Picker ==
90
91 An [[icon picker>>extensions:Extension.Icon Theme Application||anchor="#HIconPicker"]] has been created to help users selecting an image in the list of supported icons.
92
93 (((
94 {{image reference="icon-picker.png"/}}
95 )))
96
97 This picker is already used in [[Application Within Minutes>>extensions:Extension.App Within Minutes Application]] for the application's icon selection.
98
99 == Skin Extensions ==
100
101 [[Now you can use LESS in your Skin Extensions!>>extensions:Extension.Skin Extension Plugin||anchor="HUseLESS"]]. You just need to set the new property "Content Type" to LESS inside your Skin Extension object:
102
103 (((
104 {{image reference="contentTypeLESS.png"/}}.
105 )))
106
107 == Admin ConfigurableClass ==
108
109 The [[##ConfigurableClass## mechanism>>extensions:Extension.Administration Application||anchor="HMakingyourapplicationconfigurablewithConfigurableClass"]] has been improved to be able to contribute new categories in the Admin UI. For example the "Email" Category in the following screenshot is contributed through a ##ConfigurableClass##:
110
111 {{image reference="emailcategory.png"/}}
112
113 It was configured using:
114
115 {{image reference="emailconfigurableclass.png"/}}
116
117 == Upgrades ==
118
119 The following dependencies have been upgraded:
120
121 * [[JGroups 3.6.1>>http://jira.xwiki.org/browse/XWIKI-11523]]
122 * [[Pygments 2.0.1>>http://jira.xwiki.org/browse/XWIKI-11522]]
123 * [[Joda-Time 2.6>>http://jira.xwiki.org/browse/XWIKI-11516]]
124 * [[Bootstrap 3.3.1>>http://jira.xwiki.org/browse/XWIKI-11381]]
125 * [[Bootswatch 3.3.1+2>>http://jira.xwiki.org/browse/XWIKI-11569]]
126
127 == Miscellaneous ==
128
129 * It's now possible to know what namespace a ComponentManager instance is associated with by casting it to ##org.xwiki.component.manager.NamespacedComponentManager##. See [[Component Module documentation>>http://extensions.xwiki.org/xwiki/bin/view/Extension/Component+Module||anchor="HNamespacedComponentManager"]].
130 * Added getCurrentWikiDescriptor() method to the wiki API and script service to be consistent with the existing getCurrentWikiId() method
131 * The ClassLoader automatically set as Thread ClassLoader is now dynamic meaning that any modification of the context wiki will automatically change the actual Thread ClassLoader. It used to be set to whatever was the wiki in the URL at ExecutionContext init.
132 * [[A new CSS class>>platform:DevGuide.SpecialCSSClasses||anchor="HClassesfortheresponsiveness"]] have been added in Flamingo, to handle responsive tables.
133 * The #sheetTitle Velocity macro supports a new use case: displaying the sheet title if the current document doesn't have an object of some type:(((
134 {{code language="none"}}
135 #sheetTitle('The sheet used to display objects of type Space.MyClass', 'Space.MyClass')
136 {{/code}}
137 )))
138
139 = Translations =
140
141 The following translations have been updated:
142
143 {{language codes="fr"/}}
144
145 {{comment}}
146
147 = Tested Browsers & Databases =
148
149 {{include reference="TestReports.ManualTestReportSummaryXWiki64M2"/}}
150
151 = Performances tests compared to <last super stable version> =
152
153 <a summary of the comparison with latest super stable version>
154
155 More details on <link to the test report>.
156
157 {{/comment}}
158
159 = Known issues =
160
161 * [[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]]
162
163 = Backward Compatibility and Migration Notes =
164
165 == General Notes ==
166
167 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.
168
169 == API Breakages ==
170
171 The following APIs were modified since XWiki 6.3:
172
173 * It's very unlikely that this class is implemented by anything else and it does not make much sense to not have this method, since this is not really a cache behind it but a Map that keep engines forever it may create a memory leak on a big farm running for a long time(((
174 {{code language="none"}}
175 org.xwiki.velocity.VelocityFactory: Method 'public org.xwiki.velocity.VelocityEngine removeVelocityEngine(java.lang.String)' has been added to an interface
176 {{/code}}
177 )))
178
179 * This shouldn't be a backward incompatible change since it's a method addition on an Annotation.(((
180 {{code language="none"}}
181 org.xwiki.component.annotation.Component: Method 'public boolean staticRegistration()' has been added to an interface
182 {{/code}}
183 )))
184
185 * Young API, this method needs to be available for consistency with the getMainWikiDescriptor/Id pair of methods(((
186 {{code language="none"}}
187 org.xwiki.wiki.descriptor.WikiDescriptorManager: Method 'public org.xwiki.wiki.descriptor.WikiDescriptor getCurrentWikiDescriptor()' has been added to an interface
188 {{/code}}
189 )))
190
191 * Young API, adding a method to check permissions for sending mail and a method to configure default BCC addresses to use when sending mail.(((
192 {{code language="none"}}
193 org.xwiki.mail.MailSenderConfiguration: Method 'public java.util.List getBCCAddresses()' has been added to an interface
194 org.xwiki.mail.MailSenderConfiguration: Method 'public java.lang.String getScriptServicePermissionCheckerHint()' has been added to an interface
195 {{/code}}
196 )))
197
198 * Young API, this method should not have been made public.(((
199 {{code language="none"}}
200 org.xwiki.mail.script.MimeMessageWrapper: In method 'public MimeMessageWrapper(org.xwiki.mail.internal.ExtendedMimeMessage, javax.mail.Session, org.xwiki.mail.MailSender, org.xwiki.context.Execution, org.xwiki.component.manager.ComponentManager)' the number of arguments has changed
201 org.xwiki.mail.script.MimeMessageWrapper: Accessibility of method 'public MimeMessageWrapper(org.xwiki.mail.internal.ExtendedMimeMessage, javax.mail.Session, org.xwiki.mail.MailSender, org.xwiki.context.Execution, org.xwiki.component.manager.ComponentManager)' has been decreased from public to package
202 {{/code}}
203 )))
204
205 * WYSIWYG's MacroService API was not previously considering a multiwiki environment.(((
206 {{code language="none"}}
207 org.xwiki.gwt.wysiwyg.client.plugin.macro.MacroService: Method 'public org.xwiki.gwt.wysiwyg.client.plugin.macro.MacroDescriptor getMacroDescriptor(java.lang.String, java.lang.String, java.lang.String)' has been added to an interface
208 org.xwiki.gwt.wysiwyg.client.plugin.macro.MacroService: Method 'public java.util.List getMacroDescriptors(java.lang.String, java.lang.String)' has been added to an interface
209 org.xwiki.gwt.wysiwyg.client.plugin.macro.MacroServiceAsync: Method 'public void getMacroDescriptor(java.lang.String, java.lang.String, java.lang.String, com.google.gwt.user.client.rpc.AsyncCallback)' has been added to an interface
210 org.xwiki.gwt.wysiwyg.client.plugin.macro.MacroServiceAsync: Method 'public void getMacroDescriptors(java.lang.String, java.lang.String, com.google.gwt.user.client.rpc.AsyncCallback)' has been added to an interface
211 {{/code}}
212 )))
213
214 * Add new methods to the Icon Set Module(((
215 {{code language="none"}}
216 org.xwiki.icon.IconManager: Method 'public java.util.List getIconNames()' has been added to an interface
217 org.xwiki.icon.IconManager: Method 'public java.util.List getIconNames(java.lang.String)' has been added to an interface
218 org.xwiki.icon.IconSetManager: Method 'public java.util.List getIconSetNames()' has been added to an interface
219 {{/code}}
220 )))
221
222 * LESS refactoring.(((
223 {{code language="none"}}
224 org.xwiki.lesscss.LessCompilerScriptService: Method 'public boolean clearCacheFromFileSystemSkin(java.lang.String)' has been removed
225 org.xwiki.lesscss.LessCompilerScriptService: Return type of method 'public org.xwiki.lesscss.ColorTheme getColorThemeFromSkinFile(java.lang.String)' has been changed to org.xwiki.lesscss.colortheme.ColorTheme
226 org.xwiki.lesscss.LessCompilerScriptService: Return type of method 'public org.xwiki.lesscss.ColorTheme getColorThemeFromSkinFile(java.lang.String, java.lang.String)' has been changed to org.xwiki.lesscss.colortheme.ColorTheme
227 org.xwiki.lesscss.ColorTheme: Class org.xwiki.lesscss.ColorTheme removed
228 org.xwiki.lesscss.ColorThemeCache: Class org.xwiki.lesscss.ColorThemeCache removed
229 org.xwiki.lesscss.LESSCache: Class org.xwiki.lesscss.LESSCache removed
230 org.xwiki.lesscss.LESSColorThemeConverter: Class org.xwiki.lesscss.LESSColorThemeConverter removed
231 org.xwiki.lesscss.LESSCompiler: Class org.xwiki.lesscss.LESSCompiler removed
232 org.xwiki.lesscss.LESSCompilerException: Class org.xwiki.lesscss.LESSCompilerException removed
233 org.xwiki.lesscss.LESSSkinFileCache: Class org.xwiki.lesscss.LESSSkinFileCache removed
234 org.xwiki.lesscss.LESSSkinFileCompiler: Class org.xwiki.lesscss.LESSSkinFileCompiler removed
235 {{/code}}
236 )))

Get Connected