-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Improve Working Directory creation #5451
Comments
+ Using new Files.createTempDirectory() instead of nonsense around File.createTempFile() Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
@joakime there are 22 usages of |
The focus of this was Temp/Work Directories, not Temp/Work Files. I was focusing this PR on those usages of File.createTempFile() that were using it to establish unique directory names (as opposed to unique file names). |
But why not fixing them all? |
It's a bigger change then you would expect. This just causes a no-op on Windows, but works on Linux, and causes logging exceptions on OSX. That means I need to interrogate the FileSytem to know what FileAttributes I can use (Posix, Osx, Windows, NT, etc...) to manage the attributes on the created file appropriately. Those 3 lines of code will quickly grow. Example (from a long ago discarded PR) : |
I'll update the PR, but I'm not going to try to fix ... _file.setReadable(false, WORLD); // (reset) disable it for everyone first
_file.setReadable(true, USER); // enable for user only as it gets too complicated outside of unix. (i really don't want to deal with ACL) |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
still this PR #5453 to merge |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…r-cleanup Issue #5451 - Cleanup of temp file usages.
PR #5453 merged. |
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
… directory. Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
…anup Issue #5451 - Removing file/dir permission management from codebase
I recently upgraded to jetty-9.4.32.v20200930 and intermittently getting following exception while accessing jsp for the first time : Is my issue related to this issue (#5451) ? |
is this bug fixed in 9.3.x? I found #5451 commit in 9.3.29.v20201019, but the bug fix report(CVE-2020-27216) and this page both has not say about it, https://github.com/eclipse/jetty.project/security/advisories/GHSA-g3wg-6mcf-8jj6#advisory-comment-63053 |
@edhn3000 check the VERSION.txt https://github.com/eclipse/jetty.project/blob/jetty-9.3.30.v20211001/VERSION.txt Know that Jetty 9.3.x was EOL in early 2020 - https://www.eclipse.org/lists/jetty-announce/msg00140.html Also, Jetty 9.4.x is now at End of Community Support - #7958
9.4.33.v20201020 would be a poor version to upgrade to, as it's subject to other security issues. Reminder: Jetty versioning (since 1995) has been You should be upgrading to Jetty 10.x at least at this point. |
Jetty version
9.4.x
Java version
All
OS type/version
All
Description
When the WebInfConfiguration deploys an application, the temp directory creation is using an old Java Classlib API for creating unique directories.
Lets modernize this, as newer Java Classlib APIs exist to make this a single step.
The text was updated successfully, but these errors were encountered: