You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2006/04/27 05:42:23 UTC

DO NOT REPLY [Bug 39421] New: - File type info lost when resolving name through DefaultFileSystemManager

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39421

           Summary: File type info lost when resolving name through
                    DefaultFileSystemManager
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: VFS
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: chris.digiano@sri.com


In DefaultFileSystemManager.resolveName(FileName, String, NameScope)
(beginning on line 614 in the 2006/04/26 nightly build)
if one passes a name ending in "/" such as
file:///my_folder/
the local variable fileType gets properly assigned to "folder".
However, if name parsing is delegated to a provider by invoking
parseUri(FileName, String) this type information gets lost. Currently, the
string passed to parseUri get normalised before parseUri is invoked, causing the
trailing slash to be stripped.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39421] - File type info lost when resolving name through DefaultFileSystemManager

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39421





------- Additional Comments From chris.digiano@sri.com  2006-04-27 03:48 -------
Created an attachment (id=18188)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=18188&action=view)
One line change to DefaultFileSystemManager.resolveName

I believe this patch fixes the bug simply by passing the prenormalized path to
parseUri. However, I'm new to VFS development and haven't figured out to set up
the test environment to run the unit tests. Can someone confirm there is no
regression?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39421] - [vfs] File type info lost when resolving name through DefaultFileSystemManager

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39421


mario@ops.co.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |LATER




------- Additional Comments From mario@ops.co.at  2006-04-27 05:44 -------
Hi!

Please provide patches as "svn diff" output, that way its easier to see whats
changed.

Please do not use FileName.getType(), this is experimental code and not finished
yet.

How to setup a testserver you'll find here:
http://jakarta.apache.org/commons/vfs/testserver.html
Though, there is also a VMWare Player image with all the stuff already setup.
Just send a PM if you would like it.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39421] - [vfs] File type info lost when resolving name through DefaultFileSystemManager

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39421


mario@ops.co.at changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|File type info lost when    |[vfs] File type info lost
                   |resolving name through      |when resolving name through
                   |DefaultFileSystemManager    |DefaultFileSystemManager




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 39421] - [vfs] File type info lost when resolving name through DefaultFileSystemManager

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=39421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=39421





------- Additional Comments From chris.digiano@sri.com  2006-04-28 16:45 -------
Thanks for the tip on using svn diff next time. I will avoid FileName.getType()
for now.

Regarding the test setup, is there any way to do this under Mac OS X?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org