You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Leo Simons <ma...@leosimons.com> on 2005/01/06 12:21:52 UTC

Re: URLSource bug?

Hi Paul!

On 04-01-2005 22:03, "Paul Christmann" <pc...@gmail.com> wrote:
<snip/>
> I've written two tests (I didn't see a URLSourceTestCase anywhere?):
> one with an invalid http URL (http://localhost/garbage) and one with a
> valid http url (http://www.example.com), and the exists method returns
> true for both.
> 
> I've got a simple one line fix for URLSource that seems to do the
> trick: set m_exists based on the returned contentLength.
> 
> But - before I submit to bugzilla (the patch and the test case), I
> thought I'd check first: am I misunderstanding how the URLSource
> should work, and will I be breaking other things if I make exists()
> return false?
<snip/>

I have no idea (I don't use source resolver myself), but what you're
describing certainly sounds like a bug. Chuck it in jira I say, we'll apply
it, and we'll see if anyone complains later on :-D. (Which is why I'm Ccing
cocoon-dev; hi guys!)

Cheers,

- Leo