Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-11229

OpenAM create/leaks temp files when getting large REST response

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 13.5.0, 13.5.1
    • Fix Version/s: 13.5.2
    • Component/s: rest
    • Labels:
    • Sprint:
      AM Sustaining Sprint 40, AM Sustaining Sprint 41, AM Sustaining Sprint 42, AM Sustaining Sprint 43, AM Sustaining Sprint 44, AM Sustaining Sprint 45
    • Story Points:
      2
    • Needs backport:
      No
    • Support Ticket IDs:
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes and I used the same an in the description

      Description

      When getting any REST resource that is large, temp file under java.io.tmpdir (typically tomcat's temp) with files like buf<digit>.tmp that contains JSON rest payload are seen. This is seen with 13.5.0. This is CREST-345. This bug is created in case 13.5.x is created to update a new commons with the fix.

      At the time of test 13.5.1-RC4 also affected. This can be checked on json-resource-http-xx.jar and look for (AUTO_CLOSE_TARGET) If it is false. AM5.does not have this issue. (xx=21.0.0)

      Testcase:

      1. Create 1000 realms
      2. Now with XUI accessing the realm one can see buf* create everytime the UI does a REST call.

      Solution:

      • May need CREST-345 fix
      • Monitor the temp directory and remove these files that is JSON like and > 64K (buf.tmp)

      Impact:

      • Disk full

       Condition:

      • If the JSON payload response > 64K it is possible that this will be seen

        Attachments

          Activity

            People

            • Assignee:
              sfraser Sam Fraser
              Reporter:
              chee-weng.chea C-Weng C
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: