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

ClassCastException in LocalFileSystem when using OnCall caching

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0, 2.0
    • Fix Version/s: 2.1
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: