You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Emmanuel Lecharny (JIRA)" <ji...@apache.org> on 2015/04/08 13:14:12 UTC
[jira] [Commented] (DIRAPI-231) Wrong namespace in generated
response
[ 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)