Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0-M29
    • Fix Version/s: 1.0.0-M30
    • Labels:
      None

      Description

      SearchResultEntryDsml, toDsml method is using erroneous namespaces, should be "http://www.w3.org/2001/XMLSchema and http://www.w3.org/2001/XMLSchema-instance

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

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

            ...
                        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 );
            ...
        

        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 ?

        Show
        elecharny Emmanuel Lecharny added a comment - Not sure I understand... The SearchResultEntryDsml.toDsml() method contains : ... 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 ); ... 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 ?
        Hide
        elecharny Emmanuel Lecharny added a comment -

        Damn it... w3*c* instead of w3c. Good catch !

        Show
        elecharny Emmanuel Lecharny added a comment - Damn it... w3*c* instead of w3c. Good catch !
        Hide
        elecharny Emmanuel Lecharny added a comment -
        Show
        elecharny Emmanuel Lecharny added a comment - Fixed with http://svn.apache.org/r1672061

          People

          • Assignee:
            Unassigned
            Reporter:
            aberge Anne-Gaëlle Bergé
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development