This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 8193 - Fragment: Replace mode could be clearer
Summary: Fragment: Replace mode could be clearer
Status: CLOSED REMIND
Alias: None
Product: WS-Resource Access
Classification: Unclassified
Component: Fragment (show other bugs)
Version: LC
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Doug Davis
QA Contact: notifications mailing list for WS Resource Access
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-04 23:16 UTC by Doug Davis
Modified: 2010-03-17 10:51 UTC (History)
0 users

See Also:


Attachments

Description Doug Davis 2009-11-04 23:16:42 UTC
 
Comment 1 Doug Davis 2009-11-04 23:34:08 UTC
Frag says:
--
[Body]/wst:Put/wsf:Fragment/wsf:Expression@Mode="http://www.w3.org/2009/09/ws-fra/Modes/Replace"

    When the Mode attribute is set to a value of "http://www.w3.org/2009/09/ws-fra/Modes/Replace" the resource representation specified within the Value element MUST replace the entire resource representation referenced by the children of the Expression element, if it exists. 
--

While its implied that if the Expression points to something that doesn't 
exist it should just add it, we need to make it clear.

Proposal:
Add to the end of the above text add:
--
If it doesn't exist then the Value is simply added to the resource representation.
--
Comment 2 Doug Davis 2010-03-03 02:30:10 UTC
Resolve on 3/2/2010 with proposal in: 
 http://lists.w3.org/Archives/Public/public-ws-resource-access/2010Feb/0022.html

with the following modifications:
- Keep a "Remove" mode
- "Replace" mode MUST have a Value element
- to "Replace" add something like:
    If the expression is invalid per the xsd, assuming xsd checking, 
    then it MUST generate an invalidExpression fault
- Rename "Insert" to "Add"