8192 discussion

http://www.w3.org/Bugs/Public/show_bug.cgi?id=8192

I agree that there is no need for a top-level wsf:InvalidFragment fault if the following were true: If there is anything wrong with either of the children of wsf:Fragment, namely wsf:Expression or wsf:Value, an wsf:InvalidExpression fault or wst:InvalidRepresentation fault would be generated.

WS-Fragment Put defines three modes: Insert, Replace, and Remove. The wsf:Fragment/wsf:Value element applies only to Insert and Replace, and it contains the fragment resource representation. Since the wsf:Fragment/wsf:Value element always contains  the fragment resource representation, it seems reasonable to generate a wst:InvalidRepresentation fault if the content/representation is incorrect.

Summary:

1.        Remove "If the contents of this element are invalid a wsf:InvalidFragment fault MUST be generated" from [1] and the corresponding fault definition.

2.       Add "If the contents of this element are invalid, a wst:InvalidRepresentation fault MUST be generated" to first paragraph in [2].

Thanks.

[1]

[Body]/wst:Put/wsf:Fragment
This element contains an expression that identifies the location of a fragment in the resource and a value for the fragment. If the contents of this element are invalid a wsf:InvalidFragment fault MUST be generated.
[2]

[Body]/wst:Put/wsf:Fragment/wsf:Value
This OPTIONAL element contains the fragment resource representation corresponding to the subset of the resource identified by the wsf:Expression element.
When Mode is "http://www.w3.org/2009/09/ws-fra/Modes/Insert" or "http://www.w3.org/2009/09/ws-fra/Modes/Replace", any optional values (element or attributes) within this subset that are not specified in the Value element will be set to a resource-specific default value.
This element MUST NOT be present if the Mode attribute has a value of "http://www.w3.org/2009/09/ws-fra/Modes/Remove". This element MUST be present if the Mode attribute has a value of either "http://www.w3.org/2009/09/ws-fra/Modes/Replace" or "http://www.w3.org/2009/09/ws-fra/Modes/Insert". When present, this element can either be empty or non-empty.

Received on Tuesday, 15 December 2009 18:34:40 UTC