You are viewing a plain text version of this content. The canonical link for it is here.
Posted to adffaces-issues@incubator.apache.org by "Scott O'Bryan (JIRA)" <ad...@incubator.apache.org> on 2007/04/18 17:14:15 UTC

[jira] Updated: (ADFFACES-458) JSF1.2 ExternalContext methods do not handle null request/response

     [ https://issues.apache.org/jira/browse/ADFFACES-458?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Scott O'Bryan updated ADFFACES-458:
-----------------------------------

    Status: Patch Available  (was: Open)

> JSF1.2 ExternalContext methods do not handle null request/response
> ------------------------------------------------------------------
>
>                 Key: ADFFACES-458
>                 URL: https://issues.apache.org/jira/browse/ADFFACES-458
>             Project: MyFaces ADF-Faces
>          Issue Type: Bug
>         Environment: JSF 1.2 Branches only
>            Reporter: Scott O'Bryan
>
> The Trinidad ServletExternalContext is designed to support the TrinidadConfigurators.  As a result, one can construct an externalContext with a null request and response.  Throughout the rest of the class, when a method is executed that requires a request and/or a response and one is not present, an UnsupportedOperationException is thrown.  The methods in question will throw a NullPointerException.  Therefore, we need to add a _checkRequest(); or _checkResponse(); call to the following methods:
> getRequestCharacterEncoding
> getRequestContentType
> getResponseCharacterEncoding
> getResponseContentType
> setRequestCharacterEncoding
> setResponseCharacterEncoding

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.