Quantcast

Wagon 1.0-beta-3 changes

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Wagon 1.0-beta-3 changes

Antti Virtanen
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Wagon 1.0-beta-3 changes

Brett Porter
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 <[hidden email]>:

>
> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Wagon 1.0-beta-3 changes

Antti Virtanen
Done: http://jira.codehaus.org/browse/WAGON-222, http://jira.codehaus.org/browse/WAGON-223

Thanks

Brett Porter wrote
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 <antti.virtanen@nsn.com>:
>
> 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: wagon-users-unsubscribe@maven.apache.org
> For additional commands, e-mail: wagon-users-help@maven.apache.org
>
>



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

---------------------------------------------------------------------
To unsubscribe, e-mail: wagon-users-unsubscribe@maven.apache.org
For additional commands, e-mail: wagon-users-help@maven.apache.org
Loading...