You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2010/02/17 11:33:21 UTC

DO NOT REPLY [Bug 48757] New: Tomcat deletes content of symbolic links on undeploy of application.

https://issues.apache.org/bugzilla/show_bug.cgi?id=48757

           Summary: Tomcat deletes content of symbolic links on undeploy
                    of application.
           Product: Tomcat 6
           Version: 6.0.24
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: radnev@gmail.com


Tomcat on Linux.

1. Modify context to allow linking. E.g. set option allowLinking="true".

2. Deploy war file.

3. Wait until it is unzipped.

4. Enter into web app directory.

5. Create symbolic link to another directory for example
ln -s /home/tomcat/images images

6. Now you can browse images via web browser. E.g. they are served by Tomcat.

7. Undeploy war application.

8. Expected behavior is to delete only symbolic link, but content of
/home/tomcat/images is also deleted.

On *Nix when do rm -fr app, symbolic link images will be deleted, but directory
and content pointed by this link will stay. So I assume that everybody expects
the same behavior when Tomcat undeploys given application.


Workaround is to change ownership of linked directory.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 48757] Tomcat deletes content of symbolic links on undeploy of application.

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=48757

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE

--- Comment #1 from Mark Thomas <ma...@apache.org> 2010-02-18 09:56:22 UTC ---


*** This bug has been marked as a duplicate of bug 39226 ***

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org