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 07:33:00 UTC

[jira] [Commented] (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=16680989#comment-16680989 ] 

Carsten Ziegeler commented on SLING-7436:
-----------------------------------------

[~asanso] I'm trying to figure out what the problem is we have to fix here?
When I try the above example, indeed the json gets downloaded at 2 and the content type is set to application/json;charset=utf-8.
So what needs to change here?

> 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)