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

JSR-303 @Valid validation is not invoked for @RequestBody controller method arguments

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 3.0 GA
    • Fix Version/s: 3.1 M2
    • Component/s: Web
    • Labels:
      None

      Description

      If an argument to a Spring MVC Controller method is annotated with both the @RequestBody and @Valid annotations, the argument should be passed to the validation framework after being populated, but the validation is not invoked.

      More details and an example are included in the forum thread.

        Attachments

          Activity

            People

            • Assignee:
              rstoya05-aop Rossen Stoyanchev
              Reporter:
              scottyfred Scott Frederick
              Last updater:
              Puneet Pandey
            • Votes:
              26 Vote for this issue
              Watchers:
              30 Start watching this issue

              Dates

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