You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Ashutosh Tiwari <at...@gmail.com> on 2022/04/04 12:13:57 UTC

Send File to Webdav server

Hey guys,
I'm super new to this, and I'm slowly discovering webdav client methods. I
can now perform other functions but I still do not know how to put a file
on the webdav server. Can any of you please help?

Thanks,
Ash

Re: Send File to Webdav server

Posted by Julian Reschke <ju...@gmx.de>.
Am 04.04.2022 um 15:08 schrieb Ashutosh Tiwari:
> Hi,
> Thanks for replying!
> I have been trying the whole day, and used methods like HttpDelete and
> HttpMove and such for basic client side functioning. I went through all the
> examples on the site itself as well, but didn't find a "PutMethod" or any
> such to send the files to a remote webdav server. I even tried using JCR
> but to no avail. Is there any method like the ones I mentioned?
>
> Thanks,
> Ash

It's open source. Patches / PRs welcome.

Best regards, Julian

Re: Send File to Webdav server

Posted by Julian Reschke <ju...@gmx.de>.
Am 04.04.2022 um 15:08 schrieb Ashutosh Tiwari:
> Hi,
> Thanks for replying!
> I have been trying the whole day, and used methods like HttpDelete and
> HttpMove and such for basic client side functioning. I went through all the
> examples on the site itself as well, but didn't find a "PutMethod" or any
> such to send the files to a remote webdav server. I even tried using JCR
> but to no avail. Is there any method like the ones I mentioned?
>
> Thanks,
> Ash

PUT is a generic HTTP method and is already supported by the Apache HTTP
library we are using; thus no special Jackrabbit code is needed.

See


https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/org/apache/http/client/methods/HttpPut.html

Best regards, Julian

Re: Send File to Webdav server

Posted by Ashutosh Tiwari <at...@gmail.com>.
Hello,
Just went through the documentation as you said. It had the addFile method
but it contained logic to add files to a standalone server only. I just
need a simple method like "HttpCopy/HttpDelete" to simply put a file on a
remote webdav server. There used to be a "PutMethod" for it, but now there
isn't. Is there any alternative for that method?

Thanks,
Ash

On Mon, Apr 4, 2022 at 6:44 PM Edoardo Barolo <
edoardo.barolo@sanmarcoinformatica.it> wrote:

> Yes I agree that jackrabbit docs  are really  poor ! When I had problems no
> one responded to me here..
> I solved inspecting Source code from Liferay 6.2 jackrabbit implementation
> and there i found all the solutions !!
> Liferay is very good because it uses jackrabbit extensively !
> Try to download Liferay portal 6.2 GA6 source code, than search for
> jackrabbit... You will be surprised !!
>
> Il giorno lun 4 apr 2022 alle ore 15:08 Ashutosh Tiwari <
> atiwarixs@gmail.com>
> ha scritto:
>
> > Hi,
> > Thanks for replying!
> > I have been trying the whole day, and used methods like HttpDelete and
> > HttpMove and such for basic client side functioning. I went through all
> the
> > examples on the site itself as well, but didn't find a "PutMethod" or any
> > such to send the files to a remote webdav server. I even tried using JCR
> > but to no avail. Is there any method like the ones I mentioned?
> >
> > Thanks,
> > Ash
> >
> > On Mon, Apr 4, 2022 at 6:26 PM Edoardo Barolo <
> > edoardo.barolo@sanmarcoinformatica.it> wrote:
> >
> > > JackRabbit website is full of examples. I don't remember something
> about
> > > WebDaw, but you can use JCR !
> > >
> > > Il giorno lun 4 apr 2022 alle ore 14:53 Ashutosh Tiwari <
> > > atiwarixs@gmail.com>
> > > ha scritto:
> > >
> > > > Hello,
> > > > I want to send a file through jackrabbit itself. Is that possible by
> > > > writing some java code?
> > > >
> > > > Thanks,
> > > > Ash
> > > >
> > > > Sent from my iPhone
> > > >
> > > > > On 04-Apr-2022, at 6:10 PM, Edoardo Barolo <
> > > > edoardo.barolo@sanmarcoinformatica.it> wrote:
> > > > >
> > > > > Try using WinSCP and webdav connection , you should do !
> > > > >
> > > > >> Il giorno lun 4 apr 2022 alle ore 14:14 Ashutosh Tiwari <
> > > > atiwarixs@gmail.com>
> > > > >> ha scritto:
> > > > >>
> > > > >> Hey guys,
> > > > >> I'm super new to this, and I'm slowly discovering webdav client
> > > > methods. I
> > > > >> can now perform other functions but I still do not know how to
> put a
> > > > file
> > > > >> on the webdav server. Can any of you please help?
> > > > >>
> > > > >> Thanks,
> > > > >> Ash
> > > > >>
> > > > >
> > > > >
> > > > > --
> > > > > Edoardo Barolo
> > > > > Solution Developer
> > > > > M. 3351986926 T. 0444419333
> > > > > SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
> > > > > 4Words <https://www.sanmarcoinformatica.com/4words/> - Business
> Unit
> > > by
> > > > > Sanmarco Informatica Spa
> > > > > *Email Privacy Information <
> > > https://www.sanmarcoinformatica.com/privacy/
> > > > >
> > > >
> > >
> > >
> > > --
> > > Edoardo Barolo
> > > Solution Developer
> > > M. 3351986926 T. 0444419333
> > > SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
> > > 4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit
> by
> > > Sanmarco Informatica Spa
> > > *Email Privacy Information <
> https://www.sanmarcoinformatica.com/privacy/
> > >
> > >
> >
>
>
> --
> Edoardo Barolo
> Solution Developer
> M. 3351986926 T. 0444419333
> SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
> 4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit by
> Sanmarco Informatica Spa
> *Email Privacy Information <https://www.sanmarcoinformatica.com/privacy/>
>

Re: Send File to Webdav server

Posted by Edoardo Barolo <ed...@sanmarcoinformatica.it>.
Yes I agree that jackrabbit docs  are really  poor ! When I had problems no
one responded to me here..
I solved inspecting Source code from Liferay 6.2 jackrabbit implementation
and there i found all the solutions !!
Liferay is very good because it uses jackrabbit extensively !
Try to download Liferay portal 6.2 GA6 source code, than search for
jackrabbit... You will be surprised !!

Il giorno lun 4 apr 2022 alle ore 15:08 Ashutosh Tiwari <at...@gmail.com>
ha scritto:

> Hi,
> Thanks for replying!
> I have been trying the whole day, and used methods like HttpDelete and
> HttpMove and such for basic client side functioning. I went through all the
> examples on the site itself as well, but didn't find a "PutMethod" or any
> such to send the files to a remote webdav server. I even tried using JCR
> but to no avail. Is there any method like the ones I mentioned?
>
> Thanks,
> Ash
>
> On Mon, Apr 4, 2022 at 6:26 PM Edoardo Barolo <
> edoardo.barolo@sanmarcoinformatica.it> wrote:
>
> > JackRabbit website is full of examples. I don't remember something about
> > WebDaw, but you can use JCR !
> >
> > Il giorno lun 4 apr 2022 alle ore 14:53 Ashutosh Tiwari <
> > atiwarixs@gmail.com>
> > ha scritto:
> >
> > > Hello,
> > > I want to send a file through jackrabbit itself. Is that possible by
> > > writing some java code?
> > >
> > > Thanks,
> > > Ash
> > >
> > > Sent from my iPhone
> > >
> > > > On 04-Apr-2022, at 6:10 PM, Edoardo Barolo <
> > > edoardo.barolo@sanmarcoinformatica.it> wrote:
> > > >
> > > > Try using WinSCP and webdav connection , you should do !
> > > >
> > > >> Il giorno lun 4 apr 2022 alle ore 14:14 Ashutosh Tiwari <
> > > atiwarixs@gmail.com>
> > > >> ha scritto:
> > > >>
> > > >> Hey guys,
> > > >> I'm super new to this, and I'm slowly discovering webdav client
> > > methods. I
> > > >> can now perform other functions but I still do not know how to put a
> > > file
> > > >> on the webdav server. Can any of you please help?
> > > >>
> > > >> Thanks,
> > > >> Ash
> > > >>
> > > >
> > > >
> > > > --
> > > > Edoardo Barolo
> > > > Solution Developer
> > > > M. 3351986926 T. 0444419333
> > > > SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
> > > > 4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit
> > by
> > > > Sanmarco Informatica Spa
> > > > *Email Privacy Information <
> > https://www.sanmarcoinformatica.com/privacy/
> > > >
> > >
> >
> >
> > --
> > Edoardo Barolo
> > Solution Developer
> > M. 3351986926 T. 0444419333
> > SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
> > 4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit by
> > Sanmarco Informatica Spa
> > *Email Privacy Information <https://www.sanmarcoinformatica.com/privacy/
> >
> >
>


-- 
Edoardo Barolo
Solution Developer
M. 3351986926 T. 0444419333
SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit by
Sanmarco Informatica Spa
*Email Privacy Information <https://www.sanmarcoinformatica.com/privacy/>

Re: Send File to Webdav server

Posted by Ashutosh Tiwari <at...@gmail.com>.
Hi,
Thanks for replying!
I have been trying the whole day, and used methods like HttpDelete and
HttpMove and such for basic client side functioning. I went through all the
examples on the site itself as well, but didn't find a "PutMethod" or any
such to send the files to a remote webdav server. I even tried using JCR
but to no avail. Is there any method like the ones I mentioned?

Thanks,
Ash

On Mon, Apr 4, 2022 at 6:26 PM Edoardo Barolo <
edoardo.barolo@sanmarcoinformatica.it> wrote:

