Issue 41016 - Issues with osl_getSystemPathFromFileURL on Unix
Summary: Issues with osl_getSystemPathFromFileURL on Unix
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: 680m71
Hardware: All All
: P3 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: AOO issues mailing list
QA Contact:
Depends on:
Reported: 2005-01-20 09:47 UTC by Stephan Bergmann
Modified: 2017-05-20 11:31 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Note You need to log in before you can comment on or make changes to this issue.
Description Stephan Bergmann 2005-01-20 09:47:05 UTC
I found various minor issues with osl_getSystemPathFromFileURL in
sal/osl/unx/file_url.cxx 1.8.  Note that some of them might be relevant to
Windows, too.

1  "file://localhost" is not handled correctly.  Typing "file://locahost" into
the file open dlg results in an error box "The operation on localhost was
started with an invalid parameter."  Typing "file://localhost/" works fine. 
Reason is probably line 306 of file_url.cxx 1.8.

2  "%00" is not detected within URLs.  Typing "file:///usr%00foo" into the file
open dlg effectively opens "/usr".  A URL that contains "%00" or an unescaped
U+0000 should result in an error from osl_getSystemPathFromFileURL.

3  "%2f" is handled differently than "%2F" within URLs.  Calling
returns osl::FileBase::E_INVAL, while calling
returns osl::FileBase::E_None.  (This cannot be verified at the UI, as
INetURLObject normalizes "%2f" to "%2F" within URLs.)  Reason is probably line
242 of file_url.cxx 1.8.
Comment 1 tino.rachui 2005-06-13 12:45:17 UTC
Reassigned for change of responsibilities sake.
Comment 2 kai.sommerfeld 2009-10-16 12:27:07 UTC
mav: Please take over.
Comment 3 Marcus 2017-05-20 11:31:10 UTC
Reset assigne to the default "".