DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38589>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38589





------- Additional Comments From [EMAIL PROTECTED]  2006-09-07 09:35 -------
Additionally if you try to get round this issue by using
putMethod(FileInputStream, path) you can come across problems with Bad Request
errors particularly with Oracle AS (mod_oradav). 

(In reply to comment #0)
> Uploaded files are not (directly) released by JAVA after the 
> ant-WebDAV-put-task.
> So file manipulations (like delete) fails, because the uploaded file seems 
> still
> to be used on the local system.
> 
> Idea: Close the uploaded files explicit:
> 
> In org.apache.webdav.ant.taskdefs.put.uploadFile: 
> change code to
>             if (this.filterSets.hasFilters()) {
>                [...]
>                reader.close();
>                Utils.putFile(getHttpClient(), url, 
>                      new ByteArrayInputStream(out.toByteArray()), 
>                      contentType, this.locktoken);
>             } else {
>                FileInputStream reader = new FileInputStream(file);
>                Utils.putFile(getHttpClient(), url,
>                      reader, 
>                      contentType, this.locktoken);
>                reader.close();
>             }



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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

Reply via email to