<?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>3548</bug_id>
          
          <creation_ts>2006-07-31 18:04:45 +0000</creation_ts>
          <short_desc>Normalization should make empty nested policy elements</short_desc>
          <delta_ts>2006-08-31 14:32:24 +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>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/public-ws-policy/2006Jul/0013</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>needsAgreement</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Frederick Hirsch">w3c</reporter>
          <assigned_to name="Frederick Hirsch">w3c</assigned_to>
          
          
          <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>10891</commentid>
    <comment_count>0</comment_count>
    <who name="Frederick Hirsch">w3c</who>
    <bug_when>2006-07-31 18:04:45 +0000</bug_when>
    <thetext>An empty policy element should be removed upon  normalization

Justification - Need to define additional normalization step to  enable interoperability.

I initially raised this issue in WS-SX (Security Policy) [1], but it  should be addressed in WS-Policy.

The WS-SecurityPolicy spec states (at line 372) &quot;An assertion with an  empty nested policy does not intersect with the same assertion  without nested policy.&quot;

Since both mean exactly the same thing, this opens a possibility for  policy interop issues.

&lt;assertion /&gt; and &lt;assertion&gt;&lt;policy /&gt;&lt;/assertion&gt; should mean the  same thing. An engine should treat them as equal, and the  normalization process should account for this.

Target - WS-Policy Framework [2]

Proposal - add new section to 4.3, &quot;Nested Policy Normalization&quot;,  with following as the text in the section:

&quot;Any nested policy element of the form &lt;assertion&gt;&lt;wsp:Policy /&gt;&lt;/ assertion&gt; will be normalized by removing the policy element,  producing &lt;assertion /&gt; as the normal form. An empty policy element SHOULD NOT have attributes but if it does, they will be ignored and  the element removed.&quot;

Test Case -

The intersection of the following two policy expressions should match  as true:

  &lt;wsp:Policy
   xmlns:test=&quot;http://www.example.com/example&quot;
   xmlns:wsp=&quot;http://schemas.xmlsoap.org/ws/2004/09/policy&quot; &gt;
   &lt;test:SimpleAssertion /&gt;
  &lt;/wsp:Policy&gt;

&lt;wsp:Policy
   xmlns:test=&quot;http://www.example.com/example&quot;
   xmlns:wsp=&quot;http://schemas.xmlsoap.org/ws/2004/09/policy&quot; &gt;
   &lt;test:SimpleAssertion&gt;&lt;wsp:Policy /&gt;&lt;/test:SimpleAssertion&gt;
  &lt;/wsp:Policy&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10892</commentid>
    <comment_count>1</comment_count>
    <who name="Frederick Hirsch">w3c</who>
    <bug_when>2006-07-31 18:07:08 +0000</bug_when>
    <thetext>From: Asir Vedamuthu &lt;asirveda@microsoft.com&gt; 

&gt; An empty policy element should be
&gt; removed upon normalization

If an assertion description allows a nested policy expression and the provider decides not to qualify this assertion with nested policy assertions, the assertion MUST include an empty Policy element [1].

&gt; &lt;assertion /&gt; and &lt;assertion&gt;&lt;policy /&gt;&lt;/assertion&gt; 
&gt; should mean

This is a theoretical edge case. I am not aware of a case where an assertion description prescribes a nested policy expression and does not require a provider/requestor to use the nested policy expression.

[1]
http://dev.w3.org/cvsweb/~checkout~/2006/ws/policy/ws-policy-framework.html?content-type=text/html;%20charset=utf-8#Policy_Assertion_Nesting </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10893</commentid>
    <comment_count>2</comment_count>
    <who name="Frederick Hirsch">w3c</who>
    <bug_when>2006-07-31 18:08:36 +0000</bug_when>
    <thetext>To summarize what you said,

If an assertion is allowed to have nested policy, then it MUST have a  wsp:Policy child, always. I think this should be stated more clearly.

Thus the edge case should never occur, since the version without the  wsp:Policy child would be in error.

(see
http://lists.w3.org/Archives/Public/public-ws-policy/2006Jul/0088 )</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11253</commentid>
    <comment_count>3</comment_count>
    <who name="Frederick Hirsch">w3c</who>
    <bug_when>2006-08-23 18:10:31 +0000</bug_when>
    <thetext>This can be closed with no action, since this case should not occur with correct implementations.

Note that there is another bug report regarding general normalization clarity - 3613.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11254</commentid>
    <comment_count>4</comment_count>
    <who name="Frederick Hirsch">w3c</who>
    <bug_when>2006-08-23 22:06:44 +0000</bug_when>
    <thetext> See Minutes http://www.w3.org/2006/08/23-ws-policy-minutes.html </thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>