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

ClassCastException in LocalFileSystem when using OnCall caching

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0, 2.0
    • 2.1
    • None

    Description

      When using OnCall caching in the file system, there is a ClassCastException in the LocalFileSystem#doReplicateFile function.

      To fix the issue, I replaced :

      final LocalFile localFile = (LocalFile) fileObject;
      by
      final LocalFile localFile = (LocalFile) FileObjectUtils.getAbstractFileObject(fileObject);

      Attachments

        1. VFS-279.patch
          1 kB
          Simon Legner
        2. LocalFileSystem.java
          3 kB
          Didier Earith

        Issue Links

          Activity

            People

              b.eckenfels Bernd Eckenfels
              earith Didier Earith
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: