You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by bu...@apache.org on 2006/09/07 11:35:06 UTC
DO NOT REPLY [Bug 38589] - Files not released after upload (put)
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 simesj@gmail.com 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: slide-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: slide-dev-help@jakarta.apache.org