commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carl Eric Codere (JIRA)" <j...@apache.org>
Subject [jira] [Created] (VFS-659) Inconsistent behavior with VFS.isUriStyle setting
Date Wed, 11 Apr 2018 21:21:00 GMT
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)

Mime
View raw message