Re: [xwiki-devs] [VOTE] Retire XMLRPC (RESULT)

2015-09-23 Thread vinc...@massol.net
Results: 7 +1, no 0 and no -1

The vote is passed and I’ve already implemented the first part in 
http://jira.xwiki.org/browse/XWIKI-12602

I’m waiting for a 7.3M1 release before moving the code in contrib, that’s 
http://jira.xwiki.org/browse/XWIKI-12605

Thanks
-Vincent
On 21 Sep 2015 at 16:03:21, vinc...@massol.net (vinc...@massol.net) wrote:

Hi devs,

I’d like that we retire the XMLRPC feature of XWiki. 

Rationale:
* We now have a REST API
* The XMLRPC API is pretty old now, doesn’t support Nested Spaces, see 
http://jira.xwiki.org/browse/XWIKI-1249

The idea would be to:
* Step 1: Relocate the code in an optional module (in addition to or inside one 
of the existing xmlrpc modules). This means handling some code currently in 
oldcore + update web.xml
* Step 2: Move the optional xmlrpc modules to the github contrib organization
* Step 3: Update documentation on xwiki.org and add an entry on e.x.o (move doc 
from http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC in it).

Note that this will mean that XOffice will require users to install XMLRPC 
first if they want to try using it. Not a problem IMO. It’s also possible that 
the same will apply to XEclipse (or not) as I don’t remember if we had moved 
the code to use REST or not.

WDYT?

Here’s my +1

Thanks
-Vincent

PS: FTR, first time this was discussed on the list: 
http://markmail.org/message/gnockgbhnbfroa75

___
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs


Re: [xwiki-devs] [VOTE] Retire XMLRPC

2015-09-23 Thread Sergiu Dumitriu
+1, REST is king.
On Sep 21, 2015 10:03 AM, "vinc...@massol.net"  wrote:

> Hi devs,
>
> I’d like that we retire the XMLRPC feature of XWiki.
>
> Rationale:
> * We now have a REST API
> * The XMLRPC API is pretty old now, doesn’t support Nested Spaces, see
> http://jira.xwiki.org/browse/XWIKI-1249
>
> The idea would be to:
> * Step 1: Relocate the code in an optional module (in addition to or
> inside one of the existing xmlrpc modules). This means handling some code
> currently in oldcore + update web.xml
> * Step 2: Move the optional xmlrpc modules to the github contrib
> organization
> * Step 3: Update documentation on xwiki.org and add an entry on e.x.o
> (move doc from http://platform.xwiki.org/xwiki/bin/view/Features/XMLRPC in
> it).
>
> Note that this will mean that XOffice will require users to install XMLRPC
> first if they want to try using it. Not a problem IMO. It’s also possible
> that the same will apply to XEclipse (or not) as I don’t remember if we had
> moved the code to use REST or not.
>
> WDYT?
>
> Here’s my +1
>
> Thanks
> -Vincent
>
> PS: FTR, first time this was discussed on the list:
> http://markmail.org/message/gnockgbhnbfroa75
>
> ___
> devs mailing list
> devs@xwiki.org
> http://lists.xwiki.org/mailman/listinfo/devs
>
___
devs mailing list
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs


Re: [xwiki-devs] Export page with history as XAR which includes histories

2015-09-23 Thread Ghosh, Amrita
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.

The following URL worked and it successfully downloaded XAR which includes 
histories:

https://SERVER/bin/export/Main/testpage?format=xar=Main.testpage=xwiki%3AMain.withhist=true

Based on the documentation I expected 
https://SERVER/xwiki/bin/export/Space/Page?format=xar=Main.testpage=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).

Thanks,
Amrita

From: Vincent Massol [mailto:vmas...@gmail.com] On Behalf Of vinc...@massol.net
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


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 
(amr...@amazon.com) 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=Main.testpage=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
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs


Re: [xwiki-devs] Export page with history as XAR which includes histories

2015-09-23 Thread vinc...@massol.net
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

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 (amr...@amazon.com) 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=Main.testpage=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
devs@xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs