Wiki source code of ReleaseNotesXWiki72M2

Version 23.1 by Thomas Mortagne on 2015/08/05

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 * Import UI move to new standard tree
28 {{image reference="import.png"/}}
29 * The size of the Job status cache is now configurable. See ##job.statusCacheSize## property in ##xwiki.properties## files.
30
31 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.
32
33 = For Developers =
34
35 == New Space/XWikiSpace table ==
36
37 A new tables dedicated to spaces has been introduced. See [[platform:DevGuide.DatabaseSchema]] for more details.
38
39 == Queries improvement ==
40
41 === Allow executing complete SELECT queries ===
42
43 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:
44
45 * ##Document##/##XWikiDocument## table: ##fullName##, ##name##, ##space##, ##language##, ##defaultLanguage##, ##translation##, ##hidden##
46 * ##Space##/##XWikiSpace## table: ##reference##, ##name##, ##parent##, ##hidden##
47
48 This is also true for the named queries located in ##queries.hbm.xml## file.
49
50 === New SecureQuery ===
51
52 The right to execute or not some query is now controlled by each ##org.xwiki.query.QueryExecutor##.
53
54 Anyone can ask the executor to check or ignore right through the new ##org.xwiki.query.SecureQuery## extending ##org.xwiki.query.Query##:
55
56 * checkCurrentAuthor: indicate if the current author right should be checked
57 * checkCurrentUser: indicate if the result should be filtered based on current user right (only implemented by SOLR right now)
58
59 == JS API Improvements ==
60
61 * It's now possible to create a Nested Spaces Reference using XWik'is Javascript API. For example:(((
62 {{code language="javascript"}}
63 // Construct a Nested Space reference
64 var reference = new XWiki.SpaceReference('wiki', ['space1', 'space2']);
65 expect(XWiki.Model.serialize(reference)).toEqual('wiki:space1.space2');
66 reference = new XWiki.DocumentReference('wiki', ['space1', 'space2'], 'page');
67 expect(XWiki.Model.serialize(reference)).toEqual('wiki:space1.space2.page');
68 // Construct a non-Nested Space reference
69 reference = new XWiki.SpaceReference('wiki', 'space');
70 expect(XWiki.Model.serialize(reference)).toEqual('wiki:space');
71 // Try passing non-valid space parameters
72 expect(function() {new XWiki.SpaceReference('wiki', [])}).toThrow('Missing mandatory space name or invalid type for: []');
73 expect(function() {new XWiki.SpaceReference('wiki', 12)}).toThrow('Missing mandatory space name or invalid type for: [12]');
74 {{/code}}
75 )))
76 * A new ##XWiki.EntityReference.equals()## method has been added. For example:(((
77 {{code language="javascript"}}
78 var reference1 = new XWiki.DocumentReference('wiki', ['space1', 'space2'], 'page');
79 var reference2 = new XWiki.DocumentReference('wiki', ['space1', 'space2'], 'page');
80 var reference3 = new XWiki.DocumentReference('wiki2', ['space1', 'space2'], 'page');
81 expect(reference1.equals(reference2)).toBe(true);
82 expect(reference1.equals(reference3)).toBe(false);
83 {{/code}}
84 )))
85 * A new ##XWiki.EntityReference.fromJSONObject(obejct)## has been added to create a Javascript ##XWiki.EntityReference## from a Java ##EntityReference## directly serialized as JSON:(((
86 {{code language="javascript"}}
87 var reference = XWiki.EntityReference.fromJSONObject(jsonText.evalJSON());
88 {{/code}}
89 )))
90 * A new ##XWiki.EntityReferenceTree## class which partially mimic Java ##EntityReferenceTree## on Javascript side. There is not much yet, it was mostly introduced to make easier to manipulate a serailized Java ##EntityReferenceTree##
91
92 == Deprecated and Retired projects ==
93
94 * [[OSCache based cache extension>>extensions:Extension.Cache OSCache]] moved to https://github.com/xwiki-contrib/xwiki-platform-cache-oscache
95
96 == Upgrades ==
97
98 The following dependencies have been upgraded:
99
100 * [[Groovy 2.4.4>>http://jira.xwiki.org/browse/XCOMMONS-831]]
101 * [[Tika 1.9>>http://jira.xwiki.org/browse/XWIKI-12274]]
102 * [[JRuby 1.7.21>>http://jira.xwiki.org/browse/XWIKI-12344]]
103 * [[Jackson 2.6.0>>http://jira.xwiki.org/browse/XCOMMONS-833]]
104 * [[Hibernate Validator 4.3.2>>http://jira.xwiki.org/browse/XWIKI-12365]]
105
106 == Miscellaneous ==
107
108 * 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.
109 * In the [[Active Install Extension>>extensions:Extension.Active Installs Server Application]], a new Velocity Macro has been introduced to compute the number of Active Installs having a specific Extension. Example usage:(((
110 {{code language="none"}}
111 {{include reference="ActiveInstalls.ExtensionCount"/}}
112
113 {{velocity}}
114 #set ($extensionIds = [
115 'org.xwiki.contrib:xwiki-totem-application',
116 'jsimard:event-reporter-application',
117 'mouhb:likeapplication'
118 ])
119 |=Extension Id|=Count
120 #foreach($extensionId in $extensionIds)
121 #countActiveInstallsUsingExtension($extensionId $count)
122 |$extensionId|$count
123 #end
124 {{/velocity}}
125 {{/code}}
126 )))
127 * Better support of non-DOCUMENT ##EntityReferences## in ##DocumentReferenceConverter##. It now behaves like ##XWiki#getDocument(EntityReference)##
128
129 = Translations =
130
131 The following translations have been updated:
132
133 {{language codes="none, none"/}}
134
135 = Tested Browsers & Databases =
136
137 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
138
139 = Performances tests compared to <last super stable version> =
140
141 <a summary of the comparison with latest super stable version>
142
143 More details on <link to the test report>.
144
145 = Known issues =
146
147 * [[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]]
148
149 = Backward Compatibility and Migration Notes =
150
151 == General Notes ==
152
153 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.
154
155 == Issues specific to XWiki <version> ==
156
157 <issues specific to the project>
158
159 == API Breakages ==
160
161 The following APIs were modified since <project> <version - 1>:
162
163 {{code language="none"}}
164 <clirr output here>
165 {{/code}}

Get Connected