You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Parvez Ahmad <pa...@gmail.com> on 2011/11/19 06:54:40 UTC

Re: version creation using httpclient

It is sad to see that those how created jackrabbit and sling do not know how to
create a version using webdav.
Really too bad thing for open source


Re: version creation using httpclient

Posted by Lukas Kahwe Smith <ml...@pooteeweet.org>.
On Nov 21, 2011, at 08:22 , parvez12 wrote:

> As a feedback, In webdav implementations of jackrabbit checkout
> method, we should be able to pass a version name that will get
> created.
> When the method is executed we should know get the information about
> the URL of  version of created.
> There should be simple webdav methods for creating, restoring, a
> specific version. The labelmethod and reportmethod are useless.


The davex API in general wasn't really optimized for minimizing HTTP roundtrips. During the implementation of Jackrabbit binding inside Jackalope PHPCR implementation we stumbled over this in a few places and have provided patches that are trickling into Jackrabbit 2.3.x

So in general I can just recommend to identify the places that you feel are inefficient and provide patches.

regards,
Lukas Kahwe Smith
mls@pooteeweet.org




Re: version creation using httpclient

Posted by parvez12 <pa...@gmail.com>.
Thanks Mr. christian for your helping mail.

I checked all the sites, they use jcr rmi repositories to talk to jackrabbit.
I will check what parameters we can pass in checkout method to create a version
with a name(say abc).
It is unfortunate the team who manage jackrabbit are not providing any
documentation, from last two months

As a feedback, In webdav implementations of jackrabbit checkout
method, we should be able to pass a version name that will get
created.
When the method is executed we should know get the information about
the URL of  version of created.
There should be simple webdav methods for creating, restoring, a
specific version. The labelmethod and reportmethod are useless.

regards
Parvez Ahmad Hakim
Software Researcher
Srinagar Kashmir India
www.abobjects.com

On Sat, Nov 19, 2011 at 3:17 PM, Christian Stocker [via Jackrabbit]
<ml...@n4.nabble.com> wrote:
> Hi
>
> Instead of just waiting for an answer, you could have invested some time
> by yourself. Debugging a http-protocol isn't too hard.
>
> 1) write a simple java client, which does what you want. You can take
> https://github.com/jackalope/JavaDavexClient as an example for that
>
> 2) Set up a proxy, which intercepts the HTTP traffic. like
> http://www.charlesproxy.com/
>
> 3) go and see what it does.
>
> If you're more into PHP than Java, you could also check out
> https://github.com/jackalope/jackalope which talks to jackrabbit via
> webdav and implements the major things (like versioning)
>
> and to your question: Use CHECKIN and CHECKOUT as HTTP methods to create
> new versions. But that really isn't too hard to figure out by yourself,
> it's open source after all ;)
>
> christian
>
> On 19.11.11 06:54, Parvez Ahmad wrote:
>> It is sad to see that those how created jackrabbit and sling do not know
>> how to
>> create a version using webdav.
>> Really too bad thing for open source
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://jackrabbit.510166.n4.nabble.com/version-creation-using-httpclient-tp3807209p4085973.html
> To unsubscribe from version creation using httpclient, click here.
> NAML


--
View this message in context: http://jackrabbit.510166.n4.nabble.com/version-creation-using-httpclient-tp3807209p4090782.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: version creation using httpclient

Posted by Christian Stocker <ch...@liip.ch>.
Hi

Instead of just waiting for an answer, you could have invested some time
by yourself. Debugging a http-protocol isn't too hard.

1) write a simple java client, which does what you want. You can take
https://github.com/jackalope/JavaDavexClient as an example for that

2) Set up a proxy, which intercepts the HTTP traffic. like
http://www.charlesproxy.com/

3) go and see what it does.

If you're more into PHP than Java, you could also check out
https://github.com/jackalope/jackalope which talks to jackrabbit via
webdav and implements the major things (like versioning)

and to your question: Use CHECKIN and CHECKOUT as HTTP methods to create
new versions. But that really isn't too hard to figure out by yourself,
it's open source after all ;)

christian

On 19.11.11 06:54, Parvez Ahmad wrote:
> It is sad to see that those how created jackrabbit and sling do not know how to
> create a version using webdav.
> Really too bad thing for open source

Re: version creation using httpclient

Posted by parvez12 <pa...@gmail.com>.
Dear Julian,
Is there some sample code. I tried to use it, but it never worked.
I tried to add method.addheader(....
It never worked Mr/Ms Julian

regards
Parvez Ahmad

On Mon, Nov 21, 2011 at 8:18 PM, Julian Reschke [via Jackrabbit]
<ml...@n4.nabble.com> wrote:
> On 2011-11-19 06:54, Parvez Ahmad wrote:
>> It is sad to see that those how created jackrabbit and sling do not know
>> how to
>> create a version using webdav.
>> Really too bad thing for open source
>
> Angela answered your question two months ago: the version label is
> exposed in the DAV:label-name-set property (see
> <http://greenbytes.de/tech/webdav/rfc3253.html#label.feature>).
>
> Best regards, Julian
>
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://jackrabbit.510166.n4.nabble.com/version-creation-using-httpclient-tp3807209p4091729.html
> To unsubscribe from version creation using httpclient, click here.
> NAML


--
View this message in context: http://jackrabbit.510166.n4.nabble.com/version-creation-using-httpclient-tp3807209p4091856.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Re: version creation using httpclient

Posted by Julian Reschke <ju...@gmx.de>.
On 2011-11-19 06:54, Parvez Ahmad wrote:
> It is sad to see that those how created jackrabbit and sling do not know how to
> create a version using webdav.
> Really too bad thing for open source

Angela answered your question two months ago: the version label is 
exposed in the DAV:label-name-set property (see 
<http://greenbytes.de/tech/webdav/rfc3253.html#label.feature>).

Best regards, Julian