I had a portlet (written using Spring MVC) where I had to download a
CSV file, so in the code, I was making this call
But I kept getting the error below from Vignette.
The provided content type, application/octet-stream, is not a valid
response content type. Please check the valid response content types
by invoking PortletRequest.getResponseContentTypes().
Please contact your System Administrator for assistance.
I tried using "text/csv" and "application/octet-stream" and same response.
This was caused by a missing config in portlet.xml
The portlet I was working on had this config:
and to fix the above error, I had to add this: