You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Freeman Fang (JIRA)" <ji...@apache.org> on 2010/09/02 14:36:04 UTC

[jira] Created: (CXF-2969) StreamWriterContentHandler.getPrefix shouldn't return null if DEFAULT_NS_PREFIX is used

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


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.


[jira] Updated: (CXF-2969) StreamWriterContentHandler.getPrefix shouldn't return null if DEFAULT_NS_PREFIX is used

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ 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.


[jira] Resolved: (CXF-2969) StreamWriterContentHandler.getPrefix shouldn't return null if DEFAULT_NS_PREFIX is used

Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-2969?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Freeman Fang resolved CXF-2969.
-------------------------------

    Resolution: Fixed

commit fix
http://svn.apache.org/viewvc?rev=991939&view=rev for trunk
http://svn.apache.org/viewvc?rev=991951&view=rev for 2.2.x branch

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