You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2018/11/09 08:18:00 UTC

[jira] [Comment Edited] (SLING-7436) Wrong content/type in the Default JSON Renderer

    [ https://issues.apache.org/jira/browse/SLING-7436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16681041#comment-16681041 ] 

Carsten Ziegeler edited comment on SLING-7436 at 11/9/18 8:17 AM:
------------------------------------------------------------------

[~asanso] These are the headers send back
< HTTP/1.1 200 OK
< Date: Fri, 09 Nov 2018 08:15:59 GMT
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< Content-Type: application/json;charset=utf-8
< Content-Length: 190

In my case, the file is not downloaded but displayed in the browser


was (Author: cziegeler):
[~asanso] These are the headers send back
< HTTP/1.1 200 OK
< Date: Fri, 09 Nov 2018 08:15:59 GMT
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN
< Content-Type: application/json;charset=utf-8
< Content-Length: 190


> Wrong content/type in the Default JSON Renderer 
> ------------------------------------------------
>
>                 Key: SLING-7436
>                 URL: https://issues.apache.org/jira/browse/SLING-7436
>             Project: Sling
>          Issue Type: Bug
>          Components: Servlets
>            Reporter: Antonio Sanso
>            Priority: Major
>
> Steps to reproduce:
>  1.Render a page (Renderer enabled) with JSON renderer. E.g:
>  [http://localhost.com/dir/page(selector] value).json
> 2. Now, extend the url with a slash / and a name with any other extensions e.g 
>  [http://localhost.com/dir/page.(value).json/file.html].]
> 3. Observe file.html was automatically downloaded
> Credit: this issue was found by Md. Sabuktagin



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)