cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CXF-2969) StreamWriterContentHandler.getPrefix shouldn't return null if DEFAULT_NS_PREFIX is used
Date Thu, 02 Sep 2010 12:37:53 GMT

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

Freeman Fang updated CXF-2969:
------------------------------

    Attachment: testcase.patch

testcase to expose this problem

> StreamWriterContentHandler.getPrefix shouldn't return null if DEFAULT_NS_PREFIX is used
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-2969
>                 URL: https://issues.apache.org/jira/browse/CXF-2969
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Freeman Fang
>            Assignee: Freeman Fang
>             Fix For: 2.3, 2.2.11
>
>         Attachments: testcase.patch
>
>
> think about the message like
> <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope"><soap:Body><add
xmlns="http://apache.org/cxf/calculator/types"><arg0>1</arg0><arg1>2</arg1></add></soap:Body></soap:Envelope>
> here "add" element  has namespace http://apache.org/cxf/calculator/types, but use DEFAULT_NS_PREFIX
"", in this case getPrefix should empty string "" , but not null.
> Attach a testcase to expose this problem, current code will throw XMLStreamException

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message