[
http://jira.codehaus.org/browse/MRM-789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=137162#action_137162
]
Maria Odea Ching commented on MRM-789:
--------------------------------------
Would checking if the repo location is equivalent to any value in the system
properties would do here?
For example, Tomcat sets the property catalina.home for it's base directory. We
could get the value of it via the system properties. So if the repo location is
equal to a value of any of the system properties, then the delete won't be
allowed. Wdyt?
> Archiva may delete you app server installation
> ----------------------------------------------
>
> Key: MRM-789
> URL: http://jira.codehaus.org/browse/MRM-789
> Project: Archiva
> Issue Type: Bug
> Components: repository interface
> Affects Versions: 1.0.2
> Environment: linux, jdk 1.6, tomcat 6
> Reporter: Brill Pappin
> Assignee: Maria Odea Ching
> Priority: Critical
> Fix For: 1.1
>
>
> I installed the WAR version of Archiva into my tomcat instance... no problem
> so far.
> I then attempted to delete the default "internal" repository. I hit the
> delete config and contents button.
> At that moment I noticed that the repository directory was the tomcat home
> directory.
> Archiva managed to completely delete my Tomcat installation.
> To reproduce this, install it as a war, point a repo dir at your app server
> home, and hit the delete button (make sure you have a backup).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira