You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@excalibur.apache.org by "John Collins (JIRA)" <de...@excalibur.apache.org> on 2005/04/23 17:07:23 UTC

[jira] Created: (EXLBR-24) Build fails in URLSourceTestCase when httpd running on localhost

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


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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, 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


[jira] Commented: (EXLBR-24) Build fails in URLSourceTestCase when httpd running on localhost

Posted by "Shash Chatterjee (JIRA)" <de...@excalibur.apache.org>.
     [ 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, 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


[jira] Resolved: (EXLBR-24) Build fails in URLSourceTestCase when httpd running on localhost

Posted by "Shash Chatterjee (JIRA)" <de...@excalibur.apache.org>.
     [ http://issues.apache.org/jira/browse/EXLBR-24?page=all ]
     
Shash Chatterjee resolved EXLBR-24:
-----------------------------------

    Resolution: Fixed

CHanged "localhost" to a (likely) non-existent host.

Modified: excalibur/trunk/components/sourceresolve/src/test/org/apache/excalibur/source/test/URLSourceTestCase.java
URL: http://svn.apache.org/viewcvs/excalibur/trunk/components/sourceresolve/src/test/org/apache/excalibur/source/test/URLSourceTestCase.java?rev=164402&r1=164401&r2=164402&view=diff


> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, 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


[jira] Assigned: (EXLBR-24) Build fails in URLSourceTestCase when httpd running on localhost

Posted by "Shash Chatterjee (JIRA)" <de...@excalibur.apache.org>.
     [ http://issues.apache.org/jira/browse/EXLBR-24?page=all ]

Shash Chatterjee reassigned EXLBR-24:
-------------------------------------

    Assign To: Shash Chatterjee

> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, 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


[jira] Commented: (EXLBR-24) Build fails in URLSourceTestCase when httpd running on localhost

Posted by "Shash Chatterjee (JIRA)" <de...@excalibur.apache.org>.
     [ http://issues.apache.org/jira/browse/EXLBR-24?page=comments#action_63587 ]
     
Shash Chatterjee commented on EXLBR-24:
---------------------------------------

If the file does not exist, the HTTP server returns a 404 code and ome content.
URLSource implementation looks at the content lenght, 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, 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


[jira] Updated: (EXLBR-24) Build fails in URLSourceTestCase when httpd running on localhost

Posted by "Shash Chatterjee (JIRA)" <de...@excalibur.apache.org>.
     [ http://issues.apache.org/jira/browse/EXLBR-24?page=all ]

Shash Chatterjee updated EXLBR-24:
----------------------------------

    Comment: was deleted

> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, 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


[jira] Commented: (EXLBR-24) Build fails in URLSourceTestCase when httpd running on localhost

Posted by "John Collins (JIRA)" <de...@excalibur.apache.org>.
     [ http://issues.apache.org/jira/browse/EXLBR-24?page=comments#action_63595 ]
     
John Collins commented on EXLBR-24:
-----------------------------------

This bug seems a pretty good indication that EXLBR-19 is not fixed. If it were, the attempt to access a non-existent page on localhost (or any host with a working httpd) would have left m_exists==false. I'm not convinced that content length is the right test. Somebody who knows more about HTTPURLConnections should weigh in here.

> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, 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


[jira] Closed: (EXLBR-24) Build fails in URLSourceTestCase when httpd running on localhost

Posted by "Shash Chatterjee (JIRA)" <de...@excalibur.apache.org>.
     [ http://issues.apache.org/jira/browse/EXLBR-24?page=all ]
     
Shash Chatterjee closed EXLBR-24:
---------------------------------


> 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:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, 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