Wiki source code of ReleaseNotesXWiki72M2

Version 11.2 by Eduard Moraru on 2015/07/31

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 <version - 1>) =
10
11 [[Full list of issues fixed and Dashboard for <version>>>http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=<fill id here>]].
12
13 == Script Right ==
14
15 The Script Right is now set to DENY by default, meaning that if you do not have it explicitly, you will not be able to execute the scripts that you write with your user account.
16
17 However, for backwards compatibility reasons, the standard XWiki Enterprise distribution comes with the Script Right being allowed for all users at the main wiki level so that, unless you (as an admin) explicitly revoke the right for some users or explicitly deny it, they will be able to execute the scripts they wrote, just like before.
18
19 {{image reference="scriptRightsExplicitlyAllowedInXWikiPreferences.png"/}}
20
21 == <feature N> ==
22
23 <description of feature N>
24
25 == Miscellaneous ==
26
27 <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!>
28
29 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+%22<version>%22&tempMax=1000]] fixed in this release.
30
31 = For Developers =
32
33 == New Space/XWikiSpace table ==
34
35 A new tables dedicated to spaces has been introduced. See [[platform:DevGuide.DatabaseSchema]] for more details.
36
37 == Queries improvement ==
38
39 === Allow executing complete SELECT queries ===
40
41 In HQL and XWQL it's now possible to execute complete ##SELECT## queries without programming right as long as you follow some rules currently defined in ##com.xpn.xwiki.internal.store.hibernate.query.HqlQueryUtils## which is a list of database field allowed in the SELECT clause:
42
43 * ##Document##/##XWikiDocument## table: ##fullName##, ##name##, ##space##, ##language##, ##defaultLanguage##, ##translation##, ##hidden##
44 * ##Space##/##XWikiSpace## table: ##reference##, ##name##, ##parent##, ##hidden##
45
46 This is also true for the named queries located in ##queries.hbm.xml## file.
47
48 === New SecureQuery ===
49
50 The right to execute or not some query is now controlled by each ##org.xwiki.query.QueryExecutor##.
51
52 Anyone can ask the executor to check or ignore right through the new ##org.xwiki.query.SecureQuery## extending ##org.xwiki.query.Query##:
53
54 * checkCurrentAuthor: indicate if the current author right should be checked
55 * checkCurrentUser: indicate if the result should be filtered based on current user right (only implemented by SOLR right now)
56
57 == JS API Improvements ==
58
59 * It's now possible to create a Nested Spaces Reference using XWik'is Javascript API. For example:(((
60 {{code language="javascript"}}
61 // Construct a Nested Space reference
62 var reference = new XWiki.SpaceReference('wiki', ['space1', 'space2']);
63 expect(XWiki.Model.serialize(reference)).toEqual('wiki:space1.space2');
64 reference = new XWiki.DocumentReference('wiki', ['space1', 'space2'], 'page');
65 expect(XWiki.Model.serialize(reference)).toEqual('wiki:space1.space2.page');
66 // Construct a non-Nested Space reference
67 reference = new XWiki.SpaceReference('wiki', 'space');
68 expect(XWiki.Model.serialize(reference)).toEqual('wiki:space');
69 // Try passing non-valid space parameters
70 expect(function() {new XWiki.SpaceReference('wiki', [])}).toThrow('Missing mandatory space name or invalid type for: []');
71 expect(function() {new XWiki.SpaceReference('wiki', 12)}).toThrow('Missing mandatory space name or invalid type for: [12]');
72 {{/code}}
73 )))
74 * A new ##XWiki.EntityReference.equals()## method has been added. For example:(((
75 {{code language="javascript"}}
76 var reference1 = new XWiki.DocumentReference('wiki', ['space1', 'space2'], 'page');
77 var reference2 = new XWiki.DocumentReference('wiki', ['space1', 'space2'], 'page');
78 var reference3 = new XWiki.DocumentReference('wiki2', ['space1', 'space2'], 'page');
79 expect(reference1.equals(reference2)).toBe(true);
80 expect(reference1.equals(reference3)).toBe(false);
81 {{/code}}
82 )))
83
84 == Deprecated and Retired projects ==
85
86 <description of deprecated and retired projects>
87
88 == Upgrades ==
89
90 The following dependencies have been upgraded:
91
92 * [[Groovy 2.4.4>>http://jira.xwiki.org/browse/XCOMMONS-831]]
93 * [[Tika 1.9>>http://jira.xwiki.org/browse/XWIKI-12274]]
94 * [[JRuby 1.7.21>>http://jira.xwiki.org/browse/XWIKI-12344]]
95 * [[Jackson 2.6.0>>http://jira.xwiki.org/browse/XCOMMONS-833]]
96 * [[Hibernate Validator 4.3.2>>http://jira.xwiki.org/browse/XWIKI-12365]]
97
98 == Miscellaneous ==
99
100 * Custom displayers are now executed with the rights of the user who wrote them (i.e. author of the class document or content author of the displayer document), and not the rights of the user who wrote the script that uses them (i.e. current context document's content author). See [[XWIKI-12306>>http://jira.xwiki.org/browse/XWIKI-12306]] for more details.
101
102 = Translations =
103
104 The following translations have been updated:
105
106 {{language codes="none, none"/}}
107
108 = Tested Browsers & Databases =
109
110 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
111
112 = Performances tests compared to <last super stable version> =
113
114 <a summary of the comparison with latest super stable version>
115
116 More details on <link to the test report>.
117
118 = Known issues =
119
120 * [[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]]
121
122 = Backward Compatibility and Migration Notes =
123
124 == General Notes ==
125
126 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.
127
128 == Issues specific to XWiki <version> ==
129
130 <issues specific to the project>
131
132 == API Breakages ==
133
134 The following APIs were modified since <project> <version - 1>:
135
136 {{code language="none"}}
137 <clirr output here>
138 {{/code}}

Get Connected