jersey
  1. jersey
  2. JERSEY-1783

BeanValidation does not support @ValidateExecutable correctly

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0-m13
    • Fix Version/s: 2.0-rc1, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      Having the following resource, a request on both method is answered with status code 400.

      @Path("resource/executable")
      @ValidateExecutable(ExecutableType.NON_GETTER_METHODS)
      public class ValidateExecutableResource {
      
              @Path("nogetter")
              @GET
              @NotNull
              public String null() {
                  return null;
              }
      
              @Path("getter")
              @GET
              @NotNull
              public String getNull() {
                  return null;
              }
          }
      

        Issue Links

          Activity

          Hide
          jan.supol added a comment -

          It turns out that HTTP status 400 is really correct

          Show
          jan.supol added a comment - It turns out that HTTP status 400 is really correct
          Hide
          Michal Gajdos added a comment -

          Created new issue JERSEY-2245.

          Show
          Michal Gajdos added a comment - Created new issue JERSEY-2245 .

            People

            • Assignee:
              Michal Gajdos
              Reporter:
              jan.supol
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 6 hours
                6h