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:30:54 UTC
[jira] Created: (PLUTO-55) setContentType is hardcoded to only accept "text/html"
Message:
A new issue has been created in JIRA.
---------------------------------------------------------------------
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:30 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
[jira] Assigned: (PLUTO-55) setContentType is hardcoded to only accept "text/html"
Posted by pl...@jakarta.apache.org.
Message:
The following issue has been re-assigned.
Assignee: David DeWolf (mailto:ddewolf@apache.org)
---------------------------------------------------------------------
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: Open
Priority: Blocker
Project: Pluto
Components:
general
Versions:
Current CVS
Assignee: David DeWolf
Reporter: Eric Dalquist
Created: Tue, 6 Jul 2004 5:30 PM
Updated: Fri, 30 Jul 2004 1:22 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
[jira] Resolved: (PLUTO-55) setContentType is hardcoded to only accept "text/html"
Posted by pl...@jakarta.apache.org.
Message:
The following issue has been resolved as FIXED.
Resolver: David DeWolf
Date: Fri, 30 Jul 2004 1:32 PM
Now iterate through all declared mime-types, checking for matches and wildcards.
---------------------------------------------------------------------
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: Resolved
Priority: Blocker
Resolution: FIXED
Project: Pluto
Components:
general
Fix Fors:
unspecified
Versions:
Current CVS
Assignee: David DeWolf
Reporter: Eric Dalquist
Created: Tue, 6 Jul 2004 5:30 PM
Updated: Fri, 30 Jul 2004 1:32 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
[jira] Commented: (PLUTO-55) setContentType is hardcoded to only accept "text/html"
Posted by pl...@jakarta.apache.org.
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