R: symbolic link in application delete contents after redeploy
Yes of course these are the steps to reproduce the problem:
1)Deploy a simple application in this case we use exai application:
2) Create a symbolic to an external directory( like showed in the following
drwxr-xr-x 8 root root 4096 19 set 16:11 .
drwxr-xr-x 7 root root 4096 19 set 16:08 ..
drwxr-xr-x 2 root root 4096 19 set 16:08 component
lrwxrwxrwx 1 root root 15 19 set 16:11 exai_media ->
-rw-r--r-- 1 root root 429 19 set 16:08 index.xhtml
drwxr-xr-x 2 root root 4096 19 set 16:08 media
drwxr-xr-x 2 root root 4096 19 set 16:08 META-INF
drwxr-xr-x 2 root root 4096 19 set 16:08 pages
drwxr-xr-x 3 root root 4096 19 set 16:08 themes
drwxr-xr-x 4 root root 4096 19 set 16:08 WEB-INF
3) Redeploy the same application.
4) Now if you check in /archivio_exai/ that was previously linked in the
application you will notice that all files are deleted.
With glassfish 3.0.1 we don't have this kind of problem after the upgrade to
18.104.22.168/3.1.2 we notice this . Let me know if is possible to solve it.
Thanks and Regards
This sounds like a bug. Can you file an issue with a reproducible test case
(with the steps)? When you said the behavior was different for previous
version, which version is that?
> Hi all,
> with the last release of glassfish 22.214.171.124 and also in 3.1.2 i have
> noticed a strange behaviour when i undeploy or redeploy an
> application.. If I deploy an application and then create a symbolic
> link inside it (that point for example to external storage) when I
> redeploy the application all the content of this link is recursively
> deleted.. In the previous version an undeploy or redeploy only delete
> the link but not all its content. Do you think is it a bug? Or a new
> feature? Is possible to fix this to permit the deletion of the
> symbolic link but not the content.
> Simone Cariani