You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Alexandre Costa Martins (JIRA)" <ji...@apache.org> on 2007/03/28 16:20:25 UTC

[jira] Created: (JCR-824) Problems with File Copy using WebDAV

Problems with File Copy using WebDAV
------------------------------------

                 Key: JCR-824
                 URL: https://issues.apache.org/jira/browse/JCR-824
             Project: Jackrabbit
          Issue Type: Bug
          Components: webdav
    Affects Versions: 1.1.1
         Environment: Jackrabbit 1.1.1
webDav Server
            Reporter: Alexandre Costa Martins


When i make a copy of files from one workspace to other (CTRL-C -> CTRL-V). The file isnt copied, but the original file is deleted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Re: [jira] Commented: (JCR-824) Problems with File Copy using WebDAV

Posted by Alexandre Martins <al...@gmail.com>.
angela,

I´m using a webdav application that come with jackrabbit.
The steps are:

* Create 2 workspaces
* Put files using webdav into a fisrt workspace
* Using Windows View (My Network places), copy one file (CTRL-C) and open
the other workspace (windows interface) and paste (CTRL-V)
  [ Show » <https://issues.apache.org/jira/browse/JCR-824> ]
 Alexandre Costa
Martins<https://issues.apache.org/jira/secure/ViewProfile.jspa?name=xandecmartins>
[28/Mar/07 08:19 AM] angela, I´m using a webdav application that come with
jackrabbit. The steps are: * Create 2 workspaces * Put files using webdav
into a fisrt workspace * Using Windows View (My Network places), copy one
file (CTRL-C) and open the other workspace (windows interface) and paste
(CTRL-V)


2007/3/28, angela (JIRA) <ji...@apache.org>:
>
>
>     [
> https://issues.apache.org/jira/browse/JCR-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484901]
>
> angela commented on JCR-824:
> ----------------------------
>
> sorry, i can't follow you. which servlet are you using?
> how do you copy across workspaces?
>
> note, that with jcr-server Workspace.copy is not yet implemented (and as
> far as i know throws an exception).
> and the simple server on the other hand doesn't even attempt to implement
> a workspace copy (only one workspace is exposed).
>
> thanks for posting additional info.
> angela
>
> > Problems with File Copy using WebDAV
> > ------------------------------------
> >
> >                 Key: JCR-824
> >                 URL: https://issues.apache.org/jira/browse/JCR-824
> >             Project: Jackrabbit
> >          Issue Type: Bug
> >          Components: webdav
> >    Affects Versions: 1.1.1
> >         Environment: Jackrabbit 1.1.1
> > webDav Server
> >            Reporter: Alexandre Costa Martins
> >
> > When i make a copy of files from one workspace to other (CTRL-C ->
> CTRL-V). The file isnt copied, but the original file is deleted.
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>


-- 
Alexandre Costa Martins
CESAR - Recife Center for Advanced Studies and Systems
Software Engineer and Software Reuse Researcher
MSc Candidate at Federal University of Pernambuco
RiSE Member - http://www.rise.com.br

E-mail: alexandre.martins@cesar.org.br
MSN: xandecmartins@hotmail.com
GTalk: alexandremartins@gmail.com
Skype: xandecmartins
Mobile: +55 (81) 9929-9548
Office: +55 (81) 3425-4763
Fax: +55 (81) 3425-4701

[jira] Updated: (JCR-824) Problems with File Copy using WebDAV

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-824:
------------------------------

        Fix Version/s: 1.3
    Affects Version/s: 1.1
                       1.2.1
                       1.2.2
                       1.2.3

> Problems with File Copy using WebDAV
> ------------------------------------
>
>                 Key: JCR-824
>                 URL: https://issues.apache.org/jira/browse/JCR-824
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1, 1.1.1, 1.2.1, 1.2.2, 1.2.3
>         Environment: Jackrabbit 1.1.1
> webDav Server
>            Reporter: Alexandre Costa Martins
>         Assigned To: angela
>             Fix For: 1.3
>
>
> When i make a copy of files from one workspace to other (CTRL-C -> CTRL-V). The file isnt copied, but the original file is deleted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JCR-824) Problems with File Copy using WebDAV

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela resolved JCR-824.
------------------------

    Resolution: Fixed

Fixed as suggested: i added a check with copy and move that makes sure, that src and destination resource belong to the same workspace. if that is not the case the operation fails.

rev. 523640  

btw:
i couldn't reproduce the behaviour described (resource then gets deleted at the source).
however, what i found was:

- without the additional check the copy already failed with 'conflict' 
- windows dav client doesn't stop the copy then but adds some additional PROPFIND calls and asks 
  whether i want to replace the existing resource.
- in case of 'no' the copy operation is aborted.... in case of 'yes' the COPY operation again results in 
  conflict and finally tries to COPY forever.

> Problems with File Copy using WebDAV
> ------------------------------------
>
>                 Key: JCR-824
>                 URL: https://issues.apache.org/jira/browse/JCR-824
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1.1
>         Environment: Jackrabbit 1.1.1
> webDav Server
>            Reporter: Alexandre Costa Martins
>         Assigned To: angela
>
> When i make a copy of files from one workspace to other (CTRL-C -> CTRL-V). The file isnt copied, but the original file is deleted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JCR-824) Problems with File Copy using WebDAV

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484916 ] 

