Hi Amrita,

On 23 Sep 2015 at 21:44:29, Ghosh, Amrita 
([email protected](mailto:[email protected])) wrote:

>  
> Hi Vincent,
>  
> Thanks for your response. Looks like the documentation here: 
> http://platform.xwiki.org/xwiki/bin/view/Features/Exports is wrong and needs 
> to be updated.

Actually the documentation is correct which is why I haven’t changed it 
yesterday :)

As I mentioned in my first reply I discovered 
http://jira.xwiki.org/browse/XWIKI-12607 which I have fixed.

> The following URL worked and it successfully downloaded XAR which includes 
> histories:
>  
> https://SERVER/bin/export/Main/testpage?format=xar&name=Main.testpage&pages=xwiki%3AMain.withhist&history=true
>  
> Based on the documentation I expected 
> https://SERVER/xwiki/bin/export/Space/Page?format=xar&pages=Main.testpage&history=true
>  to work but it does not work.  
>  
> The correct URL can be generated by right clicking on the “Export as XAR” 
> button on the UI. Then query string parameter “history=true” needs to be 
> added to export the history (otherwise it just exports the last version).

Ok so the good news is that XWIKI-12607 fixes your problem. I’m still surprised 
that you were getting an error since I couldn’t reproduce this. But if it works 
now then it’s good!

Thanks
-Vincent

> Thanks,
>  
>  
> Amrita
>  
>  
>  
>  
>  
> From: Vincent Massol [mailto:[email protected]] On Behalf Of 
> [email protected]
> Sent: Wednesday, September 23, 2015 2:35 AM
> To: XWiki Developers  
> Cc: Ghosh, Amrita  
> Subject: Re: [xwiki-devs] Export page with history as XAR which includes 
> histories
>  
>  
>  
>  
>  
>  
>  
> Hi Amrita,
>  
>  
>  
>  
>  
>  
>  
> I’ve tried to reproduce your problem but couldn’t. I’ve found another problem 
> though which I’ve fixed: http://jira.xwiki.org/browse/XWIKI-12607
(http://jira.xwiki.org/browse/XWIKI-12607)>  
>  
>  
>  
>  
(http://jira.xwiki.org/browse/XWIKI-12607)>  
>  
>  
>  
> What version of XWiki are you using?
>  
>  
>  
>  
>  
>  
>  
> Have you checked the XWiki logs to see if anything is printed there?
>  
>  
>  
>  
>  
>  
>  
> Thanks
>  
>  
>  
> -Vincent
>  
>  
>  
>  
>  
>  
> On 23 Sep 2015 at 04:38:30, Ghosh, Amrita 
> ([email protected](mailto:[email protected])) wrote:
>  
> >  
> > Hi,
> >  
> > I am trying to export page with its histories as XAR. I referred to this 
> > document: http://platform.xwiki.org/xwiki/bin/view/Features/Exports and 
> > used the following URL:
> >  
> > https://SERVER/xwiki/bin/export/Space/Page?format=xar&pages=Main.testpage&history=true
> >  , where SERVER is my server name and testpage is the page with history 
> > that I am tryin to export as XAR.
> >  
> > This command did not work. I am seeing message "A problem occurred while 
> > trying to process your request. Please contact the webmaster if this 
> > happens again." on the page and status 304 (Not Modified) on the browser.
> >  
> > Can someone please let me know how I can export a page with histories as 
> > XAR which includes all its history information?
> >  
> > Thanks,
> > Amrita
> >  
> >  
> >  
>  
>  
>  
>  


_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to