You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Carl Eric Codere (JIRA)" <ji...@apache.org> on 2018/04/11 21:21:00 UTC

[jira] [Created] (VFS-659) Inconsistent behavior with VFS.isUriStyle setting

Carl Eric Codere created VFS-659:
------------------------------------

             Summary: Inconsistent behavior with VFS.isUriStyle setting
                 Key: VFS-659
                 URL: https://issues.apache.org/jira/browse/VFS-659
             Project: Commons VFS
          Issue Type: Bug
    Affects Versions: 2.1
            Reporter: Carl Eric Codere
         Attachments: AbstractFileName.patch

When enabling the VFS.isUriStyle setting to have URI formats containing a trailing SEPARATOR_CHAR when the FileObject points to a directory, I discovered that filename parsing would not work as expected.
 * getParent() does not seem to return the correct parent in the URI.
 * getPath() would sometimes lead to a double SEPARATOR_CHAR returned (I am not sure but this patch could possible issues in SMB parsing?)
 * createURI() would also return an invalid value, but maybe this patch might break the non URI style configuration.

I have included the patch in attachment, maybe it will be of some use to someone, but please double check it before applying, as my objective was to make it work in my use-case.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)