[ 
https://issues.apache.org/jira/browse/CXF-9131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17950179#comment-17950179
 ] 

Deepak edited comment on CXF-9131 at 5/8/25 4:30 AM:
-----------------------------------------------------

This issue is not related to the issue reported in 
https://issues.apache.org/jira/browse/CXF-9118

The issue reported in this Bug is about DelayedCachedOutputStreamCleaner 
cleaning the temp file irrespective of whether or not the temp file is still 
being read in the code.

In my case once i get the response from the target server, i parse the soap 
response to convert it to XML, while the code is parsing the soap response if 
DelayedCachedOutputStreamCleaner executes, it deletes the file while it is 
still being read by the parser responsible for converting the soap response to 
xml 


was (Author: deepaktaker):
This issue is not related to the issue reported in 
https://issues.apache.org/jira/browse/CXF-9118

The issue reported in this Bug is about DelayedCachedOutputStreamCleaner 
cleaning the temp file irrespective of whether or not the temp file is still 
being read in the code.

In my case once i get the response from the target server, i parse the soap 
response to convert it to XML, while the code is parsing the soap response if 
DelayedCachedOutputStreamCleaner executes it deletes the file while it is still 
being read by the parser responsible for converting the soap response to xml 

> DelayedCachedOutputStreamCleaner clears the temp cache files even when the 
> temp is still in use
> -----------------------------------------------------------------------------------------------
>
>                 Key: CXF-9131
>                 URL: https://issues.apache.org/jira/browse/CXF-9131
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Deepak
>            Priority: Major
>
> DelayedCachedOutputStreamCleaner clears the temp cache files even when the 
> temp is still in use.
> this class doesn't check whether or not the temp file is still being read 
> before deletion.
> there should be logic in DelayedCachedOutputStreamCleaner that deletes the 
> temp file only when it is not in use.
> [cxf/core/src/main/java/org/apache/cxf/io/DelayedCachedOutputStreamCleaner.java
>  at cxf-3.5.10 · apache/cxf · 
> GitHub|https://github.com/apache/cxf/blob/cxf-3.5.10/core/src/main/java/org/apache/cxf/io/DelayedCachedOutputStreamCleaner.java]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to