Can you file issues for the two of these?

I see the immediate problem with the first - the flush call doesn't
first check if the output stream was ever created .

The latter seems like it was a missing test case and so may have regressed.

Thanks,
Brett

2008/6/17 Antti Virtanen <[EMAIL PROTECTED]>:
>
> Hello,
>
> I've been playing around with HTTP Wagon a bit, mainly to handle recursive
> file downloads from remote servers. When I tried the latest version (beta-3)
> I came across few issues:
>  * Empty file transfers seems to cause NPE:
>
>     java.lang.NullPointerException
>        at
> org.apache.maven.wagon.LazyFileOutputStream.flush(LazyFileOutputStream.java:77)
>        at
> org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:491)
>        at
> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:325)
>        at
> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:297)
>        at
> org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:274)
>        at
> org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:97)
>        at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61)
>
>  * HttpWagon.getFileList(String) doesn't seem to return anything when used
> with empty string arg. Previously it used to return the list of files of the
> base URL where it was connected.
>
> I used previously beta-2 and both of the previously mentioned issues worked
> fine there.
>
> Thanks
> --
> View this message in context: 
> http://www.nabble.com/Wagon-1.0-beta-3-changes-tp17865756p17865756.html
> Sent from the Wagon - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to