-
Notifications
You must be signed in to change notification settings - Fork 304
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
FISH-6606 Use Temporary Filename Only While Saving the Uploaded File #6014
FISH-6606 Use Temporary Filename Only While Saving the Uploaded File #6014
Conversation
Jenkins test please |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works, but looks a little wonky: create temp file, then immediately delete, then write deleted temp file to uploaded file (which recreates the temp file again), then delete the temp file again.
Jenkins test please |
1 similar comment
Jenkins test please |
cb7ccdc
to
53c3147
Compare
Jenkins test please |
Upgrade of common-upload probably changed the behaviour of saving file, now it fails if the target file already exists. Now, we use only the filename. The temp file is still created as Java always creates it, it is deleted before the uploaded file is written.
0455145
to
b4e2503
Compare
3f68bf9
to
6c784e0
Compare
Fixes #6020 |
When can we expect Payara 2022.4 with this patch to download. |
Hi @AleksanderBastl, Payara Community Edition 5.2022.5 is currently scheduled for December 2022, however I can't guarantee an exact release date. Alternatively, you could opt to build Payara locally to utilise this bug fix early, instructions on building Payara are documented here: https://docs.payara.fish/community/docs/General%20Info/Build%20Instructions.html Best Regards, |
Thank you for quick answer and solution for my question. |
Description
Fixing issue with empty ear/war file during deployment via admin gui and uploading file
Upgrade of common-upload probably changed the behaviour of saving file, now it fails if the target file already exists. Now, we use only the filename.
The temp file is still created as Java always creates it, it is deleted before the uploaded file is written.
Important Info
Testing
Testing Performed
Upload the file attached to the Jira ticket, basically any ear/war should be deployable via upload.
Process:
Testing Environment
Linux, OpenJDK 8, 11