From adffaces-issues-return-1402-apmail-incubator-adffaces-issues-archive=incubator.apache.org@incubator.apache.org Tue Nov 14 23:21:00 2006 Return-Path: Delivered-To: apmail-incubator-adffaces-issues-archive@locus.apache.org Received: (qmail 984 invoked from network); 14 Nov 2006 23:21:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Nov 2006 23:21:00 -0000 Received: (qmail 46651 invoked by uid 500); 14 Nov 2006 23:21:10 -0000 Delivered-To: apmail-incubator-adffaces-issues-archive@incubator.apache.org Received: (qmail 46599 invoked by uid 500); 14 Nov 2006 23:21:10 -0000 Mailing-List: contact adffaces-issues-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-issues@incubator.apache.org Delivered-To: mailing list adffaces-issues@incubator.apache.org Received: (qmail 46590 invoked by uid 99); 14 Nov 2006 23:21:10 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 15:21:10 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Nov 2006 15:20:59 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 649BD7142D7 for ; Tue, 14 Nov 2006 15:20:38 -0800 (PST) Message-ID: <26556715.1163546438409.JavaMail.jira@brutus> Date: Tue, 14 Nov 2006 15:20:38 -0800 (PST) From: "Gary VanMatre (JIRA)" To: adffaces-issues@incubator.apache.org Subject: [jira] Updated: (ADFFACES-291) The StateManagerImpl fails to verify the viewId of the restored view matches the request viewId. In-Reply-To: <16649173.1163546317793.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 [ http://issues.apache.org/jira/browse/ADFFACES-291?page=all ] Gary VanMatre updated ADFFACES-291: ----------------------------------- Attachment: StateManagerImpl.patch Patch for the StateManagerImpl to compare the restored veiw id to the target view id. > The StateManagerImpl fails to verify the viewId of the restored view matches the request viewId. > ------------------------------------------------------------------------------------------------ > > Key: ADFFACES-291 > URL: http://issues.apache.org/jira/browse/ADFFACES-291 > Project: MyFaces ADF-Faces > Issue Type: Bug > Reporter: Gary VanMatre > Attachments: StateManagerImpl.patch > > > The Trinidad state manager is only interested in restoring state when client side state is activated. There is a scenario in the invoke application phase that a baking callback or a phase listener might choose to dispatch to another faces view. Since this delegation is a forward, the client's state of the previous view still exists in the request. The view state is restored on the previous view's state. > The myfaces JspStateManagerImpl performs this check in the restoreView method. > Snippet: > if (restoredViewId == null || !(restoredViewId.equals(viewId))) { -- 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 - For more information on JIRA, see: http://www.atlassian.com/software/jira