Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-181

Flash attributes not working with uuid redirects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 3.0.4
    • None
    • None
    • None

    Description

      It works fine when returning UuidRedirectView directly but with the short-hand string syntax it doesn't work.

      It appears to be a shortcoming in Spring itself where the view needs to be detected as a redirect view directly after its returned from the controller. This happens in ViewNameMethodReturnValueHandler and its not exactly trivial to customize its behavior as you'd need to explicitly configure the full set of HandlerMethodReturnValueHandlers.

      It is possible to fix it by subclassing RequestMappingHandlerAdapter and replace the ViewNameMethodReturnValueHandler with a custom implementation that can detect Blossom's redirect prefixes. Unfortunately this will involve repeating the logic in UuidRedirectViewResolver.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              tmattsson Tobias Mattsson
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD