glassfish
  1. glassfish
  2. GLASSFISH-19105

Symbolic link present in application deletes contents recursively after update or redeploy

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 4.0_dev
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      RHEL5, GF3.1.2.2

      Description

      If I create a symbolic link inside my application after deployment. Any Update or Deploy will delete all the contents through the Symbolic Link.

      Steps to Reproduce:

      1)Deploy Application
      2)Create SymLink to an outside directory
      3)Update or Redeploy Application
      4)Verify all contents of the outside directory are gone.

      I am unable to move to a different version currently, but this does not happen in previous versions.

        Activity

        Hide
        Hong Zhang added a comment -

        Thanks for filing the issue! As I replied to the email thread, the fix was checked into the GF 4.0 (trunk).

        Will it work if I provide you a private patch for 3.1.* (send you an updated class which you could apply to a jar in your installation directory)?

        I can also talk to the sustaining team to see if they can include the fix in the next 3.1.2 dot/patch release, but not too sure when the next release will come out and if they can include this fix...

        Show
        Hong Zhang added a comment - Thanks for filing the issue! As I replied to the email thread, the fix was checked into the GF 4.0 (trunk). Will it work if I provide you a private patch for 3.1.* (send you an updated class which you could apply to a jar in your installation directory)? I can also talk to the sustaining team to see if they can include the fix in the next 3.1.2 dot/patch release, but not too sure when the next release will come out and if they can include this fix...
        Hide
        smcgrath82 added a comment -

        Yes I can apply the patch to the jar.

        Thanks!

        Show
        smcgrath82 added a comment - Yes I can apply the patch to the jar. Thanks!
        Hide
        Hong Zhang added a comment -

        I have attched the patch jar for 3.1.2 code base in the issue. Please following the steps below and let me know how things work out.
        1. Extract the patch jar I attached to the issue.
        2. Use the extracted com/sun/enterprise/deploy/shared/FileArchive* classes to update the deployment-common.jar in
        your GlassFish installation modules directory $GF_INSTALL/modules (you can save a copy of the original jar before you update).
        3. (Re)start server.

        Show
        Hong Zhang added a comment - I have attched the patch jar for 3.1.2 code base in the issue. Please following the steps below and let me know how things work out. 1. Extract the patch jar I attached to the issue. 2. Use the extracted com/sun/enterprise/deploy/shared/FileArchive* classes to update the deployment-common.jar in your GlassFish installation modules directory $GF_INSTALL/modules (you can save a copy of the original jar before you update). 3. (Re)start server.
        Hide
        Hong Zhang added a comment -

        This issue was fixed in GF 4.0 trunk.

        Show
        Hong Zhang added a comment - This issue was fixed in GF 4.0 trunk.

          People

          • Assignee:
            Hong Zhang
            Reporter:
            smcgrath82
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: