DO NOT REPLY [Bug 38589] - Files not released after upload (put)

[email protected]
Newsgroups gmane.comp.jakarta.slide.devel
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.