Kaydet (Commit) 2220bdcb authored tarafından Chris Sherlock's avatar Chris Sherlock Kaydeden (comit) Stephan Bergmann

osl: qa test of %2F - for file URIs this is invalid

Change-Id: I3871355bb4556b408504ab70194885a2084ad80b
Reviewed-on: https://gerrit.libreoffice.org/37859Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst bd4aa1e0
......@@ -800,11 +800,24 @@ namespace osl_FileBase
void SystemPath_FileURL::getSystemPathFromFileURL_001_21()
{
#if 0
/* From RFC3986, "2.2. Reserved Characters":
"The purpose of reserved characters is to provide a set of delimiting
characters that are distinguishable from other data within a URI.
URIs that differ in the replacement of a reserved character with its
corresponding percent-encoded octet are not equivalent. Percent-
encoding a reserved character, or decoding a percent-encoded octet
that corresponds to a reserved character, will change how the URI is
interpreted by most applications. Thus, characters in the reserved
set are protected from normalization and are therefore safe to be
used by scheme-specific and producer-specific algorithms for
delimiting data subcomponents within a URI."
In other words, %2F ("/") is NOT the same as /.
*/
OString sURL("%2F");
checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_None, "/"); // LLA: this is may be a BUG
checkUNXBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, "");
checkWNTBehaviour_getSystemPathFromFileURL(sURL, osl::FileBase::E_INVAL, "");
#endif
}
void SystemPath_FileURL::getSystemPathFromFileURL_001_22()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment