This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 10238 - [XQTS] Error codes for collection tests.
Summary: [XQTS] Error codes for collection tests.
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-26 13:18 UTC by Oliver Hallam
Modified: 2011-01-24 22:48 UTC (History)
0 users

See Also:


Attachments

Description Oliver Hallam 2010-07-26 13:18:48 UTC
As a result of bug 10004 the definition of when to raise FODC0002 vs FODC0004/0005 was changed.

The following tests use valid URI values, and so should expect the error FODC0002 and not FODC0004:

fn-collection-2 uses the URI: "thisfileshouldnotexists"
fn-collection-3 uses the URI: "invalidURI<>"
K2-SeqCollectionFunc-1 uses the URI "http:\\invalid>URI\someURI"

I believe these are all valid URIs, as Schema states:

The ·lexical space· of anyURI is finite-length character sequences which, when the algorithm defined in Section 5.4 of [XML Linking Language] is applied to them, result in strings which are legal URIs according to [RFC 2396], as amended by [RFC 2732].

and so, for example "invalidURI<>" is equivalent to "invalidURI%3C%3E" and "http:\\\\invalid>URI\\someURI" is equivalent to "http:%5C%5Cinvalid%3EURI%5CsomeURI".

Either the expected error for these tests should be changed to FODC0002 or the tests should be changed to use URIs that are never valid (for example "%gg").

I believe the former fix is best for fn-collection-2 and the latter for the other two tests.
Comment 1 Andrew Eisenberg 2011-01-24 22:48:25 UTC
The XML Query and XSL WGs made their decision on Bug #10004 on 2010-10-19.

I've made the changes that you requested in your final paragraph:

fn-collection-2 expects FODC0002
fn-collection-3 now uses the URI "invalidURI%gg"
K2-SeqCollectionFunc-1 now uses the URI "http:\\invalidURI\someURI%gg"


Please close this bug report if you agree with these changes.