-
Enhancement
-
Resolution: Not an Issue
-
P4
-
17
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
OS: "Ubuntu 20.04.6 LTS (Focal Fossa)"
JDK version: 17.0.7
A DESCRIPTION OF THE PROBLEM :
When I invoke, createFont(int fontFormat, InputStream fontStream) method, it returns font object and creates a tmp file with name pattern: "+~JF<<Random_number>>.tmp". It doesn't delete the file after request is serverd. These files only getting deleted on stopping the application.
Somehow, hasTempPermission() method returns true as System.getSecurityManager() is null. So, method createFont0() invokes with CreatedFontTracker as null.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
System.getSecurityManager() should return null. then invoke createFont(int fontFormat, InputStream fontStream) through code.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
File generated in tmp folder with name pattern: "+~JF<<Random_number>>.tmp" should be deleted, once the file purpose is served
ACTUAL -
Files keeps getting piled in tmp on every request and get deleted on stopping application
---------- BEGIN SOURCE ----------
Sample code: <link>
Project Module: <link>
---------- END SOURCE ----------
FREQUENCY : always
OS: "Ubuntu 20.04.6 LTS (Focal Fossa)"
JDK version: 17.0.7
A DESCRIPTION OF THE PROBLEM :
When I invoke, createFont(int fontFormat, InputStream fontStream) method, it returns font object and creates a tmp file with name pattern: "+~JF<<Random_number>>.tmp". It doesn't delete the file after request is serverd. These files only getting deleted on stopping the application.
Somehow, hasTempPermission() method returns true as System.getSecurityManager() is null. So, method createFont0() invokes with CreatedFontTracker as null.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
System.getSecurityManager() should return null. then invoke createFont(int fontFormat, InputStream fontStream) through code.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
File generated in tmp folder with name pattern: "+~JF<<Random_number>>.tmp" should be deleted, once the file purpose is served
ACTUAL -
Files keeps getting piled in tmp on every request and get deleted on stopping application
---------- BEGIN SOURCE ----------
Sample code: <link>
Project Module: <link>
---------- END SOURCE ----------
FREQUENCY : always
- relates to
-
JDK-8152423 Generated temp files (+JXF...temp) for custom fonts not deleted on exit.
- Resolved