Bug 1250286

Summary: [GSS](6.4.z) JAVASERVERFACES-3241 - IndexOutOfBoundsException caused by javax.faces.component.AttachedObjectListHolder::restoreState(FacesContext context, Object state)
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Takayuki Konishi <tkonishi>
Component: JSFAssignee: Chao Wang <chaowan>
Status: CLOSED CURRENTRELEASE QA Contact: Pavol Pitonak <ppitonak>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.3.0CC: amelicha, bmaxwell, chaowan, fjuma, jawilson, maschmid, ssilvert
Target Milestone: CR1   
Target Release: EAP 6.4.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1235745, 1251856    
Attachments:
Description Flags
r13732.patch none

Description Takayuki Konishi 2015-08-05 02:59:42 UTC
see https://java.net/jira/browse/JAVASERVERFACES-3241

Comment 3 Chao Wang 2015-08-05 10:42:07 UTC
Created attachment 1059405 [details]
r13732.patch

Attach revision 13732 patch, real fix is part:

Index: jsf-api/src/main/java/javax/faces/component/AttachedObjectListHolder.java
===================================================================
--- jsf-api/src/main/java/javax/faces/component/AttachedObjectListHolder.java	(revision 13731)
+++ jsf-api/src/main/java/javax/faces/component/AttachedObjectListHolder.java	(revision 13732)
@@ -157,7 +157,7 @@
             for (int i = 0, len = attachedObjects.length; i < len; i++) {
                 T restored = (T) ((StateHolderSaver) attachedObjects[i]).restore(context);
                 if (restored != null) {
-                    this.attachedObjects.add(restored);
+                    add(restored);
                 }
             }
         } else {

Comment 7 Rostislav Svoboda 2015-08-24 12:15:26 UTC
qa_acking
Fix in https://github.com/jboss/jboss-jsf-api_spec/tree/jboss-jsf-api_2.1_spec-2.1.28.1.Final corresponds to patch shown in Comment 3

Comment 11 Petr Penicka 2017-01-17 11:43:15 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.

Comment 12 Petr Penicka 2017-01-17 11:43:17 UTC
Retroactively bulk-closing issues from released EAP 6.4 cumulative patches.