Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 18788 invoked from network); 18 Sep 2008 16:25:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Sep 2008 16:25:39 -0000 Received: (qmail 19136 invoked by uid 500); 18 Sep 2008 16:25:32 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 19100 invoked by uid 500); 18 Sep 2008 16:25:32 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 19087 invoked by uid 99); 18 Sep 2008 16:25:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 09:25:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Sep 2008 16:24:41 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5B5F1234C1E2 for ; Thu, 18 Sep 2008 09:24:44 -0700 (PDT) Message-ID: <1145105457.1221755084373.JavaMail.jira@brutus> Date: Thu, 18 Sep 2008 09:24:44 -0700 (PDT) From: "Curtiss Howard (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Updated: (MYFACES-1975) HtmlResponseStateManager.getSavedState() should handle javax.faces.ViewState="" In-Reply-To: <143123769.1221755084361.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MYFACES-1975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Curtiss Howard updated MYFACES-1975: ------------------------------------ Status: Patch Available (was: Open) > HtmlResponseStateManager.getSavedState() should handle javax.faces.ViewState="" > ------------------------------------------------------------------------------- > > Key: MYFACES-1975 > URL: https://issues.apache.org/jira/browse/MYFACES-1975 > Project: MyFaces Core > Issue Type: Bug > Components: General > Affects Versions: 1.2.3 > Environment: Any > Reporter: Curtiss Howard > Priority: Minor > Original Estimate: 0.08h > Remaining Estimate: 0.08h > > HtmlResponseStateManager.getSavedState() does not seem to handle the request attribute "javax.faces.ViewState" being an empty string. That is to say, when the request attribute does not exist, a new state is created, but otherwise an attempt is made to reconstruct the view state. In the case that the attribute is an empty string, you'll get an exception similar to the following: > javax.faces.FacesException: java.io.EOFException > at org.apache.myfaces.shared_impl.util.StateUtils.getAsObject(StateUtils.java:350) > at org.apache.myfaces.shared_impl.util.StateUtils.reconstruct(StateUtils.java:246) > at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getSavedState(HtmlResponseStateManager.java:188) > at org.apache.myfaces.renderkit.html.HtmlResponseStateManager.getTreeStructureToRestore(HtmlResponseStateManager.java:149) > This does not occur on the Sun RI implementation (i.e., it returns a new state in this case), and I think due to this being an issue that should be handled (and a trivial change to boot) that it should be fixed. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.