<?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>4179</bug_id>
          
          <creation_ts>2007-01-10 11:06:34 +0000</creation_ts>
          <short_desc>Preferences for policy expressions</short_desc>
          <delta_ts>2007-01-17 19:13:42 +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>LC</version>
          <rep_platform>Macintosh</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>futureConsideration</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Fabian Ritzmann">fabian.ritzmann</reporter>
          <assigned_to name="Fabian Ritzmann">fabian.ritzmann</assigned_to>
          <cc>monica.martin</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>13402</commentid>
    <comment_count>0</comment_count>
    <who name="Fabian Ritzmann">fabian.ritzmann</who>
    <bug_when>2007-01-10 11:06:34 +0000</bug_when>
    <thetext>Title

Preferences for policy expressions

Description

For V.Next, WS-Policy should consider how to handle preferences. Earlier attempts to apply preferences to WS-Policy was using an absolute scale where there was no guarantee that two policy providers were using the same scale. Therefore preferences must be relative to one policy document. For V.Next, WS-Policy should either supply 1) a mechanism to indicate relative preferences or 2) a standard preference XML attribute for policy assertions. Priority is a synonym for preference in the context of this document.

Justification

Preferences can be used by policy providers to indicate to policy consumers which policy assertions are preferred. This is particularly relevant in scenarios where a policy consumer chooses policies automatically without human interaction. For example, three encryption algorithms may be supported, but one is extremely slow but uses minimal memory and is available for use by memory-constrained clients. This example also shows that policy consumers may have their own set of preferences that can override the preferences of the policy provider.
Target

WS-Policy Framework V.Next

Proposal

Several approaches may be considered:

   1. Stating document order in a Policy indicates preferences would be sufficient. Determine if the WG would need to resolve any contradiction to the current rule that no policy elements are ordered.
   2. Policy alternatives could be associated with identifiers. A policy metadata syntax could list identifiers in preference order.
   3. An XML attribute that contains relative preference numbers to include in assertion elements. The preference or priority would apply only to the immediate level [1]. XPath may be used to examine or select portions of a WS-Policy instance for analysis, transformation or other uses. To contain this, options at the same level without explicit preference indications could be assumed to be equivalent [2]. This would enable non-normalized policies where preferences may not be attached consistently [3].
   4. Domains could provide a proprietary means of expressing preferences. This has already been detected in the security arena, e.g. &lt;AlgorithmSpeed&gt;slow&lt;/AlgorithmSpeed&gt; could be included under the same &lt;All&gt; operator as the slow encryption algorithm. However, as this should be a mechanism that cuts across domains, this is not an optimal or interoperable approach.

In order to effectively handle intersections and merge, this proposal could be extended to include concrete algorithms. Nested policies must be considered. A standard algorithm for a policy consumer is required to compute the most preferred policy alternative.

[#1]

&lt;All Preference=&quot;6&quot;&gt;
 &lt;ExactlyOne&gt;
     &lt;All Preference=&quot;3&quot;&gt;
        &lt;Assertion1 /&gt;
      &lt;/All&gt;
     &lt;All Preference=&quot;2&quot;&gt;
        &lt;Assertion2 /&gt;
     &lt;/All&gt;
&lt;/ExactlyOne&gt;
&lt;/All&gt;
&lt;All Preference=&quot;1&quot;&gt;
 &lt;Assertion3 /&gt;
&lt;/All&gt;

Which would be normalized into three alternatives (sorted according to preference):

&lt;All&gt;
 &lt;Assertion3 /&gt;
&lt;/All&gt;
&lt;All&gt;
 &lt;Assertion2 /&gt;
&lt;/All&gt;
&lt;All&gt;
 &lt;Assertion1 /&gt;
&lt;/All&gt;

would have the following preference order:

    * Assertion3
    * Assertion2
    * Assertion1

[#2] The WG may specify a default, possibly with a Policy attribute to override, to indicate whether options without explicit preference indications are considered and at what preference. Note, this is similar to any recommendation that may be made to WS-Addressing. See draft: http://lists.w3.org/Archives/Member/member-ws-policy/2006Oct/0002.html.

[#3] More than one attribute may be needed or the capability to acquire the value of this attribute. We recognize this may need more discussion.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13670</commentid>
    <comment_count>1</comment_count>
    <who name="Christopher Ferris">chrisfer</who>
    <bug_when>2007-01-17 19:13:42 +0000</bug_when>
    <thetext>RESOLUTION: everybody fine to close 4179 with &quot;won&apos;t fixed&quot; and &quot;futureConsideration&quot;
See http://www.w3.org/2007/01/17-ws-policy-irc#T19-12-30</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>