Commons VFS
  1. Commons VFS
  2. VFS-130

Unable to write to home directory on Windows

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Windows XP Pro SP2, JRE 1.4.2

      Description

      When we try to create a file in the home directory on Windows (My Documents, Mijn Documents or any other name in any other locale) we get an exception:

      /** SNIPPED */
      Caused by: org.apache.commons.vfs.FileSystemException: Could not write to "file:///C:/Documents and Settings/Matt/Mijn documenten/aaa.ktr" because it is read-only.
      at org.apache.commons.vfs.provider.AbstractFileObject.getOutputStream(AbstractFileObject.java:1199)
      at org.apache.commons.vfs.provider.AbstractFileObject.getOutputStream(AbstractFileObject.java:1180)
      at org.apache.commons.vfs.provider.AbstractFileObject.createFile(AbstractFileObject.java:787)
      ... 14 more

      Checked with Cygwin and the home directory is flagged as read-only by default. The system then assumes that the user has all possible rights because it is the user directory or something because using any other tool you can write to the directory, delete files, etc. Doing a "chmod a+w" on that directory fixes it, but without cygwin installed I didn't find a workaround on Windows yet.

      References:
      http://forums.pentaho.org/showthread.php?p=160267
      http://jira.pentaho.org:8080/browse/PDI-4

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Matt Casters
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development