Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8310725

Temporary font files should be deleted, once the file purpose is served

    XMLWordPrintable

Details

    • 2d
    • generic
    • generic

    Description

      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


      Attachments

        Issue Links

          Activity

            People

              prr Philip Race
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: