<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>8183</bug_id>
          
          <creation_ts>2009-11-04 18:35:36 +0000</creation_ts>
          <short_desc>Transfer: be clear on fault for bad representation</short_desc>
          <delta_ts>2010-03-17 11:31:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WS-Resource Access</product>
          <component>Transfer</component>
          <version>FPWD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>REMIND</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Doug Davis">dug</reporter>
          <assigned_to name="Doug Davis">dug</assigned_to>
          <cc>ram.jeyaraman</cc>
          
          <qa_contact name="notifications mailing list for WS Resource Access">public-ws-resource-access-notifications</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>29311</commentid>
    <comment_count>0</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2009-11-04 18:35:36 +0000</bug_when>
    <thetext>Transfer.Put() says:
--
Implementations MAY use the fault code wst:InvalidRepresentation if the presented representation is invalid for the target resource. The replacement representation could be considered to be invalid if it does not conform to the schema(s) for the target resource or otherwise violates some cardinality or type constraint. If an implementation detects that the presented representation is invalid it MUST generate a wst:InvalidRepresentation fault. 
--

The MAY in the first sentence is inconsistent with the MUST at the end.

Also, Create says:
--
In addition to the standard fault codes defined in WS-Addressing, implementations MAY use the fault code wst:InvalidRepresentation if the presented representation is invalid for the target resource. 
--
Why mention WSA faults?  that&apos;s just odd.
Why MAY?  For consistency, and interop, we should make this a MUST.

Proposal:
Replace first para with:
Implementations MUST use the fault code wst:InvalidRepresentation if the presented representation is invalid for the target resource. The replacement representation could be considered to be invalid if it does not conform to the schema(s) for the target resource or otherwise violates some cardinality or type constraint.
(s/MAY/MUST/ and remove last sentence)

And in Create replace that sentence with:
An implementation MUST use the fault code wst:InvalidRepresentation if the presented representation is invalid for the target resource.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29312</commentid>
    <comment_count>1</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2009-11-04 18:39:22 +0000</bug_when>
    <thetext>just noticed that Delete says:
--
Implementations MAY respond with a fault message using the standard fault codes defined in WS-Addressing (e.g., wsa:ActionNotSupported). 
--
too.  

Amended proposal:
remove this sentence too.  We don&apos;t need to repeat the WSA spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30310</commentid>
    <comment_count>2</comment_count>
    <who name="Ram Jeyaraman">ram.jeyaraman</who>
    <bug_when>2010-01-02 18:24:46 +0000</bug_when>
    <thetext>I like to suggest a slightly modified proposal below. This allows the implementation to decide whether or not to do schema validation. 

Transfer.Put():

From:

Implementations MAY use the fault code wst:InvalidRepresentation if the
presented representation is invalid for the target resource. 

To:

Implementations MUST use the fault code wst:InvalidRepresentation if they detect that the presented representation is invalid for the target resource. 

Transfer.Create():

From:

In addition to the standard fault codes defined in WS-Addressing,
implementations MAY use the fault code wst:InvalidRepresentation if the
presented representation is invalid for the target resource. 

To:

An implementation MUST use the fault code wst:InvalidRepresentation if it detects that the presented representation is invalid for the target resource.

Transfer.Delete :

Remove:
Implementations MAY respond with a fault message using the standard fault codes
defined in WS-Addressing (e.g., wsa:ActionNotSupported).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30550</commentid>
    <comment_count>3</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2010-01-05 21:42:52 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/public-ws-resource-access/2010Jan/0025.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30976</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Freund">bob</who>
    <bug_when>2010-01-12 15:17:05 +0000</bug_when>
    <thetext>2010-01-05 resolved with:
&lt;Ram&gt; If an implementation that performs schema validation on a presented representation detects that the presented representation is invalid for the target resource, then the implementation MUST use the fault code wst:InvalidRepresentation.

Proposal: modify 1st sentence of Put text, and Create text, with Ram&apos;s text above. Remove last sentence of Put para. Remove the WSA text from delete.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>