directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRAPI-231) Wrong namespace in generated response
Date Wed, 08 Apr 2015 11:14:12 GMT

    [ https://issues.apache.org/jira/browse/DIRAPI-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14485081#comment-14485081
] 

Emmanuel Lecharny commented on DIRAPI-231:
------------------------------------------

Not sure I understand... The {{SearchResultEntryDsml.toDsml()}} method contains :

{code}
    ...
                if ( ParserUtils.needsBase64Encoding( value.getValue() ) )
                {
                    Namespace xsdNamespace = new Namespace( ParserUtils.XSD, ParserUtils.XML_SCHEMA_URI
);
                    Namespace xsiNamespace = new Namespace( ParserUtils.XSI, ParserUtils.XML_SCHEMA_INSTANCE_URI
);
                    Document doc = attributeElement.getDocument();

                    if ( doc != null )
                    {
                        Element docRoot = doc.getRootElement();
                        docRoot.add( xsdNamespace );
                        docRoot.add( xsiNamespace );
    ...
{code}

where {{ParserUtils.XML_SCHEMA_URI}} value is "http://www.w3c.org/2001/XMLSchema" and {{ParserUtils.XML_SCHEMA_INSTANCE_URI
}} value is "http://www.w3c.org/2001/XMLSchema-instance".

What's exactly is wrong ?

> Wrong namespace in generated response
> -------------------------------------
>
>                 Key: DIRAPI-231
>                 URL: https://issues.apache.org/jira/browse/DIRAPI-231
>             Project: Directory Client API
>          Issue Type: Bug
>    Affects Versions: 1.0.0-M29
>            Reporter: Anne-Gaëlle Bergé
>
> SearchResultEntryDsml, toDsml method is using erroneous namespaces, should be "http://www.w3.org/2001/XMLSchema
and http://www.w3.org/2001/XMLSchema-instance



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message