PR is ready, I added check if file exists prior deleting it
https://github.com/apache/struts/pull/1365

czw., 25 wrz 2025 o 10:33 Lukasz Lenart <[email protected]> napisał(a):
>
> śr., 24 wrz 2025 o 13:19 [email protected]
> <[email protected]> napisał(a):
> >
> > Am 24.09.25 um 12:36 schrieb Kusal Kithul-Godage:
> > > I've the same logging issue. It's occurring within both
> > > #cleanUpDiskFileItems and #cleanUpTemporaryFiles. The method
> > > Files#deleteIfExists returns false if the file did not exist, so I
> > > don't believe there's any need to check the return value and log
> > > anything in these cases.
> >
> > 24-09-2025 13:15:22.9 WARN
> > org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequest - There
> > was a problem attempting to delete uploaded file:
> > /tmp/upload_f4beefae_8fff_4924_b6ef_d4939842a94a_00000001.tmp
> >
> > Indeed, when I do check /tmp after uploading afile, there is no file
> > upload_f4beefae_8fff_4924_b6ef_d4939842a94a_00000001.tmp
>
> Good, I will fix the warning as not needed in this case
>
>
> Cheers
> Łukasz

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

Reply via email to