Hide last authors
Thomas Mortagne 1.1 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
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.
Vincent Massol 57.3 7 The main focus of this milestone is the introduction of support for Nested Documents in XWiki's UI together with an important amount of changes in the platform and default Extensions to better support this.
Thomas Mortagne 1.1 8
Vincent Massol 51.1 9 {{error}}
Thomas Mortagne 71.1 10 We've discovered a [[blocking issue after the release>>https://jira.xwiki.org/browse/XWIKI-12315]]: if you use a distribution that doesn't provide the UI the Distribution Wizard will hang when trying to install the UI. We're analyzing the issue and will provide a fix quickly. Note that the issue only concerns the Distribution Wizard.
Vincent Massol 69.1 11
12 Also note that since this version introduced the concept of Nested Spaces and Nested Documents, several existing features are not working anymore (e.g. Search Suggest, etc). We recommend to use this version only for testing Nested Spaces.
Vincent Massol 51.1 13 {{/error}}
Thomas Mortagne 1.1 15 = New and Noteworthy (since XWiki 7.1) =
Thomas Mortagne 71.1 17 [[Full list of issues fixed and Dashboard for 7.2>>https://jira.xwiki.org/secure/Dashboard.jspa?selectPageId=13390]].
Thomas Mortagne 1.1 18
Vincent Massol 38.1 19 == Nested Documents ==
Thomas Mortagne 1.1 20
Vincent Massol 58.3 21 It's now possible to create wiki pages inside other wiki pages. More specifically we've decided to drop the concept of Space in the UI (it's still there at the API/platform level) and instead, to replace it with the concept of Nested Documents.
Thomas Mortagne 1.1 22
Vincent Massol 69.2 23 We've also decided to drop the concept of Parent/Child relationship since it was too complex for end users to have 2 hierarchies: the Space/Page hierarchy and the Parent/Child hierarchy. The Parent/Child hierarchy also had limitations: you couldn't inherit page permissions for example. Thus the idea is to have a single hierarchy based on Nested Documents.
Vincent Massol 38.1 24
Vincent Massol 59.1 25 Advantages of Nested Documents:
Eduard Moraru 62.2 26
Vincent Massol 59.1 27 * The URL reflects the page hierarchy
28 * Finer-grained control: Ability to set permissions at each level
29 * Generally speaking, a nicer and simpler way to organize your content hierarchically
30 * Moving and Deleting pages updates the hierarchy
Vincent Massol 53.1 32 Terminology:
Vincent Massol 70.2 34 * **Nested Document** (a.k.a **Non-Terminal Document**): This is a wiki page that can have children pages. Technically a Nested Document is implemented as a Nested Space (i.e. a **WebHome** page).
Vincent Massol 58.3 35 * **Non-Nested Document** (a.k.a **Terminal Document**): This a wiki page that cannot have children pages. Applications and script can create Terminal Documents. Advanced Users will also be able to create Terminal Documents from the UI. Standard Users will only be able to create Nested Documents.
Vincent Massol 70.2 36 * **Nested Space**: A Space which has another Space as parent. As mentioned above, a Nested Document is technically implemented as a Nested Space. You will used the term Nested Space when speaking technically about XWiki APIs for example but when talking about UI you should favor using the term Nested Document instead.
Vincent Massol 53.1 37
Vincent Massol 70.1 38 For more information, see [[Content Organization>>platform:Features.ContentOrganization||anchor="HHistory"]].
Vincent Massol 38.1 40 Current status:
Thomas Mortagne 40.1 41
Vincent Massol 38.1 42 * In this milestone the UI has not been updated yet but a lot of the required changes have been done in the backend code to support Nested Documents.
43 * What you can try today:
Vincent Massol 38.2 44 ** Typing URLs with Nested Documents. For example typing {{{http://localhost:8080/xwiki/bin/view/A/B/C}}} and then clicking Edit will allow you to create a Page C inside pages A and B (which don't need to exist).
Vincent Massol 53.1 45 ** Creating Nested Documents with "Add > Page" should also work even though the UI will be improved in the next version.
Vincent Massol 52.1 46 ** Moving/Deleting Nested Documents work at the script level but not at the UI level yet, see below for examples you can try out.
Vincent Massol 53.1 47 ** Importing/Exporting Nested Documents should work fine even though the UI will be improved in the next version.
Vincent Massol 54.1 48 ** When you type a URL to a Nested Document (i.e. to a Space), you get redirected to the proper Document. For example typing {{{http://localhost:8080/xwiki/bin/view/A/B/C}}} will lead you to Document ##A.B.C.WebHome## (unless Document ##A.B.C## exists)
Vincent Massol 55.1 49 * The Parent/Child relationship is still used in this version and will be turned off in the next one (7.2M2)
Eduard Moraru 50.5 51 == Script right ==
Vincent Massol 57.1 53 A new Script Right has been added to allow controlling who has the right to write Scripts. Specifically anyone with Edit rights can edit a page and write a Script in it. However, when the page is rendered the script will only execute if the last author of the page has the Script right.
Eduard Moraru 50.5 54
Vincent Massol 57.1 55 In this version, The Edit right implies the Script right but in the next version (7.2M2) we'll change that so that by default the Script right is not granted to everyone having Edit right.
Vincent Massol 65.1 57 {{image reference="scriptright.png"/}}
59 Example when the author of a script doesn't have the Script right:
Eduard Moraru 58.2 61 {{image reference="scriptRightsErrorNotAllowed.png"/}}
Thomas Mortagne 1.1 63 == Miscellaneous ==
Marius Dumitru Florea 58.4 65 * When a space home page has an empty title (and the space home page doesn't have a sheet or the sheet doesn't control the title) then the displayed title is now the space name instead of 'WebHome'.
Marius Dumitru Florea 67.1 66 * The [[Document Tree Macro>>extensions:Extension.Document Tree Macro]] has a new parameter called ##showSpaceAsDocument## which allows you to merge the space nodes with the space home page nodes. This is a first step towards showing nested documents in the tree, which is planned for 7.2.
Eduard Moraru 49.6 67 * The list of available template providers is now sorted by document full name.
Thomas Mortagne 1.1 68
Thomas Mortagne 71.1 69 See the [[full list of JIRA issues>>https://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-1%22&tempMax=1000]] fixed in this release.
Thomas Mortagne 1.1 70
71 = For Developers =
Vincent Massol 31.1 73 == Nested Spaces ==
Thomas Mortagne 15.1 74
Vincent Massol 31.1 75 Since Nested Spaces were already planned and supported in APIs like ##DocumentReference## there are not too many changes for those who were using recent APIs but there is still some and here are the main ones.
Thomas Mortagne 15.1 76
Vincent Massol 47.2 77 === Space Reference instead of Space name ===
Thomas Mortagne 15.1 78
Vincent Massol 47.2 79 The heart of the implementation is that the field that used to contain the unique document space now contain the possibly Nested Space Reference. In practice it means that:
Thomas Mortagne 15.1 80
Vincent Massol 31.1 81 * "##.##" (dot), "##:##" (colon) and "##\##" (baskslash) characters, which are part of a Space name will now be escaped (using the "##\##" character) in the ##space## (##XWD_WEB##) field from the Document's table in the Database. For example a space named ##Space:with.special\char## will be stored as ##{{{Space\:with\.special\\char}}}##.
Vincent Massol 47.2 82 * Same as for the database, the ##XWikiDocument/Document#getSpace()## methods now return a serialized Reference to the Space instead of what used to be the unique Space name (basically it return what's in the database). Same logic for ##XWikiDocument#setSpace()##. Those field have been deprecated a long time ago but they are still used in lots of places...
83 * Various APIs are also affected by this Space name to Space Reference input change:
Thomas Mortagne 30.1 84 ** ##XWiki#getSpaceDocsName## methods (both in the public and private XWiki API)
Vincent Massol 47.2 85 ** All the default ##XWikiURLFactory## implementation methods accepting a Space as parameter have been modified to accept a serialized Space Reference. Extensions/code implementing ##XWikiURLFactory## (or extending classes implementing ##XWikiURLFactory## such as ##XWikiServletURLFactory##) will need to be modified to handle nested spaces passed in the ##space## parameter of the various APIs. Here's how to parse Spaces passed as a String:(((
Vincent Massol 31.1 86 {{code language="java"}}
87 private EntityReferenceResolver<String> relativeEntityReferenceResolver =
88 Utils.getComponent(EntityReferenceResolver.TYPE_STRING, "relative");
89 ...
90 or
91 ...
92 @Inject
93 @Named("relative")
94 private EntityReferenceResolver<String> relativeEntityReferenceResolver;
95 ...
96 private List<String> extractSpaceNames(String spaces)
97 {
98 List<String> spaceNames = new ArrayList<>();
99 // Parse the spaces list into Space References
100 EntityReference spaceReference = this.relativeEntityReferenceResolver.resolve(spaces, EntityType.SPACE);
101 for (EntityReference reference : spaceReference.getReversedReferenceChain()) {
102 spaceNames.add(reference.getName());
103 }
104 return spaceNames;
105 }
106 {{/code}}
107 )))
108 ** Extensions/code implementing ##ExportURLFactoryActionHandler## will also need to be modified to handle nested Spaces passed in the ##space## parameter.
Thomas Mortagne 71.1 109 * Extensions/code implementing ##EntityReferenceSerializer## or ##DocumentReferenceResolver## must now handle Nested Spaces (in the past they were already supposed to handle Nested Spaces but since it was not used they could take shortcuts and it wasn't visible. It's now going to fail, see [[XWIKI-12191>>https://jira.xwiki.org/browse/XWIKI-12191]]).
Thomas Mortagne 15.1 110
Guillaume Delhumeau 16.1 111 === Space separator properly taken into account ===
Thomas Mortagne 15.1 112
Vincent Massol 47.2 113 The Reference syntax specification was already indication that "##.##" was supposed to be escaped in the space part of the Reference but it was not really taken into account so not escaping it was not making any difference. This is now fixed in the various standard String Reference resolvers so a Reference that don't follow the specification and did not escaped the "##.##" in the space part will be cut is several nested spaces. Anything that was serialized with one of the standard serializers was properly escaped so not worry here, the issue will be more for hand written or hardcoded String References.
Thomas Mortagne 15.1 114
Thomas Mortagne 26.1 115 === New XAR format ===
117 To support exporting/importing nested spaces some changes has been made to the XAR format. The format remain upward and downward compatible (except that you won't get nested spaces in your < 7.2 instance obviously).
119 Two new attributes has been added to the ##<xwikidoc>## root XML element
Vincent Massol 47.2 121 * ##reference##: the complete local Reference of the document in standard Reference format. ##<web>## and ##<name>## are deprecated (but still set). ##<web>## keep containing the (unescaped) space name when there is only one space and will contain the space Reference when there is several (when imported in a < 7.2 instance a document exported from a nested space will end up in a space having as name the space reference).
122 * ##locale##: the locale of the document. ##<language>## is deprecated. It was not technically needed in the context of nested spaces but it makes having the Reference as attribute more consistent. It also make getting all the entries from a new format XAR easier and faster since document space and name would be placed anywhere in the document.
Thomas Mortagne 26.1 123
Guillaume Delhumeau 43.1 124 === REST module ===
Thomas Mortagne 44.1 125
Vincent Massol 48.1 126 * The REST module now supports Nested Spaces. Example of url to access the page ##A.B.C.MyPage##: ##/xwiki/rest/wikis/xwiki/spaces/A/spaces/B/spaces/C/pages/MyPage##.
Guillaume Delhumeau 43.1 127
Vincent Massol 48.1 128 === URL modules ===
130 The URL modules have been modified to support Nested Spaces. As a consequence the [[URL formats supported by the ##standard## URL scheme have been modified>>extensions:Extension.Standard URL API]].
Vincent Massol 52.1 132 === New Rename/Delete Jobs ===
134 New code has been developed to support Nested Documents/Nested Spaces and Script Services have been provided and they now run inside Jobs to better handle the fact that they are long-running operations. However the Rename/Delete feature in the UI do not yet call this new code (this is planned for 7.2M2 and after).
136 However you can start to test this by using the following Script Services APIs:
138 * Copy a Space(((
139 {{code language="none"}}
140 #set ($source = $services.model.resolveSpace('Path.To.Source'))
141 #set ($destination = $services.model.resolveSpace('Path.To.New.Parent'))
142 $services.refactoring.copy($source, $destination).join()
143 {{/code}}
144 )))
145 * Copy a Space As(((
146 {{code language="none"}}
147 #set ($source = $services.model.resolveSpace('Path.To.Source'))
148 #set ($destination = $services.model.resolveSpace('Path.To.New.Name'))
149 $services.refactoring.copyAs($source, $destination).join()
150 {{/code}}
151 )))
152 * Move a Space(((
153 {{code language="none"}}
154 #set ($source = $services.model.resolveSpace('Path.To.Source'))
155 #set ($destination = $services.model.resolveSpace('Path.To.New.Parent'))
156 $services.refactoring.move($source, $destination).join()
157 {{/code}}
158 )))
159 * Move a Document(((
160 {{code language="none"}}
161 #set ($source = $services.model.resolveDocument('Path.To.Source.WebHome'))
162 #set ($destination = $services.model.resolveSpace('Path.To.New.Parent'))
163 $services.refactoring.move($source, $destination).join()
164 {{/code}}
165 )))
166 * Rename a Space(((
167 {{code language="none"}}
168 #set ($source = $services.model.resolveSpace('Path.To.Source'))
169 $services.refactoring.rename($source, 'NewName').join()
170 {{/code}}
171 )))
172 * Rename a Document(((
173 {{code language="none"}}
174 #set ($source = $services.model.resolveDocument('Path.To.Source.WebHome'))
175 $services.refactoring.rename($source, 'NewName').join()
176 {{/code}}
177 )))
178 * Delete a Document(((
179 {{code language="none"}}
180 #set ($source = $services.model.resolveDocument('Path.To.Source.WebHome'))
181 $services.refactoring.delete($source).join()
182 {{/code}}
183 )))
184 * Delete a Space(((
185 {{code language="none"}}
186 #set ($source = $services.model.resolveSpace('Path.To.Source'))
187 $services.refactoring.delete($source).join()
188 {{/code}}
189 )))
190 * Convert a Terminal Document to a Nested Document(((
191 {{code language="none"}}
192 #set ($source = $services.model.resolveDocument('Path.To.Page'))
193 $services.refactoring.convertToNestedDocument($source).join()
194 {{/code}}
195 )))
196 * Convert a Nested Document to a Terminal Document(((
197 {{code language="none"}}
198 #set ($source = $services.model.resolveDocument('Path.To.Source.WebHome'))
199 $services.refactoring.convertToTerminalDocument($source).join()
200 {{/code}}
201 )))
Eduard Moraru 62.2 203 === New create action parameters and logic ===
205 The create action now accepts a ##spaceReference## parameter and a ##name## parameter, together with an optional ##tocreate=terminal## parameter (usable on non-terinal documents). The previous space parameters was not scalable in the context of Nested Spaces since it was just a top-level space name so it did not allow the creation of deeper space levels. More details are available in the [[create action's documentation>>platform:DevGuide.Standard URL Format||anchor="HAction:create"]].
Eduard Moraru 63.2 207 These logic is now also available in the improved create UI, with the terminal pages option appearing only for advanced users and being checked or unchecked by default, depending on the type of the current document:
208 {{image reference="createUINestedDocuments.png"/}}
Vincent Massol 47.2 210 == New Reference-related APIs ==
Thomas Mortagne 1.1 211
Vincent Massol 47.2 212 Various new API around References has been introduced while adding support for nested spaces.
Thomas Mortagne 1.1 213
Vincent Massol 47.2 214 === Complete References Providers ===
Thomas Mortagne 9.1 215
Vincent Massol 47.2 216 Complete References Providers (for DocumentReference, SpaceReference and WikiReference) with default or ##current## hints. They allow getting complete Reference created from each default or current part of those references (for example in SpaceReference you end up with the space of the XWikiContext document and the XWikiContext wiki)
Thomas Mortagne 9.1 217
Thomas Mortagne 6.1 218 {{code language="java"}}
219 @Inject
220 Provider<DocumentReference> defaultDocumentReference;
Thomas Mortagne 4.1 221
Thomas Mortagne 6.1 222 @Inject
223 @Named("current")
224 Provider<DocumentReference> currentDocumentReference;
225 {{/code}}
Thomas Mortagne 9.1 226
227 === org.xwiki.model.reference.EntityReferenceProvider ===
229 ##org.xwiki.model.reference.EntityReferenceProvider## replaces ##org.xwiki.model.reference.EntityReferenceValueProvider##. It's essentially the same thing but with ##EntityReference## instead of string which allow getting multiple spaces when you ask for the current ##EntityType.SPACE## for example.
Thomas Mortagne 6.1 231 {{code language="java"}}
232 @Inject
233 EntityReferenceProvider provider;
234 {{/code}}
Vincent Massol 47.2 236 === Properly support any kind of References in getDocument and getURL ===
Thomas Mortagne 9.1 237
Vincent Massol 47.2 238 ##com.xpn.xwiki.XWiki#getDocument(EntityReference)## and ##com.xpn.xwiki.api.XWiki#getDocument(EntityReference)## support any kind of Reference properly (e.g. a Space Reference will return the space home page, an Object Reference will return the Object Document Reference, etc).
Thomas Mortagne 9.1 239
Guillaume Delhumeau 35.1 240 Same for ##com.xpn.xwiki.XWiki#getURL(EntityReference)## and ##com.xpn.xwiki.api.XWiki#getURL(EntityReference)##.
Thomas Mortagne 9.1 242 === New helpers in EntityReference ===
Vincent Massol 47.2 244 * ##boolean equals(EntityReference otherReference, EntityType to)##: same as equals but only take into account Reference parts up to the passed entity type (included)
245 * ##boolean equals(EntityReference otherReference, EntityType from, EntityType to)##: same as equals but only take into account Reference parts between passed entity types (included)
Thomas Mortagne 9.1 246 * ##boolean equalsNonRecursive(EntityReference otherReference)##: same as equals but does not take into account the parent
Thomas Mortagne 27.1 248 === New helpers in LocalDocumentReference ===
Vincent Massol 47.2 250 * ##LocalDocumentReference(String pageName, EntityReference spaceReference)##: allowed created a LocalDocumentReference from a Space Reference instead of just the space name
Thomas Mortagne 27.1 251
Thomas Mortagne 34.1 252 === org.xwiki.model.reference.SpaceReferenceResolver ===
254 New default ##String## and ##EntityReference## based SpaceReferenceResolver has been added. It's the same behavior then ##DocumentReferenceBehavior## but for spaces.
256 {{code language="java"}}
257 @Inject
258 SpaceReferenceResolver<String> stringResolver;
260 @Inject
261 SpaceReferenceResolver<EntityReference> referenceResolver;
262 {{/code}}
Thomas Mortagne 23.1 264 === New model Script Service helpers ===
Thomas Mortagne 22.1 265
Vincent Massol 47.2 266 * new help to escape an entity name according to default Reference syntax as in:(((
Thomas Mortagne 22.1 267 {{code language="velocity"}}
Thomas Mortagne 23.1 268 $services.model.escape('some.space:with\specialchars', 'SPACE')
Thomas Mortagne 22.1 269 {{/code}}
271 will print
273 {{code language="nonde"}}
274 some\.space\:with\\specialchars
275 {{/code}}
276 )))
Marius Dumitru Florea 60.1 277 * you can retrieve a node from an ##EntityReferenceTree## using its reference:(((
278 {{code language="velocity"}}
279 #set ($alice = $services.model.resolveDocument('wiki:Users.Alice.WebHome'))
280 #set ($bob = $services.model.resolveDocument('wiki:Users.Directory'))
281 #set ($tree = $services.model.toTree($alice, $bob))
282 #set ($usersNode = $tree.get($bob.lastSpaceReference))
283 {{/code}}
284 )))
Thomas Mortagne 22.1 285
Guillaume Delhumeau 41.1 286 === New components to generate REST URLs ===
288 * The component ##RestURLGenerator## has been added. Its role, in the long terme, is to generate a REST URL for any kind of EntityReference. It currently handles ##DocumentReference## and ##SpaceReference##.
289 * The corresponding script service has been added: ##$services.rest## with the method ##$services.rest.url($entityReference)##.
Marius Dumitru Florea 62.1 291 === Resolve nested spaces in JavaScript ===
293 {{code language="js"}}
294 var spaceReference = XWiki.Model.resolve('A.B.C', XWiki.EntityType.SPACE);
295 spaceReference.getReversedReferenceChain().map(function(entityReference) {
296 return entityReference.name;
297 }).join(' > ');
298 // Produces: A > B > C
299 {{/code}}
301 See the [[JavaScript API documentation>>platform:DevGuide.JavaScriptAPI||anchor="HWorkwithEntityReferences"]] for more details.
Thomas Mortagne 4.1 303 == New readonly XWikiContext provider ==
305 You can inject a new "readonly" XWikiContext the following way:
307 {{code language="java"}}
308 @Inject
309 @Named("readonly")
Guillaume Delhumeau 25.1 310 Provider<XWikiContext> roXWikiContextProvider;
Thomas Mortagne 4.1 311 {{/code}}
Vincent Massol 11.2 313 The difference with default provider is that the readonly one won't try to create a new XWikiContext and will return null if it can't find any. It's been introduce for some low level components that were used during XWikiContext creation but in general it should be used by any component that only search for some XWikiContext property that might be null even in a valid XWikiContext.
Thomas Mortagne 4.1 314
Thomas Mortagne 1.1 315 == Upgrades ==
317 The following dependencies have been upgraded:
Thomas Mortagne 71.1 319 * [[httpclient 4.5>>https://jira.xwiki.org/browse/XCOMMONS-815]]
320 * [[cssparser 0.9.16>>https://jira.xwiki.org/browse/XCOMMONS-817]]
321 * [[less4j 1.12.0>>https://jira.xwiki.org/browse/XWIKI-12161]]
322 * [[Joda-Time 2.8.1>>https://jira.xwiki.org/browse/XWIKI-12159]]
323 * [[Bootstrap 3.3.5>>https://jira.xwiki.org/browse/XWIKI-12211]]
324 * [[Infinispan 7.2.3>>https://jira.xwiki.org/browse/XWIKI-12227]]
325 * [[HSQLDB 2.3.3>>https://jira.xwiki.org/browse/XE-1491]]
326 * [[JGroups 3.6.4>>https://jira.xwiki.org/browse/XWIKI-12215]]
327 * [[Jackson 2.5.4>>https://jira.xwiki.org/browse/XCOMMONS-828]]
Thomas Mortagne 1.1 328
329 == Miscellaneous ==
Eduard Moraru 25.2 331 * Objects, attachments and the document's class are now clearly not considered content, but metadata. Thus, any change in these will set the document's (XWikiDocument) metadataDirty flag to true and not touch the document's contentDirty flag unless there is an actual change in the document's content or title fields. This is also in line with the original intent of the contentAuthor document field. The direct impact of this is that the contentAuthor field will be updated only when the content is changed and thus the programming/script rights of a document will be changed much less often than before and much less by accident.
Thomas Mortagne 32.1 332 * custom Maven properties which have a special meaning (like ##xwiki.extension.features##) are not ##duplicated## in Extension custom properties anymore
Thomas Mortagne 33.1 333 * standard fields names have been added to ##org.xwiki.extension.rating.RatingExtension##
Thomas Mortagne 44.1 334 * URL configuration now use default ConfigurationSource provider instead of only ##xwiki.properties## one which means it's possible to overwrite properties for each wiki among other things
Vincent Massol 47.1 335 * Added ability to set and change the URL scheme to use in the Execution Context. This allows code to dynamically change the generated URLs when Rendering a document (useful when performing an Export for example).
Vincent Massol 46.2 336 * Started a new ##filesystem## URL Scheme for exporting Resources to the filesystem and generating URLs to them (useful for the HTML Export for example). At the moment, only the ##webjars## Resource Type is using it and all other Resource Types are using the old ##XWikiURLFactory## class.
Eduard Moraru 49.3 337 * A new DocumentModelBridge.getContentAuthorReference() method has been added to allow accessing the content author of a document without depending on oldcore.
Thomas Mortagne 71.1 338 * Deprecate XWiki.parseContent(...) since it is was misleading and outdated. Its documentation mentioned that the passed content is parsed as velocity code, but it was actually doing much more than that and had some unwanted side-effect. Instead, use the parse/renderer that is specific to the type of content you have. See more details in [[XWIKI-12299>>https://jira.xwiki.org/browse/XWIKI-12299]].
Marius Dumitru Florea 66.1 339 * A new script service is available to retrieve the status of a specified job or the status of the currently running job from a specified group. See the [[Job Module>>extensions:Extension.Job Module||anchor="HScriptService"]] documentation for details.
Thomas Mortagne 1.1 340
341 = Translations =
343 The following translations have been updated:
Eduard Moraru 49.7 345 {{language codes="fr, sv, pt_BR"/}}
Thomas Mortagne 1.1 346
Ramona Conoro 68.1 347
Thomas Mortagne 1.1 348 = Tested Browsers & Databases =
Ramona Conoro 68.1 350 {{include reference="TestReports.ManualTestReportSummaryXWiki72M1"/}}
Thomas Mortagne 1.1 351
Ramona Conoro 68.1 352 {{comment}}
Thomas Mortagne 1.1 353 = Performances tests compared to <last super stable version> =
355 <a summary of the comparison with latest super stable version>
357 More details on <link to the test report>.
Eduard Moraru 49.9 358 {{/comment}}
Thomas Mortagne 1.1 359
360 = Known issues =
Thomas Mortagne 71.1 362 * [[Bugs we know about>>https://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]]
Thomas Mortagne 1.1 363
364 = Backward Compatibility and Migration Notes =
366 == General Notes ==
368 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.
Thomas Mortagne 11.1 370 == Issues specific to XWiki 7.2M1 ==
Thomas Mortagne 1.1 371
Thomas Mortagne 15.1 372 === Nested spaces ===
Thomas Mortagne 12.1 373
Thomas Mortagne 45.1 374 See [[previous Nested spaces section>>||anchor="HNestedSpaces"]] for details on what changes in the way some API and the database are dealing with the Document Space.
Thomas Mortagne 12.1 375
Vincent Massol 49.2 376 Note that some existing Extensions are impacted and may break slightly: Extensions taking some user input and creating Spaces based on that will most likely display {{{"\."}}}, {{{"\:"}}} and {{{"\\"}}} in the UI. Unless they already clean the user input and remove ".", ":" and "\" characters. So for example if a user enter a Space name of "my.space":
Eduard Moraru 49.3 377
Vincent Massol 49.1 378 * before 7.2M1: the Extension would create/display a Space named "my.space"
379 * after 7.2M1: the Extension will create/display a Space named "my\.space"
Vincent Massol 39.1 381 === URLs ===
383 In order to support Nested Documents and have the ability that typing a URL such as ##/A## will lead to ##A.WebHome## we have stopped supporting URLs that don't specify the ##view## action (when ##xwiki.showviewaction=1##). Thus URLs such as ##/xwiki/bin/Something## now need to be written as ##/xwiki/bin/view/Something##. If ##xwiki.showviewaction=0## then you can still write ##/xwiki/bin/<something>## provided that ##<something>## isn't equal to ##view##. If it is (you have a space named ##view##) then you need to use ##/xwiki/bin/view/view[...]##.
Guillaume Delhumeau 14.1 385 === Templates ===
387 All the templates specific to [[extensions:Extension.Colibri Skin]] had been moved to it. If your skin depends on some of these templates, you should set Colibri as parent of your skin.
Thomas Mortagne 1.1 389 == API Breakages ==
Eduard Moraru 49.9 391 The following APIs were modified since XWiki 7.1.1:
Thomas Mortagne 1.1 392
Eduard Moraru 49.10 393 * AbstractWrappingObject, AbstractSafeObject and ScriptSafeProvider have been moved to xwiki-commons-script(((
Thomas Mortagne 1.1 394 {{code language="none"}}
Eduard Moraru 49.10 395 org.xwiki.extension.wrap.WrappingIterableResult: Removed org.xwiki.extension.internal.safe.AbstractSafeObject from the list of superclasses
396 org.xwiki.extension.wrap.WrappingIterableResult: Removed org.xwiki.extension.wrap.AbstractWrappingObject from the list of superclasses
397 org.xwiki.extension.wrap.WrappingIterableResult: Parameter 2 of 'public WrappingIterableResult(org.xwiki.extension.repository.result.IterableResult, org.xwiki.extension.internal.safe.ScriptSafeProvider)' has changed its type to org.xwiki.script.internal.safe.ScriptSafeProvider
399 org.xwiki.filter.script.AbstractFilterScriptService: Changed type of field scriptProvider from org.xwiki.extension.internal.safe.ScriptSafeProvider to org.xwiki.script.internal.safe.ScriptSafeProvider
400 org.xwiki.extension.script.AbstractExtensionScriptService: Changed type of field scriptProvider from org.xwiki.extension.internal.safe.ScriptSafeProvider to org.xwiki.script.internal.safe.ScriptSafeProvider
Eduard Moraru 62.2 401 {{/code}}
402 )))
Eduard Moraru 49.10 403
404 * Added missing methods to the DocumentModelBridge which are already implemented by XWikiDocument.(((
405 {{code language="none"}}
406 org.xwiki.bridge.DocumentModelBridge: Method 'public org.xwiki.model.reference.DocumentReference getContentAuthorReference()' has been added to an interface
Eduard Moraru 62.2 407 {{/code}}
408 )))
Eduard Moraru 49.10 409
410 * com.xpn.xwiki.XWiki#localStringEntityReferenceSerializer now exists in oldcore, we do not need it in the aspect anymore.(((
411 {{code language="none"}}
412 com.xpn.xwiki.XWikiCompatibilityAspect: Method 'public org.xwiki.model.reference.EntityReferenceSerializer ajc$interFieldGetDispatch$com_xpn_xwiki_XWikiCompatibilityAspect$com_xpn_xwiki_XWiki$localStringEntityReferenceSerializer(com.xpn.xwiki.XWiki)' has been removed
413 com.xpn.xwiki.XWikiCompatibilityAspect: Method 'public void ajc$interFieldInit$com_xpn_xwiki_XWikiCompatibilityAspect$com_xpn_xwiki_XWiki$localStringEntityReferenceSerializer(com.xpn.xwiki.XWiki)' has been removed
414 com.xpn.xwiki.XWikiCompatibilityAspect: Method 'public void ajc$interFieldSetDispatch$com_xpn_xwiki_XWikiCompatibilityAspect$com_xpn_xwiki_XWiki$localStringEntityReferenceSerializer(com.xpn.xwiki.XWiki, org.xwiki.model.reference.EntityReferenceSerializer)' has been removed
Eduard Moraru 62.2 415 {{/code}}
416 )))
Eduard Moraru 49.10 417
418 * Young API. ExportURLFactoryContext been renamed to FilesystemExportContext and moved to the Filesystem URL scheme module.(((
419 {{code language="none"}}
420 com.xpn.xwiki.web.ExportURLFactory: Method 'public com.xpn.xwiki.web.ExportURLFactoryContext getExportURLFactoryContext()' has been removed
421 com.xpn.xwiki.web.ExportURLFactoryActionHandler: Parameter 7 of 'public java.net.URL createURL(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String, com.xpn.xwiki.XWikiContext, com.xpn.xwiki.web.ExportURLFactoryContext)' has changed its type to org.xwiki.url.filesystem.FilesystemExportContext
422 com.xpn.xwiki.web.ExportURLFactory: class removed
Eduard Moraru 62.2 423 {{/code}}
424 )))
Eduard Moraru 49.10 425
426 * This API has been changed to support nested spaces.(((
427 {{code language="none"}}
428 org.xwiki.rest.resources.spaces.SpaceResource: Method argument count changed for method 'org.xwiki.rest.model.jaxb.Space getSpace(java.lang.String, java.lang.String)'
Eduard Moraru 62.2 429 {{/code}}
430 )))

Get Connected