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

HTTP 405 (Method not supported) returned when 404 Status (Not Found) was expected

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.3
    • Fix Version/s: 3.0.4
    • Component/s: Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Scenario:

      • Sent a HTTP request for text/html content
      • @RequestMapping only matches text/plain content
      • A 405 status code was returned when I had expected a 404

      This can be reproduced by running the demo application here:
      https://src.springsource.org/svn/spring-samples/mvc-showcase

      Deploy the application can click on the "GET /simple/textonly" link to see the 405 returned. See the org.springframework.samples.mvc.simple.SimpleControllerRevisited for the @Controller implementation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arjen.poutsma Arjen Poutsma
                Reporter:
                kdonald Keith Donald
                Last updater:
                Trevor Marshall
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  8 years, 2 weeks, 6 days ago

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0d
                  0d
                  Logged:
                  Time Spent - 2h 11m
                  2h 11m