<
From version < 3.1 >
edited by Sorin Burjan
on 2010/10/19
To version < 4.1 >
edited by Sorin Burjan
on 2010/10/19
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -95,15 +95,211 @@
95 95  
96 96  
97 97  
98 +M2
99 +{{box cssClass="floatinginfobox" title="**Contents**"}}
100 +{{toc/}}
101 +{{/box}}
98 98  
103 +Second milestone of the XWiki Enterprise 2.5 version ([[Roadmap>>enterprise:Main.Roadmap]]).
99 99  
105 +The highlights of this release are: support for [[viewing attached office documents>>code:Macros.OfficeMacro]] in the wiki, an experimental Extension Manager, experimental [[CSRF>>http://en.wikipedia.org/wiki/CSRF]] protection, a new User Directory, further improvements to the edit UI, more consistent [[use of user avatars>>http://incubator.myxwiki.org/xwiki/bin/view/Improvements/Avatars]], support for activating a special accessibility stylesheet, and an experimental ##xwiki/2.1## wiki syntax.
100 100  
107 += New and Noteworthy (since XWiki Enterprise 2.4) =
101 101  
109 +== Support for viewing attached office documents in the wiki ==
102 102  
111 +XWiki now supports viewing attached office documents without saving them on the client side.
103 103  
113 +image:OfficePreview.png
104 104  
115 +We also included a new Macro for the WYSIWYG Editor. It allows to embed a office file into a page.
105 105  
117 +[[image:MacroOfficeViewer||style="border:1px solid black;"]]
106 106  
119 +== Experimental Extension Manager ==
120 +
121 +The new Extension Manager will allow you to install new extensions to your XWiki XE. Please note that this is an experimental feature. Use it at your own risk.
122 +
123 +[[image:ExtensionManager.png||style="border:1px solid black;"]]
124 +
125 +== New User Directory ==
126 +
127 +Added User Directory section on the Quick Links tab on the left of the page. This will show you the users that the XWiki instance has, along with their avatar image. This page also allows to filter users by username.
128 +image:userdir.png
129 +
130 +== Further improvements to the edit UI ==
131 +
132 +After the improvements to the object and class editors introduced in 1.8 and 2.4, the wiki and WYSIWYG editors also see some enhancements in this release, bringing in some of the proposed changes from [[an older proposal>>http://incubator.myxwiki.org/xwiki/bin/Improvements/ImprovedEdit]], with some additional improvements. Specifically:
133 +
134 +* A new label for the content area in the wiki editor:(((
135 +image:edit-header.png
136 +)))
137 +* A more descriptive label for the version summary field
138 +* Better positioning of the "minor edit" option
139 +* Better positioning and display of the "autosave" option(((
140 +image:edit-footer.png
141 +)))
142 +
143 +== More consistent use of user avatars ==
144 +
145 +As proposed on [[the design page>>http://incubator.myxwiki.org/xwiki/bin/Improvements/Avatars]], avatars come in three default sizes:
146 +
147 +* small avatars, 30px wide, used in secondary actions and where there's very little space available
148 +* medium avatars, 50px wide, the preferred and most frequent display option for avatars
149 +* large avatars,120px wide, to be used where a large version of the avatar must be displayed (for example in the user profile)
150 +
151 +Accordingly, the wiki dashboard has been changed to use the medium avatars, and as a new feature user avatars are displayed in the comments area.
152 +
153 +image:comment-avatars.png
154 +
155 +Four new velocity macros have been added for making it easier to display avatars:
156 +
157 +* ###smallUserAvatar('XWiki.username')##
158 +* ###mediumUserAvatar('XWiki.username')##
159 +* ###largeUserAvatar('XWiki.username')##
160 +* ###resizedUserAvatar('XWiki.username', 100)## which allows resizing an avatar to a custom size
161 +
162 +== More image manipulation settings ==
163 +
164 +For a long time it was possible to scale attached images on the server, thus reducing the download time and ensuring consistent scaling of images across browsers. This is achieved by appending ##width## and/or ##height## query string parameters to the URL of the image. This feature has been further enhanced:
165 +
166 +* It is now possible to force the same aspect ratio of the original picture even when both width/height parameters were used (the ##keepAspectRatio## parameter). In case the requested width and height don't match the original aspect ratio, the image is resized to fit inside the rectangle defined by the two parameters, i.e. the resized image will not exceed the requested dimensions.
167 +* The size of the generated JPGs can be further tweaked by specifying an encoding ##quality## (the configurable default is at 30%, but will be changed to 50% before the final release). This does not affect lossless image formats such as PNG.
168 +* The WYSIWYG editor also supports the width and height parameters, setting them as needed when manually resizing the image in the editor.
169 +
170 +{{code language="none"}}
171 +/xwiki/bin/download/Spage/Page/logo.jpg?width=1024&height=768&keepAspectRatio=true&quality=0.8
172 +{{/code}}
173 +
174 +Note that this does not affect images from the filesystem, which are served directly by the servlet conainer and do not pass through XWiki's image handling code. Also note that in case the image processing triggers any errors, the original image will be sent unchanged, so the requested image dimensions are not guaranteed.
175 +
176 +Example:
177 +
178 +{{code language="html"}}
179 +{{velocity}}{{html wiki=false}}
180 +<img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150&quality=1')"/>
181 +<img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150')"/>
182 +<img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150&quality=0')"/>
183 +<img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150&height=100&quality=0.7')"/>
184 +<img src="$doc.getAttachmentURL('mw.jpg', 'download', 'width=150&height=100&quality=0.7&keepAspectRatio=true')"/>
185 +{{/html}}{{/velocity}}
186 +{{/code}}
187 +
188 +Gives:
189 +
190 +image:img.png
191 +
192 +== Better handling of attachment versions when rolling back documents ==
193 +
194 +Rolling back a document will also roll back the correct attachment version, including restoring a deleted attachment from the trash (if not manually deleted from there). Even if an attachment was deleted and re-uploaded several times, the platform will try to find the right version for the attachment, if it still exists in the attachment trash. As an improvement, if the attachment did not change, then a new version is not created.
195 +
196 +== Preliminary optional accessibility stylesheet ==
197 +
198 +Moving further on the quest for better accessibility in the XWiki platform, we introduced a preliminary stylesheet which makes the skin slightly more accessible to people with visual disabilities: bigger fonts by default, and underlined links to make them more easily distinguished by colorblind people. This stylesheet can either be activated globally in a wiki, or individually from each user's preferences.
199 +
200 +Enabling the special stylesheet:
201 +
202 +image:a11y-enable.png
203 +
204 +Bigger fonts and underlined links:
205 +
206 +image:a11y.png
207 +
208 +== Experimental xwiki/2.1 wiki syntax ==
209 +
210 +The xwiki wiki syntax sees further improvements as xwiki/2.1, still in an experimental stage. A new feature is an enhanced syntax for links, which is more generic and allows easier extensions with new link types, demonstrated in this release with support for path and [[interwiki links>>http://en.wikipedia.org/wiki/Interwiki_links]].
211 +
212 +Basic syntax:
213 +
214 +{{code language="none"}}
215 +[[label>>referenceType:referenceData]]
216 +{{/code}}
217 +
218 +Special ##queryString## and ##anchor## parameters which will be used as the query string, respectively anchor when forming URLs.
219 +
220 +{{code language="none"}}
221 +[[label>>doc:My.Page||queryString="a=b&c=d" anchor="HSection1"]]
222 +{{/code}}
223 +
224 +Document references are still the implicit default, with the explicit ##doc:## reference type. The other standard reference types are ##url##, ##path##, ##mailto##, ##attach##, ##image##, ##interwiki##.
225 +
226 +Path links allow to link to a relative path on the server, which makes it easier to combine wiki syntax and velocity code, using ##$doc.getURL##, in order to link to non-view actions on documents.
227 +
228 +{{code language="none"}}
229 +{{velocity}}[[reset the history>>path:$doc.getURL('reset')||queryString="confirm=1"]]{{/velocity}}
230 +{{/code}}
231 +
232 +=== [[Interwiki links>>http://en.wikipedia.org/wiki/Interwiki_links]] ===
233 +
234 +Basic syntax:
235 +
236 +{{code language="none"}}
237 +[[label>>interwiki:wikiAlias:path/data]]
238 +[[Interwiki links>>interwiki:wikipedia:Interwiki_links]]
239 +{{/code}}
240 +
241 +By default no sister wikis are defined. You can define some in ##xwiki.properties## by adding ##rendering.interWikiDefinitions## values:
242 +
243 +{{code language="none"}}
244 +rendering.interWikiDefinitions = wikipedia = http://en.wikipedia.org/wiki/
245 +rendering.interWikiDefinitions = udic = http://www.urbandictionary.com/define.php?term=
246 +{{/code}}
247 +
248 +== Various Security improvements ==
249 +
250 +Continuing a push for better security started this summer, 2.5M2 fixes some of the few remaining cross-site scripting and SQL injections holes, and tightens the scope of programming rights. Of particular concern:
251 +
252 +* With a default skin, programming rights are no longer available after the main content of the page; this means that the panels and the bottom tabs can't use restricted APIs anymore.
253 +* To explicitly drop programming rights, a new API method was introduced: ##$xcontext.dropPermissions()##
254 +* An experimental Cross-Site Request Forgery prevention mechanism is included, though not enabled by default. To enable it and test/upgrade your custom applications for compatibility, edit ##xwiki.properties## and flip on the ##core.csrf.enabled## setting.
255 +
256 += Backward Compatibility and Migration Notes =
257 +
258 +== General Notes ==
259 +
260 +{{warning}}
261 +If you're running in a multiwiki setup you'll also need to define the property //xwiki.store.migration.databases=all// to your //xwiki.cfg// file or explicitly name all databases to be migrated as in //xwiki.store.migration.databases=db1,db2,...//.
262 +{{/warning}}
263 +
264 +You may also want to [[import the default wiki XAR>>Main.Download]] in order to benefit from the improvements listed above.
265 +
266 +{{warning}}
267 +Always make sure you compare your //xwiki.cfg// file with the newest version since some configuration parameters were added. Note 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.
268 +{{/warning}}
269 +
270 +{{warning}}
271 +Experimental support for CSRF protection is included in this release, although not enabled by default. This mechanism changes the way data is supposed to be saved, a change which will not completely break custom applications in most cases, but which might insert an extra validation step needed for actually saving the data.
272 +{{/warning}}
273 +
274 +It is **strongly recommended** to set up a testing/development environment, enable this feature and fully test all the code. In most cases things should work with no additional changes. If the default edit mode is not used, or if the default velocity templates are not used, it should be enough to add the following line:
275 +
276 +{{code language="html"}}
277 +<input type="hidden" name="form_token" value="$!{services.csrf.getToken()}" />
278 +{{/code}}
279 +
280 +== API Breakages ==
281 +
282 +The following APIs were modified since XWiki Enterprise 2.4:
283 +
284 +{{code language="none"}}
285 +[ERROR] org.xwiki.rendering.transformation.MacroTransformationContext: Method 'public org.xwiki.rendering.internal.transformation.MacroTransformation getMacroTransformation()' has been removed
286 +[ERROR] org.xwiki.rendering.transformation.MacroTransformationContext: Method 'public void setMacroTransformation(org.xwiki.rendering.internal.transformation.MacroTransformation)' has been removed
287 +[ERROR] org.xwiki.rendering.transformation.Transformation: Method 'public void transform(org.xwiki.rendering.block.Block, org.xwiki.rendering.transformation.TransformationContext)' has been added to an interface
288 +[ERROR] org.xwiki.rendering.transformation.TransformationManager: Method 'public void performTransformations(org.xwiki.rendering.block.Block, org.xwiki.rendering.transformation.TransformationContext)' has been added to an interface
289 +{{/code}}
290 +
291 +
292 +
293 +
294 +
295 +
296 +
297 +
298 +
299 +
300 +
301 +
302 +
107 107  {{box cssClass="floatinginfobox" title="**Contents**"}}
108 108  {{toc/}}
109 109  {{/box}}

Get Connected