<?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>3554</bug_id>
          
          <creation_ts>2006-07-31 21:27:04 +0000</creation_ts>
          <short_desc>&quot;Policy Alternatives&quot; and &quot;Policy&quot; need proper definition</short_desc>
          <delta_ts>2006-08-31 14:34:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WS-Policy</product>
          <component>Framework</component>
          <version>FPWD</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/public-ws-policy/2006Jul/0113.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>editorial</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Prasad Yendluri">prasad.yendluri</reporter>
          <assigned_to name="Prasad Yendluri">prasad.yendluri</assigned_to>
          <cc>asirveda</cc>
    
    <cc>Daniel.Roth</cc>
    
    <cc>prasad.yendluri</cc>
          
          <qa_contact name="Web Services Policy WG QA List">public-ws-policy-qa</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10903</commentid>
    <comment_count>0</comment_count>
    <who name="Prasad Yendluri">prasad.yendluri</who>
    <bug_when>2006-07-31 21:27:04 +0000</bug_when>
    <thetext>From: public-ws-policy-request@w3.org [mailto:public-ws-policy-request@w3.org] On Behalf Of Prasad Yendluri
Sent: Wednesday, July 26, 2006 4:16 PM
To: public-ws-policy@w3.org
Subject: NEW ISSUE: &quot;Policy Alternatives&quot; and &quot;Policy&quot; need proper definit ion

Title: &quot;Policy Alternatives&quot; and &quot;Policy&quot; need proper definition
 
Description: Section 2.3 terminology defines a policy to be, a collection of policy alternatives
No further constraints on how these alternatives are grouped, i.e. on the origin of alternatives in the collection.

Similarly section 3.2 (Policy) defines a policy to be: a policy is a potentially empty collection of policy alternatives.

This collection does not account for level of nesting of a specific policy alternative. 

Section 2.3 terminology defines a Policy Alternative to be a collection of policy assertions only. 
No further restriction on how these assertions are grouped (or) the origin of the assertions in the collection.


Similarly section 3.2 (Policy Alternative) defines a policy alternative to be: 
A policy alternative is a logical construct which represents a potentially empty collection of policy assertions. An alternative with zero assertions indicates no behaviors.

This collection again does not account for level of nesting of a policy assertion included.

Justification:
There is scope for interpretation that needs to be eliminated. policy assertion and policy definitions need to account for level of nesting of the collection they define. 
 
Target: WS-Policy 1.5 - Framework
 
Proposal  Tighten up the definitions of policy and policy assertion. Sorry I have not come up suggestion for a specific replacement text at this point.
Hope to follow-up later.


Regards,
Prasad Yendluri</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10904</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Roth">Daniel.Roth</who>
    <bug_when>2006-08-01 00:01:57 +0000</bug_when>
    <thetext>Im having difficulty understanding this issue.  Some examples that demonstrate how the current definitions are ambiguous would be helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10926</commentid>
    <comment_count>2</comment_count>
    <who name="Prasad Yendluri">prasad.yendluri</who>
    <bug_when>2006-08-01 03:52:31 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; Im having difficulty understanding this issue.  Some examples that demonstrate
&gt; how the current definitions are ambiguous would be helpful.
&gt; 

See Example here: http://lists.w3.org/Archives/Public/public-ws-policy/2006Aug/0000.html
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10987</commentid>
    <comment_count>3</comment_count>
    <who name="Asir V Selvasingh">asirveda</who>
    <bug_when>2006-08-02 00:21:02 +0000</bug_when>
    <thetext>Hi Prasad,

Thank you for writing down these examples. Let us look at the two policy expressions in your e-mail below.

Policy 1 has two alternatives:
A1 = {assertion 6, assertion 8}
A2 = {assertion 7, assertion 8} 

Policy 2 has six alternatives:
A3 = {assertion 1, assertion 4}
A4 = {assertion 2, assertion 4}
A5 = {assertion 1, assertion 5, assertion 6}
A6 = {assertion 1, assertion 5, assertion 7}
A7 = {assertion 2, assertion 5, assertion 6}
A8 = {assertion 2, assertion 5, assertion 7}
 
Two policy alternatives are compatible if each policy assertion in one alternative is compatible with a policy assertion in the other and vice-versa. None of the above policy alternatives are compatible. 

