You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2007/03/16 02:15:09 UTC

[jira] Commented: (WSCOMMONS-151) OMSerializerUtil serializes attributes with NULL names

    [ https://issues.apache.org/jira/browse/WSCOMMONS-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12481408 ] 

Davanum Srinivas commented on WSCOMMONS-151:
--------------------------------------------

Glen,

Since you are looking into axiom...can u please check this one?

-- dims

> OMSerializerUtil serializes attributes with NULL names
> ------------------------------------------------------
>
>                 Key: WSCOMMONS-151
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-151
>             Project: WS-Commons
>          Issue Type: Improvement
>          Components: AXIOM
>         Environment: spring-ws-1.0-m2, axiom-1.2.2
>            Reporter: Petri Reiman
>         Assigned To: Glen Daniels
>
> Currently it is possible to add OMAttributes to OMElementImpl where OMAttributeImpl.localName value is null. This results in OMSerializer output of form <ns:element ="value"/> where the attribute value is missing and the resulting document is invalid.
> These kind of attributes should not  be added by the client code in the first place, but should't we safeguard against this either by
> 1) Ignoring attributes with no serializable name when serializing ( at the end of OMSerializerUtil.serializeStartpart where attributes are written)
> 2) Prevent adding malforned attributes - this would help catching errors on the client side
>  
> We got this error while implementing document based service with spring-ws. First element of the return message body had a namespace declaration with no attribute name.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org