excalibur-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shash Chatterjee (JIRA)" <...@excalibur.apache.org>
Subject [jira] Commented: (EXLBR-24) Build fails in URLSourceTestCase when httpd running on localhost
Date Sat, 23 Apr 2005 17:27:24 GMT
     [ http://issues.apache.org/jira/browse/EXLBR-24?page=comments#action_63588 ]
Shash Chatterjee commented on EXLBR-24:

If the file does not exist, the HTTP server returns a 404 code and some content.
URLSource implementation looks at the content length, and sets m_exists to true.
Question: should we check for a HTTPURLConnection and then check the 404 error code
and set m_exists to false? Need community feedback..I'm not a sourceresolve component user.

> Build fails in URLSourceTestCase when httpd running on localhost
> ----------------------------------------------------------------
>          Key: EXLBR-24
>          URL: http://issues.apache.org/jira/browse/EXLBR-24
>      Project: Excalibur Components
>         Type: Test
>   Components: SourceResolver
>     Versions: 1.2
>  Environment: Linux Mandrake 10.1, running Apache 2.0.50 on a local network
>     Reporter: John Collins
>     Assignee: Shash Chatterjee

> Did a svn checkout on 2005-04-22, maven multiproject:install according to instructions.
This is my first attempt to build from the svn tree, earlier attempts to build from source
tarballs were completely unsuccessful.
> Build fails with a test failure in URLSourceTestCase:
> Testcase: testHttpDoesNotExist(org.apache.excalibur.source.test.URLSourceTestCase):	FAILED
> null
> junit.framework.AssertionFailedError
> 	at org.apache.excalibur.source.test.URLSourceTestCase.testHttpDoesNotExist(URLSourceTestCase.java:69)
> In testHttpDoesNotExist(), if you change "localhost" to "x.y.z", the test succeeds. I
assume this is because localhost actually does return a result (a 404). 

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org
For additional commands, e-mail: dev-help@excalibur.apache.org

View raw message