cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "aaron pieper (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CXF-3493) StaxUtils.copy(XMLStreamReader,XMLStreamWriter) does not preserve empty namespace URIs
Date Thu, 05 May 2011 21:19:03 GMT

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

aaron pieper updated CXF-3493:
------------------------------

    Attachment: StaxUtilsTest.java

A test case demonstrating the bug.

> StaxUtils.copy(XMLStreamReader,XMLStreamWriter) does not preserve empty namespace URIs
> --------------------------------------------------------------------------------------
>
>                 Key: CXF-3493
>                 URL: https://issues.apache.org/jira/browse/CXF-3493
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.4
>            Reporter: aaron pieper
>              Labels: commons, namespaces, xml
>         Attachments: StaxUtilsTest.java
>
>
> StaxUtils.copy(XMLStreamReader,XMLStreamWriter)  fails to copy documents correctly if
they declare a namespace with a zero-length URI. In some cases, this URI is frivolous, but
in other cases it is important, such as in the following document:
> <foo xmlns="http://example.com"><bar xmlns=""/></foo>
> StaxUtils will remove this zero-length URI, resulting in the following XML document:
> <foo xmlns="http://example.com"><bar/></foo>
> These two documents are not equivalent. In the first document, bar assumes the "empty
namespace". In the second document, "bar" assumes the example.com namespace.

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

Mime
View raw message