You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-dev@portals.apache.org by "julien (JIRA)" <ji...@apache.org> on 2012/09/21 17:38:07 UTC

[jira] [Created] (PLUTO-620) ResourceResponse & content-disposition

julien created PLUTO-620:
----------------------------

             Summary: ResourceResponse & content-disposition
                 Key: PLUTO-620
                 URL: https://issues.apache.org/jira/browse/PLUTO-620
             Project: Pluto
          Issue Type: Improvement
          Components: portal driver
    Affects Versions: 2.1.0-M2
            Reporter: julien


I use serveResource in my portlet to comply jsr-286 when serving pdf dile.
Unfortunalety I found no way to set content-disposition in http response header. (ResourceResponse.setProperty has nos effect for this property).

Example of code:

    @Override
    public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {

        if (EDITION_RESSOURCE_ID.equals(request.getResourceID())) {
            response.setContentType("application/pdf");
            response.setProperty("Content-Disposition", "attachment; filename=test.pdf");
          .....
        }
}



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PLUTO-620) ResourceResponse & content-disposition

Posted by "Eric Dalquist (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Dalquist updated PLUTO-620:
--------------------------------

    Fix Version/s: 2.1.0
    
> ResourceResponse & content-disposition
> --------------------------------------
>
>                 Key: PLUTO-620
>                 URL: https://issues.apache.org/jira/browse/PLUTO-620
>             Project: Pluto
>          Issue Type: Improvement
>          Components: portal driver
>    Affects Versions: 2.1.0-M2
>            Reporter: julien
>             Fix For: 2.1.0
>
>
> I use serveResource in my portlet to comply jsr-286 when serving pdf dile.
> Unfortunalety I found no way to set content-disposition in http response header. (ResourceResponse.setProperty has no effect for this property).
> Example of code:
>     @Override
>     public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {
>         if (EDITION_RESSOURCE_ID.equals(request.getResourceID())) {
>             response.setContentType("application/pdf");
>             response.setProperty("Content-Disposition", "attachment; filename=test.pdf");
>           .....
>         }
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (PLUTO-620) ResourceResponse & content-disposition

Posted by "julien (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/PLUTO-620?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

julien updated PLUTO-620:
-------------------------

    Description: 
I use serveResource in my portlet to comply jsr-286 when serving pdf dile.
Unfortunalety I found no way to set content-disposition in http response header. (ResourceResponse.setProperty has no effect for this property).

Example of code:

    @Override
    public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {

        if (EDITION_RESSOURCE_ID.equals(request.getResourceID())) {
            response.setContentType("application/pdf");
            response.setProperty("Content-Disposition", "attachment; filename=test.pdf");
          .....
        }
}



  was:
I use serveResource in my portlet to comply jsr-286 when serving pdf dile.
Unfortunalety I found no way to set content-disposition in http response header. (ResourceResponse.setProperty has nos effect for this property).

Example of code:

    @Override
    public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {

        if (EDITION_RESSOURCE_ID.equals(request.getResourceID())) {
            response.setContentType("application/pdf");
            response.setProperty("Content-Disposition", "attachment; filename=test.pdf");
          .....
        }
}



    
> ResourceResponse & content-disposition
> --------------------------------------
>
>                 Key: PLUTO-620
>                 URL: https://issues.apache.org/jira/browse/PLUTO-620
>             Project: Pluto
>          Issue Type: Improvement
>          Components: portal driver
>    Affects Versions: 2.1.0-M2
>            Reporter: julien
>
> I use serveResource in my portlet to comply jsr-286 when serving pdf dile.
> Unfortunalety I found no way to set content-disposition in http response header. (ResourceResponse.setProperty has no effect for this property).
> Example of code:
>     @Override
>     public void serveResource(ResourceRequest request, ResourceResponse response) throws PortletException, IOException {
>         if (EDITION_RESSOURCE_ID.equals(request.getResourceID())) {
>             response.setContentType("application/pdf");
>             response.setProperty("Content-Disposition", "attachment; filename=test.pdf");
>           .....
>         }
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira