Hi all,
First of all, thanks for creating and supporting such great software as XWiki!
I’m trying to migrate our old wiki system from Mindtouch to XWiki and I came across few problems.
I decided to create pages through the REST API but I’m unable to assign their ownership and some other properties to the data I send.
For example I send following PUT request to http://localhost:8500/rest/wikis/xwiki/spaces/Sandbox/pages/test
with basic authentication. I’d like this new test page to be seen as created by user on specified created
date (this user exists in the system).
<?xml version="1.0" encoding="utf-8"?>
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.xwiki.org">
<name>Test</name>
<title>Test</title>
<author>XWiki.user</author>
<authorName>XWiki.user</authorName>
<majorVersion>0</majorVersion>
<minorVersion>0</minorVersion>
<hidden>false</hidden>
<created>2017-02-22T17:14:10+01:00</created>
<creator>XWiki.user</creator>
<syntax>html/4.01</syntax>
<creatorName>XWiki.user</creatorName>
<modified>2017-02-28T12:19:29+01:00</modified>
<comment>test</comment>
<content>
Hello World!
</content>
</page>
Unfortunately, in response I get:
(...)
<created>2018-01-30T14:08:36Z</created>
<creator>XWiki.my_username</creator>
(...)
where my_username
is obviously me.
Is there any way to override this properties with the data submitted in the request? If not - do you see any other way to import pages from other system?