jersey
  1. jersey
  2. JERSEY-1528

Null Response results in status 500.

    Details

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

      Description

      Spec., Section 3.3.3. Says:

      A null return value results in a 204 status code.

      The following code, however, results in status 500:

      @Path("resource")
      public class Resource {
      	@GET
      	@Path("nullResponse")
      	public Response nullResponse() {
      		return null;
      	}
      }
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Marek Potociar
            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
              3h
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 30 minutes Time Not Required
              30m