Hi,
I am trying to update an existing page (ad new revisions) by uploading XAR using REST API:
curl -k -u Admin:admin -v -X POST -T "Main.testpage.xar" -H "Content-Type: application/stream" https://SERVER/xwiki/rest/wikis/xwiki?history=ADD
I could successfully upload a single new revision to an existing page and that new revision is correctly showing up on the page history. But I wanted to upload multiple revisions at a time. For that in the document xml I specified the new revisions inside <versions> </versions> tag (similar to what we see in the XML of exported page with history), but that does not work.
Is it possible to add multiple revisions to an existing page with a single XAR upload?
Following are my document xml and package.xml inside the XAR file that I was using:
Main/testpage.xml:
<?xml version='1.0' encoding='UTF-8'?>
<xwikidoc version="1.1">
<web>Main</web>
<name>testpage</name>
<language/>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<creator>XWiki.amritg</creator>
<creationDate>1443041962000</creationDate>
<versions>head 6.1;
access;
symbols;
locks; strict;
6.1
date 2015.09.23.21.11.51; author XWiki.amritg; state full;
branches;
next 5.1;
5.1
date 2015.09.23.21.01.49; author XWiki.amritg; state full;
branches;
next ;
desc
@@
6.1
log
@@
text
@<?xml version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>Main</web>
<name>testpage</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent></parent>
<creator>XWiki.amritg</creator>
<author>XWiki.amritg</author>
<customClass></customClass>
<contentAuthor>XWiki.amritg</contentAuthor>
<creationDate>1443041962000</creationDate>
<date>1443042713000</date>
<contentUpdateDate>1443042713000</contentUpdateDate>
<version>6.1</version>
<title>Test Page</title>
<defaultTemplate></defaultTemplate>
<validationScript></validationScript>
<comment></comment>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>false</hidden>
<content>Update content for 6th revision</content></xwikidoc>
@
5.1
log
@@
text
@<?xml version="1.0" encoding="UTF-8"?>
<xwikidoc>
<web>Main</web>
<name>testpage</name>
<language></language>
<defaultLanguage>en</defaultLanguage>
<translation>0</translation>
<parent></parent>
<creator>XWiki.amritg</creator>
<author>XWiki.amritg</author>
<customClass></customClass>
<contentAuthor>XWiki.amritg</contentAuthor>
<creationDate>1443041962000</creationDate>
<date>1443042713000</date>
<contentUpdateDate>1443042713000</contentUpdateDate>
<version>5.1</version>
<title>Test Page</title>
<defaultTemplate></defaultTemplate>
<validationScript></validationScript>
<comment></comment>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>false</hidden>
<content>Update content for 5th revision</content></xwikidoc>
@
</versions>
<author>XWiki.amritg</author>
<contentAuthor>XWiki.amritg</contentAuthor>
<date>1443042712000</date>
<contentUpdateDate>1443042712000</contentUpdateDate>
<version>6.1</version>
<title>Test Page</title>
<comment/>
<minorEdit>false</minorEdit>
<syntaxId>xwiki/2.1</syntaxId>
<hidden>false</hidden>
<content>Update content for 6th revision</content>
</xwikidoc>
Package.xml:
<?xml version='1.0' encoding='UTF-8'?>
<package>
<infos>
<name>Main.testpage</name>
<description/>
<licence/>
<author/>
<version/>
<backupPack>false</backupPack>
<preserveVersion>true</preserveVersion>
<extensionId/>
</infos>
<files>
<file defaultAction="0" language="">Main.testpage</file>
</files>
</package>
Thanks,
Amrita
Hi devs,
Since 7.3 is a stabilization release I propose that we don’t introduce any new features in it and that we focus on stabilizing the Nested Spaces feature which has had its first release in XWiki 7.2.
The idea would be to work on Nested Spaces issues as priority and reduce this list to zero:
http://jira.xwiki.org/secure/IssueNavigator!executeAdvanced.jspa?jqlQuery=%…
Of course we should also fix any important bugs from other features too.
In addition a user has asked us to look at
* http://jira.xwiki.org/browse/XWIKI-12294: Unable to build on Windows because of failing META-INF/components.txt check
Last, in 7.3 and 7.4 we should also work on fixing/polishing features that have been introduced in this cycle (7.x), such as DW/EM work to improve upgrades.
Proposed Dates:
===============
7.3M1: 12 October 2015
7.2M2: 26 October 2015
7.3RC1: 2 November 2015
7.3final: 9 Novembre 2015
Note that I’ve put only 1 week between M2 and RC1 and one week between RC1 and final because we need to have a 7.4 that ends before the end of the year. I’ve left one week of buffer between the end of 7.3 final and the start of 7.4M1 in case we have delays.
Tentative dates for 7.4:
7.4M1: 30 November 2015
7.4M2: 14 December 2015
7.4RC1: 21 December 2015
7.4final: 28 December 2015
Note that we don’t have much margin with the Christmas holidays.
WDYT?
Thanks
-Vincent