Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: When a file is inserted into a project using file upload, it mounts temporary files, but they are not deleted/FISH-8311 #6545

Open
romulometaprime opened this issue Jan 30, 2024 · 2 comments
Assignees
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect

Comments

@romulometaprime
Copy link

Brief Summary

I have noticed corrections made in recent years when using fileupload, Ex: #6020, #5231. However, when upgrading my project from payara 5 to payara 6 I noticed that in payara 6, temporary files are generated within payara/glassfish/domains/myDomain/generated/jsp/myapplication/. However, such files are never deleted. I use the Primefaces framework and even opened a problem with their communities, but they verified that it was an issue to be resolved by payara, as follows: Issue Primefaces #11342.

Expected Outcome

That the temporary files generated by fileupload are deleted as soon as the request is completed, avoiding undue consumption of computing resources.

Current Outcome

Whenever a file is inserted using fileupload, several temporary files are generated, but they are being accumulated in the directory: payara/glassfish/domains/myDomain/generated/jsp/myapplication/.

Reproducer

Below is an example project for verification: Project

Operating System

Ubuntu 22.04.3 LTS

JDK Version

java 17.0.8 2023-07-18 LTS

Payara Distribution

Payara Server Full Profile

@romulometaprime romulometaprime added Status: Open Issue has been triaged by the front-line engineers and is being worked on verification Type: Bug Label issue as a bug defect labels Jan 30, 2024
@felixif
Copy link

felixif commented Feb 6, 2024

Hello @romulometaprime,

I have verified the issue with the reproducer provided in the PrimeFaces issue (the link here sent me to the Primefaces repository). Indeed these .tmp files do not go away, and I can understand that, for a large application, polluting the server space with all these temporary files can lead to the unnecessary use of the storage space. I have raised an internal issue with the code FISH-8311, which will be picked up and solved by the Engineering team in due course. Thank you for your bug report!

Best regards,
Felix Ifrim

@felixif felixif added Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev and removed Status: Open Issue has been triaged by the front-line engineers and is being worked on verification labels Feb 6, 2024
@felixif felixif changed the title Bug Report: When a file is inserted into a project using file upload, it mounts temporary files, but they are not deleted. Bug Report: When a file is inserted into a project using file upload, it mounts temporary files, but they are not deleted/FISH-8311 Feb 6, 2024
@rdelaplante
Copy link

When vulnerability scanners are run regularly against applications deployed in Payara, this directory can build up tens of thousands of .tmp files. I noticed this on a server running Payara 6.2024.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Accepted Confirmed defect or accepted improvement to implement, issue has been escalated to Platform Dev Type: Bug Label issue as a bug defect
Projects
None yet
Development

No branches or pull requests

3 participants