To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=41016
                  Issue #:|41016
                  Summary:|Issues with osl_getSystemPathFromFileURL on Unix
                Component:|udk
                  Version:|680m71
                 Platform:|All
                      URL:|
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|tra
              Reported by:|sb





------- Additional comments from [EMAIL PROTECTED] Thu Jan 20 01:47:05 -0800 
2005 -------
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
 
osl::FileBase::getSystemPathFromFileURL(rtl::OUString::createFromAscii("file:///foo%2Fbar"),
path)
returns osl::FileBase::E_INVAL, while calling
 
osl::FileBase::getSystemPathFromFileURL(rtl::OUString::createFromAscii("file:///foo%2fbar"),
path)
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.

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to