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 5889 - Dummy example.org URIs are retrieved
Summary: Dummy example.org URIs are retrieved
Status: RESOLVED FIXED
Alias: None
Product: mobileOK Basic checker
Classification: Unclassified
Component: Java Library (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Abel Rionda
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-22 09:43 UTC by fd
Modified: 2008-07-23 08:40 UTC (History)
0 users

See Also:


Attachments

Description fd 2008-07-22 09:43:17 UTC
Description
-----------
When the checker encounters links whose supposedly-valid URI actually violates RFC 2396, and in particular links such as:
 <a href="javascript:foo()">Javascript link</a>
... a dummy URI is created of the form:
 http://example.org/#[encoded invalid URI]

I suppose there is a good reason for that, be it only to maintain the list of invalid links.

The problem is that this URI gets requested by the checker.

Most of the time, this has no visible effect. It's just "dirty". But if you switch your Internet Connection down, and work with a local server, an HTTP_RESPONSE-1 FAIL will be returned:

<result name="HTTP_RESPONSE-1" outcome="FAIL">
 <info>FAIL: The request to the resource http://example.org/#javascript[...] does not result in a valid HTTP response (because of network-level error, DNS resolution error, or non-HTTP response)</info>
</result>

(a LINK_TARGET_FORMAT-1 WARN is also returned)


How to reproduce
----------------
- remove the ethernet cable or switch off your Wifi connection
- run the checker on a local server: http://localhost:[port]/[path to tests]/ObjectsOrScriptTest/1/index.xhtml


Code
----
The resource is requested while building the moki document:
PreprocessorResults.java
 buildMokiDocument
  loops through the links
   calls addRetrievalElement for each of them


Possible solutions
------------------
1. get rid of this dummy URI, but it may be unnecessarily complicated since HTTPResource.parseURI is to return a URI
2. make sure that the checker does not resolve dummy links.
Comment 1 Abel Rionda 2008-07-23 08:40:52 UTC
Dummy URIS now are changed to null values and are filtered in Preprocessor.