<?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>11698</bug_id>
          
          <creation_ts>2011-01-08 12:37:29 +0000</creation_ts>
          <short_desc>Eventing: Format@Name is ambiguous</short_desc>
          <delta_ts>2011-09-13 21:27:25 +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>Eventing</component>
          <version>CR</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>hasProposal</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="notifications mailing list for WS Resource Access">public-ws-resource-access-notifications</assigned_to>
          
          
          <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>43941</commentid>
    <comment_count>0</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2011-01-08 12:37:29 +0000</bug_when>
    <thetext>Format is defined as:
----
 &lt;wse:Format Name=&quot;xs:anyURI&quot;? &gt; xs:any* &lt;/wse:Format&gt; ?

[Body]/wse:Subscribe/wse:Format
    This OPTIONAL element contains the delivery format to be used for notification messages sent in relation to this subscription. Implied value is &quot;http://www.w3.org/2002/ws/ra/edcopies/ws-evt/DeliveryFormats/Unwrap&quot;, which indicates that unwrapped delivery MUST be used. See Section 2.3 Notification Formats for details.

    If the event source does not support the requested delivery format, the request MUST generate a wse:DeliveryFormatRequestedUnavailable fault indicating that the requested delivery format is not supported. 
----

Notice that &quot;Name&quot; is optional.
While we say that the default value for &quot;Format&quot; is &quot;Unwrap&quot;, we never really
say what the default value for @Name is. By this I mean, I read the above text
to say &quot;If Format is missing then use Unwrap&quot;.  But what&apos;s missing is the
text that says &quot;If Format is present, but @Name is missing, then use Unwrap&quot;.
While I think its implies, I think we should clear this up.

Proposals:
1 - remove the optionality of @Name. So, if you go thru the trouble of
    putting in a Format element, then you must also add a Name. 

2 - Modify the Format section to be:
[Body]/wse:Subscribe/wse:Format
    This OPTIONAL element contains the delivery format to be used for notification messages sent in relation to this subscription. Implied value is
&quot;http://www.w3.org/2002/ws/ra/edcopies/ws-evt/DeliveryFormats/Unwrap&quot;, which indicates that unwrapped delivery MUST be used. See Section 2.3 Notification Formats for details. 

[Body]/wse:Subscribe/wse:Format/@Name
    Implied value is &quot;http://www.w3.org/2002/ws/ra/edcopies/ws-evt/DeliveryFormat/Unwrap&quot;. 

    If the event source does not support the requested delivery format, the request MUST generate a wse:DeliveryFormatRequestedUnavailable fault indicating that the requested delivery format is not supported.
&lt;&lt; existing para, just moved from wse:Format section &gt;&gt;

I prefer option 2 as that will align it with other elements, like Filter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44727</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Freund">bob</who>
    <bug_when>2011-01-25 20:52:30 +0000</bug_when>
    <thetext>option 2 does not require a schema change</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44991</commentid>
    <comment_count>2</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2011-02-01 21:27:36 +0000</bug_when>
    <thetext>to be clear - the formal proposal is #2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45616</commentid>
    <comment_count>3</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2011-02-15 18:10:49 +0000</bug_when>
    <thetext>tweak it like:
This OPTIONAL element contains the delivery format to be used for notification messages sent in relation to this subscription. The absence of this element is equivalent to its presence with a @Name value of &quot;http: . . &quot;

per Gil&apos;s suggestion</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45617</commentid>
    <comment_count>4</comment_count>
    <who name="Robert Freund">bob</who>
    <bug_when>2011-02-15 18:12:04 +0000</bug_when>
    <thetext>resolved with option 2 plus comment 3</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>