You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Alexis Midon (JIRA)" <ji...@apache.org> on 2008/10/24 02:59:46 UTC

[jira] Created: (ODE-402) OMUtils.toDOM could generate NPE if attribute value contains a colon

OMUtils.toDOM could generate NPE if attribute value contains a colon
--------------------------------------------------------------------

                 Key: ODE-402
                 URL: https://issues.apache.org/jira/browse/ODE-402
             Project: ODE
          Issue Type: Bug
          Components: Axis2 Integration
    Affects Versions: 1.2
            Reporter: Alexis Midon
            Assignee: Alexis Midon


Using the static method org.apache.ode.il.OMUtils#toDOM could lead to NullPointerException if one attribute contains a colon.
Actually, ODE will try to look up a namespace based on the token before the colon. 
The case where no namespace is found is not handled, hence the NPE.

java.lang.NullPointerException
	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:98)
	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:114)
	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:60)
	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:56)
	at org.apache.ode.axis2.soapbinding.SoapMessageConverter.extractSoapHeaderParts(SoapMessageConverter.java:408)
	at org.apache.ode.axis2.soapbinding.SoapMessageConverter.parseSoapResponse(SoapMessageConverter.java:328)




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


[jira] Closed: (ODE-402) OMUtils.toDOM could generate NPE if attribute value contains a colon

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

Alexis Midon closed ODE-402.
----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.0)
                   1.3

> OMUtils.toDOM could generate NPE if attribute value contains a colon
> --------------------------------------------------------------------
>
>                 Key: ODE-402
>                 URL: https://issues.apache.org/jira/browse/ODE-402
>             Project: ODE
>          Issue Type: Bug
>          Components: Axis2 Integration
>    Affects Versions: 1.2
>            Reporter: Alexis Midon
>            Assignee: Alexis Midon
>             Fix For: 1.3
>
>
> Using the static method org.apache.ode.il.OMUtils#toDOM could lead to NullPointerException if one attribute contains a colon.
> Actually, ODE will try to look up a namespace based on the token before the colon. 
> The case where no namespace is found is not handled, hence the NPE.
> java.lang.NullPointerException
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:98)
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:114)
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:60)
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:56)
> 	at org.apache.ode.axis2.soapbinding.SoapMessageConverter.extractSoapHeaderParts(SoapMessageConverter.java:408)
> 	at org.apache.ode.axis2.soapbinding.SoapMessageConverter.parseSoapResponse(SoapMessageConverter.java:328)

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


[jira] Commented: (ODE-402) OMUtils.toDOM could generate NPE if attribute value contains a colon

Posted by "Alexis Midon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642357#action_12642357 ] 

Alexis Midon commented on ODE-402:
----------------------------------

only in trunk


> OMUtils.toDOM could generate NPE if attribute value contains a colon
> --------------------------------------------------------------------
>
>                 Key: ODE-402
>                 URL: https://issues.apache.org/jira/browse/ODE-402
>             Project: ODE
>          Issue Type: Bug
>          Components: Axis2 Integration
>    Affects Versions: 1.2
>            Reporter: Alexis Midon
>            Assignee: Alexis Midon
>
> Using the static method org.apache.ode.il.OMUtils#toDOM could lead to NullPointerException if one attribute contains a colon.
> Actually, ODE will try to look up a namespace based on the token before the colon. 
> The case where no namespace is found is not handled, hence the NPE.
> java.lang.NullPointerException
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:98)
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:114)
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:60)
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:56)
> 	at org.apache.ode.axis2.soapbinding.SoapMessageConverter.extractSoapHeaderParts(SoapMessageConverter.java:408)
> 	at org.apache.ode.axis2.soapbinding.SoapMessageConverter.parseSoapResponse(SoapMessageConverter.java:328)

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


[jira] Issue Comment Edited: (ODE-402) OMUtils.toDOM could generate NPE if attribute value contains a colon

Posted by "Alexis Midon (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/ODE-402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12642357#action_12642357 ] 

alexismidon edited comment on ODE-402 at 10/23/08 6:07 PM:
------------------------------------------------------------

fails only in trunk


      was (Author: alexismidon):
    only in trunk

  
> OMUtils.toDOM could generate NPE if attribute value contains a colon
> --------------------------------------------------------------------
>
>                 Key: ODE-402
>                 URL: https://issues.apache.org/jira/browse/ODE-402
>             Project: ODE
>          Issue Type: Bug
>          Components: Axis2 Integration
>    Affects Versions: 1.2
>            Reporter: Alexis Midon
>            Assignee: Alexis Midon
>
> Using the static method org.apache.ode.il.OMUtils#toDOM could lead to NullPointerException if one attribute contains a colon.
> Actually, ODE will try to look up a namespace based on the token before the colon. 
> The case where no namespace is found is not handled, hence the NPE.
> java.lang.NullPointerException
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:98)
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:114)
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:60)
> 	at org.apache.ode.il.OMUtils.toDOM(OMUtils.java:56)
> 	at org.apache.ode.axis2.soapbinding.SoapMessageConverter.extractSoapHeaderParts(SoapMessageConverter.java:408)
> 	at org.apache.ode.axis2.soapbinding.SoapMessageConverter.parseSoapResponse(SoapMessageConverter.java:328)

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