Bug 11894 - Eventing/Enum: duration in responses
: Eventing/Enum: duration in responses
Status: RESOLVED REMIND
Product: WS-Resource Access
Eventing
: CR
: PC Windows XP
: P2 normal
: ---
Assigned To: notifications mailing list for WS Resource Access
: notifications mailing list for WS Resource Access
:
:
: hasProposal
:
:
  Show dependency treegraph
 
Reported: 2011-01-27 18:12 UTC by Doug Davis
Modified: 2011-02-16 04:43 UTC (History)
0 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doug Davis 2011-01-27 18:12:26 UTC
In SubscribeResponse it says that the expires time (when its a duration)
is the time the subscription will expire based on when the subscription was 
created.

However, when this expires time appears in GetStatusResponse and
RenewResponse its not clear what the duration start-time is.
We should clear up if its the start-time of the Subscription or
of the request message.

If its the start-time of the Subscription then I'm not really
sure how useful this is.  If the client uses GetStatus to get
the expires time then there's a good possibility that they 
don't have the start-time of the subscription - if they did then
I suspect they would know the expires time they got in the 
SubscribeResponse.

Proposal:
We should make the GrantedExpires time (when its a duration) 
into "how much time is left".

This applies to enum too.
Comment 1 Doug Davis 2011-01-31 17:02:18 UTC
Proposal:

Change:
------
When expressed as a duration, the wse:GrantedExpires element designates a time
interval that began at the moment the subscription is created. Although this
specification cannot dictate when, during the processing of a Subscribe
request, a subscription is created, the event source MUST start the expiration
interval at or before it transmits the wse:SubscribeResponse message. 
------

to:
-----
When expressed as a duration, the wse:GrantedExpires element designates the
amount of time remaining on this subscription as measured from the moment
the request message was processed. Although this specification cannot dictate
when, during the processing of a request, a subscription is manipulate, the 
event source MUST measure the expiration duration from a time that is at or 
before it transmits the response message. 
----

And do the same type of change for Enum
Comment 2 Robert Freund 2011-02-15 18:21:24 UTC
When expressed as a duration, the wse:GrantedExpires element designates the
amount of time remaining on this subscription as measured from the moment the
request message was processed. Although this specification cannot dictate when,
during the processing of a request message a subscription's remaining time  is
determined, the event source MUST measure the expiration duration from  a time
that is at or before the transmission of the response message.
Comment 3 Robert Freund 2011-02-15 18:21:48 UTC
Resolved with comment 2


  翻译: