[ 
https://issues.apache.org/jira/browse/CLEREZZA-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805096#action_12805096
 ] 

Reto Bachmann-Gmür commented on CLEREZZA-49:
--------------------------------------------

According to section 10.4.7:

 Note: HTTP/1.1 servers are allowed to return responses which are
      not acceptable according to the accept headers sent in the
      request. In some cases, this may even be preferable to sending a
      406 response. User agents are encouraged to inspect the headers of
      an incoming response to determine if it is acceptable.

Do you think it would be better to return 406?

Clearly we cannot return the rdf description when requesting an InfoDiscoBit  
with type rdf/xml as this would create ambiguity when an InfoDiscoBit with type 
rdf/xml is requested. To get the rdf despriction of an InfoBit one might just 
add "-description" to the URI.

> Wrong media type when requesting application/rdf+xml on an InfoDiscoBit image 
> resource
> --------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-49
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-49
>             Project: Clerezza
>          Issue Type: Bug
>            Reporter: Manuel Innerhofer
>
> When making a request on a InfoDiscoBit image resource with ACCEPT header set 
> to application/rdf+xml then still the image is returned.
> Request Headers:
> Host  localhost:8080
> User-Agent    Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.6) 
> Gecko/20091215 Ubuntu/9.10 (karmic) Firefox/3.5.6
> Accept        application/rdf+xml
> Accept-Language       en-us,en;q=0.5
> Accept-Encoding       gzip,deflate
> Accept-Charset        ISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive    300
> Connection    keep-alive
> Cookie        auth=YWRtaW46YWRtaW4=
> Response Headers:
> Content-Type  image/jpg
> Content-Length        4642
> Server        Jetty(6.1.x)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to