Two policies are compatible if a policy alternative in one is compatible with a policy alternative in the other. Policy 1 and Policy 2 are incompatible because none of the policy alternatives in Policy 1 is compatible with a policy alternative in Policy 2.

Just as expected, these two policies are incompatible. I noticed that your example policies do not use any nested policy expression.

I hope this helps.

Regards,
 
Asir S Vedamuthu
Microsoft Corporation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10991</commentid>
    <comment_count>4</comment_count>
    <who name="Prasad Yendluri">prasad.yendluri</who>
    <bug_when>2006-08-02 01:08:35 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Hi Prasad,
&gt; 
&gt; Thank you for writing down these examples. Let us look at the two policy
&gt; expressions in your e-mail below.
&gt; 
&gt; Policy 1 has two alternatives:
&gt; A1 = {assertion 6, assertion 8}
&gt; A2 = {assertion 7, assertion 8} 
&gt; 
&gt; Policy 2 has six alternatives:
&gt; A3 = {assertion 1, assertion 4}
&gt; A4 = {assertion 2, assertion 4}
&gt; A5 = {assertion 1, assertion 5, assertion 6}
&gt; A6 = {assertion 1, assertion 5, assertion 7}
&gt; A7 = {assertion 2, assertion 5, assertion 6}
&gt; A8 = {assertion 2, assertion 5, assertion 7}
&gt; 
&gt; Two policy alternatives are compatible if each policy assertion in one
&gt; alternative is compatible with a policy assertion in the other and vice-versa.
&gt; None of the above policy alternatives are compatible. 
&gt; 
&gt; Two policies are compatible if a policy alternative in one is compatible with a
&gt; policy alternative in the other. Policy 1 and Policy 2 are incompatible because
&gt; none of the policy alternatives in Policy 1 is compatible with a policy
&gt; alternative in Policy 2.
&gt; 
&gt; Just as expected, these two policies are incompatible. I noticed that your
&gt; example policies do not use any nested policy expression.
&gt; 
&gt; I hope this helps.
&gt; 
&gt; Regards,
&gt;  
&gt; Asir S Vedamuthu
&gt; Microsoft Corporation
&gt; 

Hi Asir,

&gt; I noticed that your example policies do not use any nested policy expression.

Section 4.3.3 defines:

Equivalence 

wsp:Policy is equivalent to wsp:All 

So, for readability, I have not explicitly put wsp:policy brackets around things and used wsp:All.


If my  examples have been, 


 Example Policy 1:


 &lt;wsp:All&gt; 
   &lt;!-- assertion 5 --&gt; 
   &lt;wsp:ExactlyOne&gt;     
          &lt;!-- assertion 6 --&gt; 
          &lt;!-- assertion 7 --&gt;
   &lt;/wsp:ExactlyOne&gt;
  &lt;/wsp:All&gt;


Example Policy 2:


&lt;wsp:All&gt;
  &lt;wsp:ExactlyOne&gt;  
    &lt;!-- assertion 1 --&gt;
    &lt;!-- assertion 2 --&gt;
  &lt;/wsp:ExactlyOne&gt;
  &lt;wsp:ExactlyOne&gt;  
    &lt;!-- assertion 4 --&gt;
     . . . .
     &lt;wsp:policy&gt; 
        &lt;!-- assertion 5 --&gt;  
        &lt;wsp:ExactlyOne&gt;   
          &lt;!-- assertion 6 --&gt; 
          &lt;!-- assertion 7 --&gt;
       &lt;/wsp:ExactlyOne&gt;
    &lt;/wsp:policy&gt;
    . .  .  .
  &lt;/wsp:ExactlyOne&gt;
&lt;/wsp:All&gt;

Would you not then have the same policy alternates for Policy 1 and the nested policy in policy 2?

I understand the way you came up with the production of the alternatives for each policy and agree that is the correct way to arrive at them.  The point of the issue however is that, the text of the specification is not explicit enough for this. What makes a nested alternative in a Policy specification not an alternative of the parent policy, when policy is only defined to be a collection of policy alternatives? The nested policy and hence the embedded alternative is part of the same collection is it not?

Regards,

