<?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>11949</bug_id>
          
          <creation_ts>2011-02-01 19:54:34 +0000</creation_ts>
          <short_desc>Eventing: runtime detection of filter errors</short_desc>
          <delta_ts>2011-09-13 21:34:09 +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>44984</commentid>
    <comment_count>0</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2011-02-01 19:54:34 +0000</bug_when>
    <thetext>See:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11703

In particular:
Additionally, there&apos;s another issue here.  The above fault can only be
generated during subscribe time.  However, not all event sources will
evaluate the expression at that time - some may only do so afterwards
(while processing new events).  Its not clear to me what should happen
in this case.  I&apos;m leaning towards us changing the spec so that when this
happens the Subscription terminates (unexpectedly - e.g. generate an
endSubscription msg) so that the sink knows why its not receiving any
notifications.  But I&apos;d like to discuss this in the group.

Proposal:
Modify this paragraph:
-----
It is possible for a Subscribe request to contain a filter that will never evaluate to true for the lifetime of the subscription. If an event source detects this condition it MUST generate a wse:EmptyFilter fault in response to the Subscribe request message.
-----

to be:
----
It is possible for a Subscribe request to contain a filter that will never evaluate to true for the lifetime of the subscription. If an event source detects this condition **during the processing of the Subscribe request**
it MUST generate a wse:EmptyFilter fault in response to the Subscribe request message.  ** If, after the Subscribe response message has been sent, the
event source determines that the filter will never evaluate to true for the
lifetime of the subscription, or if there is an error within the
filter expression, the subscription MUST be terminated. In this case
if an EndTo was provided, then a SubscriptionEnd message MUST be sent with 
a Status value of &quot;http://www.w3.org/2002/ws/ra/edcopies/ws-evt/SourceCancelling/SourceCancelling&quot;.  **
----

And do the same thing for enumeration</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45603</commentid>
    <comment_count>1</comment_count>
    <who name="Doug Davis">dug</who>
    <bug_when>2011-02-15 17:24:21 +0000</bug_when>
    <thetext>New proposal:

It is possible for a Subscribe request to contain a filter that will never
evaluate to true for the lifetime of the subscription. If an event source
detects this condition **during the processing of the Subscribe request**
it MUST generate a wse:EmptyFilter fault in response to the Subscribe request
message.  ** If, after the SubscribeResponse message has been sent, the
event source determines that the filter will never evaluate to true for the
lifetime of the subscription, or if there is an error within the
filter expression, the subscription MUST be terminated. In this case
if an EndTo was provided, then a SubscriptionEnd message MUST be sent with 
a Status value of
&quot;http://www.w3.org/2002/ws/ra/edcopies/ws-evt/SourceCancelling/SourceCancelling&quot;.
 **</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45604</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Freund">bob</who>
    <bug_when>2011-02-15 17:25:49 +0000</bug_when>
    <thetext>resolved with proposal in comment 1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>