Version 18.2 by Vincent Massol on 2014/06/19

Hide last authors
Guillaume Delhumeau 1.1 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
Guillaume Delhumeau 7.1 9 = New and Noteworthy (since XWiki 6.1 milestone 2) =
Guillaume Delhumeau 1.1 10
Guillaume Delhumeau 8.1 11 [[Full list of issues fixed and Dashboard for 6.1>>http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=12290]].
Guillaume Delhumeau 1.1 12
Guillaume Delhumeau 3.1 13 == Flamingo Skin ==
Guillaume Delhumeau 1.1 14
Guillaume Delhumeau 3.1 15 * The preview action has been implemented:(((
Guillaume Delhumeau 5.1 16 {{image reference="preview.png" width="60%"/}}
Guillaume Delhumeau 3.1 17 )))
Ecaterina Moraru (Valica) 15.1 18 * The user's avatar is now displayed in the main menu:(((
19 {{image reference="navbar.png" width="60%"/}}
20 )))
Ecaterina Moraru (Valica) 18.1 21 * 'Share by email' menu entry is moved from 'Page' submenu to 'More actions' submenu:(((
22 {{image reference="moreActions.png"/}}
23 )))
Guillaume Delhumeau 6.1 24 * A lot of polishing have been made too, in order to have a skin usable in production.
Guillaume Delhumeau 1.1 25
26 == Miscellaneous ==
27
28 <insert misc user stuff and important bug fix descriptions here in a list, when they are too small to warrant a section by themselves - Change the version in the URL below!>
29
Guillaume Delhumeau 7.1 30 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.1-rc-1%22&tempMax=1000]] fixed in this release.
Guillaume Delhumeau 1.1 31
32 = For Developers =
33
Thomas Mortagne 9.1 34 == Log from a script ==
Guillaume Delhumeau 1.1 35
Thomas Mortagne 9.1 36 A new API to get a SLF4J Logger has been added to the ##logging## script service.
Guillaume Delhumeau 1.1 37
Thomas Mortagne 9.1 38 {{code language="velocity"}}
39 $services.logging.getLogger('My script').info('Hello {}', 'world')
40 {{/code}}
41
Denis Gervalle 12.1 42 == New contextual authorization manager role ==
43
44 A new role is now available to ease the replacement of the old Right Service (com.xpn.xwiki.user.api.XWikiRightService).
45 Compared to the old service, the component does not manage authentication which should have been ensured previously if needed. (No redirection to login is ever done)
46 The new component has a similar interface to the AuthorizationManager, but it take care of all external context aspects, like the currently executed macro block, the rendering context restrictions, the dropping of rights, etc...
47 This new role should be used from now on by any component that needs to check rights for the current user, in the current context.
48
49 == New security authorization script service ==
50
51 A new script service is now available to access the default AuthorizationManager and the ContextualAuthorizationManager.
52
53 Here is some sample:
54
55 {{code language="velocity"}}
56 #if ($services.security.authorization.hasAccess("edit"))
57 ... show some UI that require edit access on the current document by the current user ...
58 #end
Denis Gervalle 14.1 59 #if ($services.security.authorization.hasAccess("edit", "xwiki:Sandbox.TestPage1"))
Denis Gervalle 12.1 60 ... show some UI that require edit access on Sandbox.TestPage1 document by the current user ...
61 #end
Denis Gervalle 14.1 62 #if ($services.security.authorization.hasAccess("edit", "xwiki:XWiki.User1", "xwiki:Sandbox.TestPage1"))
Denis Gervalle 12.1 63 ... show some UI that require edit access on Sandbox.TestPage1 document by XWiki.User1 ...
64 #end
65 {{/code}}
66
67 {{code language="velocity"}}
68 $services.security.authorization.checkAccess("edit")
69 ... do some task that require edit access ...
70 {{/code}}
71
72 In this second sample, the macro will fail with an AccessDeniedException if the right is not allowed.
73
Guillaume Delhumeau 1.1 74 == Deprecated and Retired projects ==
75
76 <description of deprecated and retired projects>
77
78 == Upgrades ==
79
80 The following dependencies have been upgraded:
81
Thomas Mortagne 4.1 82 * [[commons-collections 4.0>>http://jira.xwiki.org/browse/XCOMMONS-605]]
83 * [[httpclient 4.3.4>>http://jira.xwiki.org/browse/XCOMMONS-606]]
84 * [[commons-beanutils 1.9.2>>http://jira.xwiki.org/browse/XCOMMONS-607]]
85 * [[reflections 0.9.9-RC2>>http://jira.xwiki.org/browse/XCOMMONS-608]]
Thomas Mortagne 10.1 86 * [[slf4j 1.7.7>>http://jira.xwiki.org/browse/XCOMMONS-609]]
Guillaume Delhumeau 1.1 87
88 == Miscellaneous ==
89
Vincent Massol 14.4 90 * The [[Mail Sender API>>extensions:Extension.Mail Sender API]] now allows to send Mails from a Template. This is achieved with 2 calls:
91 ** One for setting the Subject from the Template. The following will generate a ##MimeMessage## with the subject pre-filled. The value will be that of the ##subject## xproperty from an ##XWiki.Mail## xobject in the Document pointed to by the passed ##documentReference##:(((
Vincent Massol 11.1 92 {{code language="none"}}
Vincent Massol 18.2 93 #set ($message = $services.mailsender.createMessage("template", documentReference))
94 #set ($message = $services.mailsender.createMessage("template", documentReference, parameters))
Vincent Massol 11.1 95 {{/code}}
96 )))
Vincent Massol 14.4 97 ** One for setting the Body Part content from the Template:(((
Lyes BANDOU 14.2 98 {{code language="none"}}
99 $message.addPart("xwiki/template", $documentReference, {"velocityVariables" : { "var1" : "value1" }})
100 $message.addPart("xwiki/template", $documentReference, {"velocityVariables" : { "var1" : "value1" }, "attachments" : $attachments})
101 {{/code}}
102 )))
103
Guillaume Delhumeau 1.1 104 = Translations =
105
106 The following translations have been updated:
107
108 {{language codes="none, none"/}}
109
110 = Tested Browsers & Databases =
111
112 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
113
114 = Known issues =
115
116 * [[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]]
117
118 = Backward Compatibility and Migration Notes =
119
120 == General Notes ==
121
122 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.
123
124 == Issues specific to XWiki <version> ==
125
126 <issues specific to the project>
127
128 == API Breakages ==
129
130 The following APIs were modified since <project> <version - 1>:
131
132 {{code language="none"}}
133 <clirr output here>
134 {{/code}}

Get Connected