Uploaded image for project: 'Commons VFS'
  1. Commons VFS
  2. VFS-29

[VFS] MD5 file comparison failed whereas it should not

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: All

    • Bugzilla Id:
      38679

      Description

      I have create a FileManipulator class to perform different actions with files.
      This class especilly contains a fileCompare method which compute the MD5 sum of
      two input stream from FileObject.
      For exemple, I perform :

      FileManipulator fileManipulator = FileManipulator.getInstance();
      boolean fileDifferent =
      fileManipulator.fileCompare("tgz:http://remote/application.tar.gz!/applications/myapp.ear",
      "/tmp/myhome.ear");

      The method always returns true (so files have different MD5 sum) even when the
      files are the same (when I first copy myapp.ear from tar.gz archive).
      May VFS caches be a problem ?

      You can view the source code of FileManipulator at :
      http://cvs.sourceforge.net/viewcvs.py/buildprocess/AutoDeploy/src/java/net/sourceforge/buildprocess/autodeploy/FileManipulator.java?view=markup

      Thanks a lot for your help, because I have performs a lot of test and tries when
      I suspect the problem is around VFS.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jb@nanthrax.net Jean-Baptiste Onofré
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: