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 pl...@jakarta.apache.org on 2004/07/07 02:47:54 UTC
[jira] Commented: (PLUTO-55) setContentType is hardcoded to only accept "text/html"
The following comment has been added to this issue:
Author: Ken Weiner
Created: Tue, 6 Jul 2004 5:46 PM
Body:
That line number was a mistake (I accidentally told Eric the wrong line number).
The exception is actually thrown on line 82 because of the hard coded check for a content type equal to "text/html" on line 157:
private boolean isValidContentType(String type)
{
return type.equals("text/html");
}
---------------------------------------------------------------------
View this comment:
http://issues.apache.org/jira/browse/PLUTO-55?page=comments#action_36533
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/PLUTO-55
Here is an overview of the issue:
---------------------------------------------------------------------
Key: PLUTO-55
Summary: setContentType is hardcoded to only accept "text/html"
Type: Bug
Status: Unassigned
Priority: Blocker
Project: Pluto
Components:
general
Versions:
Current CVS
Assignee:
Reporter: Eric Dalquist
Created: Tue, 6 Jul 2004 5:30 PM
Updated: Tue, 6 Jul 2004 5:46 PM
Environment: Windows XP, uPortal 2.3.2
Description:
While trying to implement a custom WindowState in uPortal it has been discovered that no matter what supported mime-types are specified in the portlet.xml Pluto always throws an IllegalArgumentException. After looking through the Pluto code we found it has a hardcoded check to ensure the value sent to setContentType is always "text/html". The code is at RenderResponseImpl:95.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira