Uploaded image for project: 'Legacy UI Module'
  1. Legacy UI Module
  2. LUI-189

Include suffix in controller urls

    XMLWordPrintable

Details

    • Enhancement
    • Status: Code Review (Post-Commit)
    • Should
    • Resolution: Unresolved
    • None
    • 1.13.0
    • None
    • Low

    Description

      Starting in 5.3, by default Spring MVC no longer performs .* suffix pattern matching where a controller mapped to /person is also implicitly mapped to /person.*. As a consequence path extensions are no longer used to interpret the requested content type for the response — for example, /person.pdf, /person.xml, and so on.

      https://docs.spring.io/spring-framework/docs/current/reference/html/web.html#mvc-ann-requestmapping-suffix-pattern-match

      The other alternative would be to set useSuffixPatternMatch to true in the spring application context file in order to revert to the default old behaviour. But this is discouraged because of its security implications as mentioned in the above link.

      Gliffy Diagrams

        Attachments

          Activity

            People

              dkayiwa Daniel Kayiwa
              dkayiwa Daniel Kayiwa
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: