You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@excalibur.apache.org by "Paul Christmann (JIRA)" <de...@excalibur.apache.org> on 2005/01/06 16:02:17 UTC
[jira] Updated: (EXLBR-19) URLSource reports non-existent URL exists
[ http://issues.apache.org/jira/browse/EXLBR-19?page=history ]
Paul Christmann updated EXLBR-19:
---------------------------------
Attachment: URLSourceTestCase.java
A Test case with 4 tests: two http protocol and two file protocol, one of each that exists and one that doesn't.
> URLSource reports non-existent URL exists
> -----------------------------------------
>
> Key: EXLBR-19
> URL: http://issues.apache.org/jira/browse/EXLBR-19
> Project: Excalibur Components
> Type: Bug
> Components: SourceResolver
> Versions: 1.1
> Environment: Using Cocoon 2.1.X under Tomcat 5.0.30-beta and Jetty 5.1.0 on Windows XP and W2K servers
> Reporter: Paul Christmann
> Attachments: URLSourceTestCase.java, patchfile.txt
>
> The URLSource exists() method incorrectly returns "true" even if the provided URL (via the init method) does not exist.
> URLSource source = new URLSource();
> source.init("http://www.nosuchsite.com", Collections.EMPTY_MAP);
> if ( source.exists() ) {
> // It shouldn't, but exists returns true
> }
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org