[
https://issues.apache.org/jira/browse/WSCOMMONS-151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12475366
]
Davanum Srinivas commented on WSCOMMONS-151:
--------------------------------------------
Petri,
Could you please help with a patch/test cases?
thanks,
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
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]