Version 26.1 by Vincent Massol on 2015/08/07

Hide last authors
Eduard Moraru 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
Vincent Massol 24.1 7 The focus of this release was on fixing issues introduced in 7.2 Milestone 1 with the new Nested Document/Nested Spaces features and to continue adding support for this feature in various existing features (using a tree for the Import UI instead of a list, new DB table to have performant Space queries, start of Nested Spaces support in the XWiki JS APIs, etc). Another major feature added was the new Script permission to allow forbidding Script execution to specific Users or Groups.
Eduard Moraru 1.1 8
Vincent Massol 24.1 9 = New and Noteworthy (since XWiki 7.2 Milestone 1) =
Eduard Moraru 1.1 10
Vincent Massol 24.2 11 [[Full list of issues fixed and Dashboard for 7.2>>http://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=13390]].
Eduard Moraru 1.1 12
Eduard Moraru 11.2 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
Vincent Massol 24.1 17 However, for backward-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.
Eduard Moraru 11.2 18
19 {{image reference="scriptRightsExplicitlyAllowedInXWikiPreferences.png"/}}
20
Eduard Moraru 1.1 21 == Miscellaneous ==
22
Vincent Massol 24.1 23 * Import UI move to new standard tree(((
Thomas Mortagne 20.1 24 {{image reference="import.png"/}}
Vincent Massol 24.1 25 )))
Thomas Mortagne 23.1 26 * The size of the Job status cache is now configurable. See ##job.statusCacheSize## property in ##xwiki.properties## files.
Vincent Massol 26.1 27 * The Spaces macro (which lists all Spaces) is now working fine when there are Nested Spaces (some links were failing).
28 * The LiveTable macro is now working fine when there are Nested Spaces (some links were failing).
Eduard Moraru 1.1 29
Vincent Massol 24.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+%227.2-milestone-2%22&tempMax=1000]] fixed in this release.
Eduard Moraru 1.1 31
32 = For Developers =
33
Thomas Mortagne 8.1 34 == New Space/XWikiSpace table ==
35
Vincent Massol 24.1 36 A [[new table dedicated to Spaces has been introduced>>platform:DevGuide.DatabaseSchema]], in order to have performant and scalable Space-related queries (like supporting getting paginated Space which is useful for the Document Tree macro for example).
Thomas Mortagne 8.1 37
Thomas Mortagne 7.2 38 == Queries improvement ==
Eduard Moraru 1.1 39
Thomas Mortagne 7.2 40 === Allow executing complete SELECT queries ===
Eduard Moraru 1.1 41
Vincent Massol 24.1 42 In HQL and XWQL it's now possible to execute full ##SELECT## queries without Programming Right as long as you follow some rules currently defined in ##com.xpn.xwiki.internal.store.hibernate.query.HqlQueryUtils##, which contains a list of the database field allowed in the SELECT clause. Namely:
43 * For the ##Document##/##XWikiDocument## table: ##fullName##, ##name##, ##space##, ##language##, ##defaultLanguage##, ##translation##, ##hidden##
44 * For the ##Space##/##XWikiSpace## table: ##reference##, ##name##, ##parent##, ##hidden##
Thomas Mortagne 7.2 45
Vincent Massol 24.1 46 This is also true for the Named Queries located in the ##queries.hbm.xml## file.
Thomas Mortagne 7.2 47
Vincent Massol 24.1 48 === New Secure Query ===
Thomas Mortagne 10.1 49
Vincent Massol 24.1 50 The right to execute or not some Query is now controlled by each ##org.xwiki.query.QueryExecutor##.
Thomas Mortagne 7.2 51
Vincent Massol 24.1 52 Anyone can ask the executor to check or ignore Right through the new ##org.xwiki.query.SecureQuery## extending ##org.xwiki.query.Query##:
Thomas Mortagne 7.2 53
Vincent Massol 24.1 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)
Thomas Mortagne 7.2 56
Vincent Massol 9.3 57 == JS API Improvements ==
Vincent Massol 9.1 58
Vincent Massol 24.1 59 * It's now possible to create a Nested Spaces Reference using XWiki's Javascript API. For example:(((
Vincent Massol 9.1 60 {{code language="javascript"}}
Vincent Massol 9.2 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]');
Vincent Massol 9.1 72 {{/code}}
73 )))
Vincent Massol 9.2 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 )))
Thomas Mortagne 21.1 83 * A new ##XWiki.EntityReference.fromJSONObject(obejct)## has been added to create a Javascript ##XWiki.EntityReference## from a Java ##EntityReference## directly serialized as JSON:(((
84 {{code language="javascript"}}
85 var reference = XWiki.EntityReference.fromJSONObject(jsonText.evalJSON());
86 {{/code}}
87 )))
Vincent Massol 24.1 88 * A new ##XWiki.EntityReferenceTree## JS class has been added, which partially mimics the Java ##EntityReferenceTree## Class. It's still missing features though as it was introduced mostly to make it easier to manipulate a serialized Java ##EntityReferenceTree##.
Vincent Massol 9.1 89
Eduard Moraru 1.1 90 == Miscellaneous ==
91
Vincent Massol 24.1 92 * 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.
Thomas Mortagne 14.1 93 * 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:(((
Vincent Massol 13.1 94 {{code language="none"}}
95 {{include reference="ActiveInstalls.ExtensionCount"/}}
Eduard Moraru 1.1 96
Vincent Massol 13.1 97 {{velocity}}
98 #set ($extensionIds = [
99 'org.xwiki.contrib:xwiki-totem-application',
100 'jsimard:event-reporter-application',
101 'mouhb:likeapplication'
102 ])
103 |=Extension Id|=Count
104 #foreach($extensionId in $extensionIds)
105 #countActiveInstallsUsingExtension($extensionId $count)
106 |$extensionId|$count
107 #end
108 {{/velocity}}
109 {{/code}}
110 )))
Thomas Mortagne 17.1 111 * Better support of non-DOCUMENT ##EntityReferences## in ##DocumentReferenceConverter##. It now behaves like ##XWiki#getDocument(EntityReference)##
Vincent Massol 13.1 112
Vincent Massol 24.1 113 == Deprecated and Retired projects ==
114
115 * The [[OSCache-based Cache Extension>>extensions:Extension.Cache OSCache]] has been [[moved to ##xwiki-contrib##>>https://github.com/xwiki-contrib/xwiki-platform-cache-oscache]] since we've been using the Infinispan implementation for a while now and the XWiki Core developers don't intend to continue supporting the OSCache-based one (it can be maintained by the Community, by whoever's interested in supporting it).
116
117 == Upgrades ==
118
119 The following dependencies have been upgraded:
120
121 * [[Groovy 2.4.4>>http://jira.xwiki.org/browse/XCOMMONS-831]]
122 * [[Tika 1.9>>http://jira.xwiki.org/browse/XWIKI-12274]]
123 * [[JRuby 1.7.21>>http://jira.xwiki.org/browse/XWIKI-12344]]
124 * [[Jackson 2.6.0>>http://jira.xwiki.org/browse/XCOMMONS-833]]
125 * [[Hibernate Validator 4.3.2>>http://jira.xwiki.org/browse/XWIKI-12365]]
126
Eduard Moraru 1.1 127 = Translations =
128
129 The following translations have been updated:
130
131 {{language codes="none, none"/}}
132
133 = Tested Browsers & Databases =
134
135 {{include reference="TestReports.ManualTestReportTemplateSummary"/}}
136
137 = Performances tests compared to <last super stable version> =
138
139 <a summary of the comparison with latest super stable version>
140
141 More details on <link to the test report>.
142
143 = Known issues =
144
145 * [[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]]
146
147 = Backward Compatibility and Migration Notes =
148
149 == General Notes ==
150
151 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.
152
Vincent Massol 24.1 153 == Issues specific to XWiki 7.2 Milestone 2 ==
Eduard Moraru 1.1 154
155 <issues specific to the project>
156
157 == API Breakages ==
158
Vincent Massol 24.1 159 The following APIs were modified since XWiki 7.2 Milestone 1:
Eduard Moraru 1.1 160
161 {{code language="none"}}
162 <clirr output here>
163 {{/code}}

Get Connected