Prasad
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10994</commentid>
    <comment_count>5</comment_count>
    <who name="Asir V Selvasingh">asirveda</who>
    <bug_when>2006-08-02 14:13:26 +0000</bug_when>
    <thetext>RE the text of the specification is not explicit enough for this

A full worked out example that demonstrates how the current definitions are ambiguous or not explicit enough is the best way to move forward on this.

Regards,

Asir S Vedamuthu
Microsoft Corporation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11003</commentid>
    <comment_count>6</comment_count>
    <who name="Asir V Selvasingh">asirveda</who>
    <bug_when>2006-08-02 21:11:31 +0000</bug_when>
    <thetext>In the example above, it is not clear to me where assertions start and end. As described in Section 4.3.2 [1], a nested policy expression is a policy expression that is a child element of a policy assertion element:

&quot;Any policy assertion MAY contain a nested policy expression. The schema outline for a nested policy expression is:

&lt;Assertion &gt;
  
  ( &lt;wsp:Policy &gt;  &lt;/wsp:Policy&gt; )?
  
&lt;/Assertion&gt;&quot;

In the example above, it does not look like any of these assertions have nested policy expressions. Was this intentional? The normative text in Section 4.3.2 seems to be clear that this must be the case.

[1] http://www.w3.org/TR/2006/WD-ws-policy-20060731/#Policy_Assertion_Nesting

Regards,
 
Asir S Vedamuthu
Microsoft Corporation</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11006</commentid>
    <comment_count>7</comment_count>
    <who name="Prasad Yendluri">prasad.yendluri</who>
    <bug_when>2006-08-03 03:21:11 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; In the example above, it is not clear to me where assertions start and end. As
&gt; described in Section 4.3.2 [1], a nested policy expression is a policy
&gt; expression that is a child element of a policy assertion element:
&gt; 
&gt; &quot;Any policy assertion MAY contain a nested policy expression. The schema
&gt; outline for a nested policy expression is:
&gt; 
&gt; &lt;Assertion &gt;
&gt;   
&gt;   ( &lt;wsp:Policy &gt;  &lt;/wsp:Policy&gt; )?
&gt;   
&gt; &lt;/Assertion&gt;&quot;
&gt; 
&gt; In the example above, it does not look like any of these assertions have nested
&gt; policy expressions. Was this intentional? The normative text in Section 4.3.2
&gt; seems to be clear that this must be the case.
&gt; 
&gt; [1] http://www.w3.org/TR/2006/WD-ws-policy-20060731/#Policy_Assertion_Nesting
&gt; 
&gt; Regards,
&gt;  
&gt; Asir S Vedamuthu
&gt; Microsoft Corporation
&gt; 

Hi Asir,

Yes the example above does have a nested policy.  I used  around the &lt;wsp:policy&gt; elements  on purpose, to skip some unnecessary detail, that are not needed to illustrate the issue at hand.

The point is that the nested policy in  Example Policy 2 has policy alternatives that are identical to the policy alternatives in Example Policy 1.
With the current (somewhat loose) specification of a policy to be a collection of policy alternatives, one can deduce that the alternatives in the nested Policy specification are alternatives of the parent policy also, which match the alternatives in Example Policy 1 (and hence the two policies are compatible etc.).  

It would be helpful to have more concrete definitions.

Regards,
Prasad
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11059</commentid>
    <comment_count>8</comment_count>
    <who name="Prasad Yendluri">prasad.yendluri</who>
    <bug_when>2006-08-08 23:07:34 +0000</bug_when>
    <thetext>Hi,

&gt;Prasad, do you think we should describe these concepts with illustrative &gt;examples in the Primer?

Asir, Dan and I had an offline discussion on this and I am happy to close this issue and issue 3553 with the resolution to explain / clarify these aspects in the primer.

Thanks.

Prasad
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11074</commentid>
    <comment_count>9</comment_count>
    <who name="Prasad Yendluri">prasad.yendluri</who>
    <bug_when>2006-08-09 18:08:50 +0000</bug_when>
    <thetext>This issue was Resolved in the Aug 09, 2006 WS-Policy WG meeting (minutes: http://www.w3.org/2006/08/09-ws-policy-minutes.html) with the resolution to retarget the issue at the primer. The primer will incorporate the explanotory text to clarify the definitions.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>