Uploaded image for project: 'HTML Form Entry Module'
  1. HTML Form Entry Module
  2. HTML-816

Include suffix in controller urls

    XMLWordPrintable

Details

    • Story
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • HTML Form Entry 5.1.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

              kdaud Kakumirizi Daud
              kdaud Kakumirizi Daud
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: