[JIRA] Updated: (JXT-47) Should avoid emitting the unnecessary xml namespace declarations when marshalling

Scott Cantor (JIRA) noreply at shibboleth.net
Mon Nov 5 10:56:07 EST 2012


     [ https://issues.shibboleth.net/jira/browse/JXT-47?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott Cantor updated JXT-47:
----------------------------

    Fix Version/s:     (was: 1.2.1)
                   1.4.0
         Assignee: Brent Putman  (was: Brent Putman)

I don't think anything's changed, it's probably still a xalan bug, but we should re-verify this.

> Should avoid emitting the unnecessary xml namespace declarations when marshalling
> ---------------------------------------------------------------------------------
>
>                 Key: JXT-47
>                 URL: https://issues.shibboleth.net/jira/browse/JXT-47
>             Project: XMLTooling - Java
>          Issue Type: Improvement
>          Components: Marshalling
>            Reporter: Brent Putman
>            Assignee: Brent Putman
>            Priority: Minor
>             Fix For: 1.4.0
>
>
> We are unnecessarily declaring the "xml" namespace prefix when elements have attributes from this namespace, such as "xml:lang".  While technically legal, this apparently causes problems with some software, for example the current C++ Apache xmlsec library, which (incorrectly) includes the namespace node during canonicalization, causing signature validation to fail.
> For example this input:
> <Organization>
>   <OrganizationName xml:lang="en">Urizen2</OrganizationName>
>   <OrganizationDisplayName xml:lang="en">Fox's test system </OrganizationDisplayName>
>   <OrganizationURL xml:lang="en">http://urizen2.cac.washington.edu/</OrganizationURL>
> </Organization>
> Results in this output:
> <Organization>
>   <OrganizationName xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en">Urizen2</OrganizationName>
>   <OrganizationDisplayName xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en">Fox's test system </OrganizationDisplayName>
>   <OrganizationURL xmlns:xml="http://www.w3.org/XML/1998/namespace" xml:lang="en">http://urizen2.cac.washington.edu/</OrganizationURL>
> </Organization>

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the commits mailing list