> JackRabbit website is full of examples. I don't remember something about
> WebDaw, but you can use JCR !
>
> Il giorno lun 4 apr 2022 alle ore 14:53 Ashutosh Tiwari <
> atiwarixs@gmail.com>
> ha scritto:
>
> > Hello,
> > I want to send a file through jackrabbit itself. Is that possible by
> > writing some java code?
> >
> > Thanks,
> > Ash
> >
> > Sent from my iPhone
> >
> > > On 04-Apr-2022, at 6:10 PM, Edoardo Barolo <
> > edoardo.barolo@sanmarcoinformatica.it> wrote:
> > >
> > > Try using WinSCP and webdav connection , you should do !
> > >
> > >> Il giorno lun 4 apr 2022 alle ore 14:14 Ashutosh Tiwari <
> > atiwarixs@gmail.com>
> > >> ha scritto:
> > >>
> > >> Hey guys,
> > >> I'm super new to this, and I'm slowly discovering webdav client
> > methods. I
> > >> can now perform other functions but I still do not know how to put a
> > file
> > >> on the webdav server. Can any of you please help?
> > >>
> > >> Thanks,
> > >> Ash
> > >>
> > >
> > >
> > > --
> > > Edoardo Barolo
> > > Solution Developer
> > > M. 3351986926 T. 0444419333
> > > SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
> > > 4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit
> by
> > > Sanmarco Informatica Spa
> > > *Email Privacy Information <
> https://www.sanmarcoinformatica.com/privacy/
> > >
> >
>
>
> --
> Edoardo Barolo
> Solution Developer
> M. 3351986926 T. 0444419333
> SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
> 4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit by
> Sanmarco Informatica Spa
> *Email Privacy Information <https://www.sanmarcoinformatica.com/privacy/>
>

Re: Send File to Webdav server

Posted by Edoardo Barolo <ed...@sanmarcoinformatica.it>.
JackRabbit website is full of examples. I don't remember something about
WebDaw, but you can use JCR !

Il giorno lun 4 apr 2022 alle ore 14:53 Ashutosh Tiwari <at...@gmail.com>
ha scritto:

> Hello,
> I want to send a file through jackrabbit itself. Is that possible by
> writing some java code?
>
> Thanks,
> Ash
>
> Sent from my iPhone
>
> > On 04-Apr-2022, at 6:10 PM, Edoardo Barolo <
> edoardo.barolo@sanmarcoinformatica.it> wrote:
> >
> > Try using WinSCP and webdav connection , you should do !
> >
> >> Il giorno lun 4 apr 2022 alle ore 14:14 Ashutosh Tiwari <
> atiwarixs@gmail.com>
> >> ha scritto:
> >>
> >> Hey guys,
> >> I'm super new to this, and I'm slowly discovering webdav client
> methods. I
> >> can now perform other functions but I still do not know how to put a
> file
> >> on the webdav server. Can any of you please help?
> >>
> >> Thanks,
> >> Ash
> >>
> >
> >
> > --
> > Edoardo Barolo
> > Solution Developer
> > M. 3351986926 T. 0444419333
> > SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
> > 4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit by
> > Sanmarco Informatica Spa
> > *Email Privacy Information <https://www.sanmarcoinformatica.com/privacy/
> >
>


-- 
Edoardo Barolo
Solution Developer
M. 3351986926 T. 0444419333
SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit by
Sanmarco Informatica Spa
*Email Privacy Information <https://www.sanmarcoinformatica.com/privacy/>

Re: Send File to Webdav server

Posted by Ashutosh Tiwari <at...@gmail.com>.
Hello,
I want to send a file through jackrabbit itself. Is that possible by writing some java code?

Thanks,
Ash

Sent from my iPhone

> On 04-Apr-2022, at 6:10 PM, Edoardo Barolo <ed...@sanmarcoinformatica.it> wrote:
> 
> Try using WinSCP and webdav connection , you should do !
> 
>> Il giorno lun 4 apr 2022 alle ore 14:14 Ashutosh Tiwari <at...@gmail.com>
>> ha scritto:
>> 
>> Hey guys,
>> I'm super new to this, and I'm slowly discovering webdav client methods. I
>> can now perform other functions but I still do not know how to put a file
>> on the webdav server. Can any of you please help?
>> 
>> Thanks,
>> Ash
>> 
> 
> 
> -- 
> Edoardo Barolo
> Solution Developer
> M. 3351986926 T. 0444419333
> SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
> 4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit by
> Sanmarco Informatica Spa
> *Email Privacy Information <https://www.sanmarcoinformatica.com/privacy/>

Re: Send File to Webdav server

Posted by Edoardo Barolo <ed...@sanmarcoinformatica.it>.
Try using WinSCP and webdav connection , you should do !

Il giorno lun 4 apr 2022 alle ore 14:14 Ashutosh Tiwari <at...@gmail.com>
ha scritto:

> Hey guys,
> I'm super new to this, and I'm slowly discovering webdav client methods. I
> can now perform other functions but I still do not know how to put a file
> on the webdav server. Can any of you please help?
>
> Thanks,
> Ash
>


-- 
Edoardo Barolo
Solution Developer
M. 3351986926 T. 0444419333
SANMARCOINFORMATICA.COM <https://www.sanmarcoinformatica.com>
4Words <https://www.sanmarcoinformatica.com/4words/> - Business Unit by
Sanmarco Informatica Spa
*Email Privacy Information <https://www.sanmarcoinformatica.com/privacy/>