<?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>1159</bug_id>
          
          <creation_ts>2005-03-04 13:41:43 +0000</creation_ts>
          <short_desc>Warn against untested hooks</short_desc>
          <delta_ts>2005-04-28 11:53:50 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>QA</product>
          <component>QASpec-GL</component>
          <version>LC-2004-11-22</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>REMIND</resolution>
          
          
          <bug_file_loc>http://lists.w3.org/Archives/Public/www-qa/2005Feb/0015.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominique Hazael-Massieux">dom</reporter>
          <assigned_to name="Karl Dubost">karl</assigned_to>
          
          
          <qa_contact name="Karl Dubost">karl</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>3995</commentid>
    <comment_count>0</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2005-03-04 13:41:43 +0000</bug_when>
    <thetext>My experience is that untested hooks are bad; really bad. Please
share this experience with your readers.

This bit of SpecGL seems relevant, though not exactly the &quot;untested
hooks are bad&quot; bumper-sticker I&apos;d like to see:

        Make sure there is a need for the optional feature. 
        4.2 Good Practice A: in 4. Managing Variability of SpecGL 

The 1999 RDF spec had a couple hooks that were not well tested:

[[
When an RDF processor encounters an XML element or attribute name that
is declared to be from a namespace whose name begins with the string
&quot;http://www.w3.org/TR/REC-rdf-syntax&quot; and the processor does not
recognize the semantics of that name then the processor is required to
skip (i.e., generate no tuples for) the entire XML element, including
its content, whose name is unrecognized or that has an attribute whose
name is unrecognized.
]]
  -- http://www.w3.org/TR/1999/REC-rdf-syntax-19990222/

The WG observed that implementations were all over the map,
so we got rid of that one.
http://www.w3.org/2000/03/rdf-tracking/#rdfms-para196


This one was sorta contradictory:

[[
Other values of parseType are reserved for future specification by RDF.
With RDF 1.0 other values must be treated as identical to &apos;Literal&apos;.
]]

I think the WG observed that implementations follow the latter sentence
and standardized it, though I can&apos;t find the decision. There&apos;s
a relevant test,

http://www.w3.org/2000/10/rdf-tests/rdfcore/rdfms-literal-is-xml-structure/test005.rdf

which seems to be associated with this issue...
  http://www.w3.org/2000/03/rdf-tracking/#rdfms-literal-is-xml-structure
but I don&apos;t see a pointer in the other direction.
I know we decided that using this as a hook for parseType=&quot;Quote&quot;
is not allowed:
  http://www.w3.org/2000/03/rdf-tracking/#rdfms-quoting


I think SMIL has some system-foo hooks that are more well tested.
There are plenty of other well-tested, well-used hooks in the
web: HTTP mime types, XSLT extensions, CSS fallback rules (though
those were, at one point, insufficiently tested) etc.

The issue of untested hooks came up recently in a WG meeting
I chaired; in editing the minutes, I was curious if SpecGL
had an &quot;untested hooks are bad&quot; bumper sticker; almost...


[[
SPARQL Protocol Spec
We noted SPARQL Protocol for RDF W3C Working Draft 14 January 2005 ...

Regarding the Abstract protocol, DanC noted that it comes with a testing
obligation; if we&apos;re only going to test one concrete protocol, we should
fold the essential material from the abstract protocol into it. He later
clarified that it would be OK if a second concrete protocol (SOAP,
SMTP, ...) were not normatively specified, but only specified in a Note
or even only in the test materials; as long as the abstract protocol
&quot;hook&quot; is tested, we&apos;ve met our obligations.

postscript: this bit of SpecGL seems relevant, though not exactly the
&quot;untested hooks are bad&quot; bumper-sticker I&apos;d like to see:

        Make sure there is a need for the optional feature. 
        4.2 Good Practice A: in 4. Managing Variability of SpecGL 
]]
 -- http://www.w3.org/2001/sw/DataAccess/ftf4.html#item08</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4007</commentid>
    <comment_count>1</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2005-03-04 17:58:21 +0000</bug_when>
    <thetext>Seems to be a process/workflow issue.  Under reviewing and testing, can 
mention putting in untested hooks.  Add RDF story provided.
ACTION:  Add as technique in 5 GP B
RESOLUTION: Agreed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3917</commentid>
    <comment_count>2</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2005-03-21 13:53:37 +0000</bug_when>
    <thetext>http://lists.w3.org/Archives/Public/www-qa-wg/2005Mar/0105.html
Instead of 5 GP B where I don&apos;t think it fit very well, I made it a
technique of GP18, as follows
&quot;Avoid &quot;untested hook&quot;: if an extensibility mechanism is defined, make
sure it is well tested during the implementation phase; experience has
shown that untested extensibility just doesn&apos;t work&quot;
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3663</commentid>
    <comment_count>3</comment_count>
    <who name="Dominique Hazael-Massieux">dom</who>
    <bug_when>2005-04-28 11:53:50 +0000</bug_when>
    <thetext>setting version to LC in case of future use</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>