angela commented on JCR-824:
----------------------------

well, i guess you are using the 'SimpleWebdavServlet'.
there, i never tried to copy resources between 2 workspaces.... but it shouldn't be a big thing to add a check to the DavResourceImpl making sure, that copy (and move) between workspace will be detected (and forbidden).

regards
angela

> Problems with File Copy using WebDAV
> ------------------------------------
>
>                 Key: JCR-824
>                 URL: https://issues.apache.org/jira/browse/JCR-824
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1.1
>         Environment: Jackrabbit 1.1.1
> webDav Server
>            Reporter: Alexandre Costa Martins
>
> When i make a copy of files from one workspace to other (CTRL-C -> CTRL-V). The file isnt copied, but the original file is deleted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JCR-824) Problems with File Copy using WebDAV

Posted by "Alexandre Costa Martins (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484907 ] 

Alexandre Costa Martins commented on JCR-824:
---------------------------------------------

angela,

I´m using a webdav application that come with jackrabbit. 
The steps are:

* Create 2 workspaces
* Put files using webdav into a fisrt workspace
* Using Windows View (My Network places), copy one file (CTRL-C) and open the other workspace (windows interface) and paste (CTRL-V)


> Problems with File Copy using WebDAV
> ------------------------------------
>
>                 Key: JCR-824
>                 URL: https://issues.apache.org/jira/browse/JCR-824
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1.1
>         Environment: Jackrabbit 1.1.1
> webDav Server
>            Reporter: Alexandre Costa Martins
>
> When i make a copy of files from one workspace to other (CTRL-C -> CTRL-V). The file isnt copied, but the original file is deleted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (JCR-824) Problems with File Copy using WebDAV

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela reassigned JCR-824:
--------------------------

    Assignee: angela

> Problems with File Copy using WebDAV
> ------------------------------------
>
>                 Key: JCR-824
>                 URL: https://issues.apache.org/jira/browse/JCR-824
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1.1
>         Environment: Jackrabbit 1.1.1
> webDav Server
>            Reporter: Alexandre Costa Martins
>         Assigned To: angela
>
> When i make a copy of files from one workspace to other (CTRL-C -> CTRL-V). The file isnt copied, but the original file is deleted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JCR-824) Problems with File Copy using WebDAV

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-824?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12484901 ] 

angela commented on JCR-824:
----------------------------

sorry, i can't follow you. which servlet are you using?
how do you copy across workspaces?

note, that with jcr-server Workspace.copy is not yet implemented (and as far as i know throws an exception).
and the simple server on the other hand doesn't even attempt to implement a workspace copy (only one workspace is exposed).

thanks for posting additional info.
angela

> Problems with File Copy using WebDAV
> ------------------------------------
>
>                 Key: JCR-824
>                 URL: https://issues.apache.org/jira/browse/JCR-824
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: webdav
>    Affects Versions: 1.1.1
>         Environment: Jackrabbit 1.1.1
> webDav Server
>            Reporter: Alexandre Costa Martins
>
> When i make a copy of files from one workspace to other (CTRL-C -> CTRL-V). The file isnt copied, but the original file is deleted.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.