You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Scott Cantor (JIRA)" <ji...@apache.org> on 2017/12/27 16:46:00 UTC

[jira] [Updated] (SANTUARIO-277) URI references using HTTPS protocol are not properly handled by the XSECURIResolverGenericWin32::resolveURI method.

     [ https://issues.apache.org/jira/browse/SANTUARIO-277?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor updated SANTUARIO-277:
-----------------------------------
    Fix Version/s: C++ 2.0.0

> URI references using HTTPS protocol are not properly handled by the XSECURIResolverGenericWin32::resolveURI method.
> -------------------------------------------------------------------------------------------------------------------
>
>                 Key: SANTUARIO-277
>                 URL: https://issues.apache.org/jira/browse/SANTUARIO-277
>             Project: Santuario
>          Issue Type: Bug
>      Security Level: Public(Public issues, viewable by everyone) 
>          Components: C++
>    Affects Versions: C++ 1.6.0, C++ 1.6.1, C++ 1.7.0, C++ 1.7.1, C++ 1.7.2
>         Environment: MS Windows
>            Reporter: Michal Bystrianin
>            Assignee: Scott Cantor
>             Fix For: C++ 2.0.0
>
>
> HTTPS protocol used in URI reference isn't recognized as valid URI scheme. Note: this bug exists also in XSECURIResolverGenericUnix class.
> Simple possible solution: declare new pattern for this scheme
> static const XMLCh gHttpsScheme[] = {
> 	chLatin_h,
> 	chLatin_t,
> 	chLatin_t,
> 	chLatin_p,
> 	chLatin_s,
> 	chNull
> };
> and replace two lines at end of the "resolveURI" method by code as below:
> 	// Is the scheme a HTTP or HTTPS?
> 	if (!XMLString::compareIString(xmluri->getScheme(), gHttpScheme) ||
>         !XMLString::compareIString(xmluri->getScheme(), gHttpsScheme)) {



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)