jersey
  1. jersey
  2. JERSEY-1054

Accept: text/*, @Produces text/* does not result in 406

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0-m07, 2.0
    • Component/s: None
    • Labels:
      None

      Description

      in a resource:

      @Path("error")
      public class ErrorResource {
      	@GET
      	@Produces("text/*")
      	public String test(){
      		return getClass().getSimpleName();
      	}
      }
      
      
      "GET /jaxrs_spec_resource_responsemediatype_web/error HTTP/1.1[\r][\n]"
      "Accept: text/*[\r][\n]"
      

      results in 200, text/plain

        Activity

        Hide
        jan.supol added a comment -

        See Section 3.8 of spec, item 10, in the algorithm.

        Show
        jan.supol added a comment - See Section 3.8 of spec, item 10, in the algorithm.

          People

          • Assignee:
            Miroslav Fuksa
            Reporter:
            jan.supol
          • Votes:
            0 Vote for this issue
            Watchers:
            1 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 - 1 hour Time Not Required
              1h