Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10065

AbstractCachingViewResolver - caching redirect views leads to memory leak

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.4, 3.2 GA
    • Component/s: Web
    • Labels:
      None

      Description

      When user uses URL prefixed with "redirect:" as the method invocation result in Controller, it is cached as the whole (with provided parameters) in AbstractCachingViewResolver. Because the parameters for redirect may vary for the same URL used in redirect, and HashMap based cache is used, that leads to memory leak.

      PS: this problem exists also in 2.5.x, I didn't checked how far in the Spring history it reaches

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                vardlokkur Michał Jaśtak
                Last updater:
                Juergen Hoeller
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  5 years, 21 weeks, 5 days ago