Bug 793741 (JBEPP-811)

Summary: Fail to create one page when creating two new pages at the same time.
Product: [JBoss] JBoss Enterprise Portal Platform 5 Reporter: Takayuki Konishi <tkonishi>
Component: PortalAssignee: Toshiya Kobayashi <tkobayas>
Status: CLOSED DEFERRED QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.GACC: epp-bugs, mstrukel, tkobayas
Target Milestone: ---   
Target Release: 5.1.1.DEV01   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/JBEPP-811
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-04-14 11:30:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 793801    

Description Takayuki Konishi 2011-02-25 11:38:15 UTC
Affects: Release Notes
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000006IqsI
Steps to Reproduce: 1. start JBossAS
2. access /portal
3. login as root
4. click "Site Editor" - "Add New Page"
5. follow the "Page Creation Wizard" and wait before "Finish"
6. Open another web browser and do the same thing(2-5) except for node name. Please set different node name.
7. Click "Finish" icons on two browsers at the same time.
8. One window shows new node, but the other window shows "page not found" and the node is not created.
project_key: JBEPP

Fail to create one page when creating two new pages at the same time.
And "Page not found" is shown as a result for the failed page.
It seems a timing issue. In plain EPP, you can reproduce it easily just after starting EPP. (In case that Site Publisher have been deployed, you can reproduce it easily at any time.)
This issue can happen with 2 different EPP users or concurrent accesses by 1 EPP user.

Comment 1 Takayuki Konishi 2011-02-25 11:47:04 UTC
Steps to Reproduce: Removed: 1. start EPP
2. access /portal
3. login as root
4. click "Site Editor" - "Add New Page"
5. follow the "Page Creation Wizard" and wait before "Finish"
6. Open other web browser and do same thing(2-6) except for node name. Please set something other node name.
7. Click "Finish" icons on two browser window at the same time.
8. One window show new node, but another window show "page not found" and the node is not created. Added: 1. start EPP
2. access /portal
3. login as root
4. click "Site Editor" - "Add New Page"
5. follow the "Page Creation Wizard" and wait before "Finish"
6. Open other web browser and do same thing(2-5) except for node name. Please set something other node name.
7. Click "Finish" icons on two browser window at the same time.
8. One window show new node, but another window show "page not found" and the node is not created.


Comment 2 Takayuki Konishi 2011-02-28 09:33:24 UTC
Steps to Reproduce: Removed: 1. start EPP
2. access /portal
3. login as root
4. click "Site Editor" - "Add New Page"
5. follow the "Page Creation Wizard" and wait before "Finish"
6. Open other web browser and do same thing(2-5) except for node name. Please set something other node name.
7. Click "Finish" icons on two browser window at the same time.
8. One window show new node, but another window show "page not found" and the node is not created. Added: 1. start JBossAS
2. access /portal
3. login as root
4. click "Site Editor" - "Add New Page"
5. follow the "Page Creation Wizard" and wait before "Finish"
6. Open another web browser and do the same thing(2-5) except for node name. Please set different node name.
7. Click "Finish" icons on two browsers at the same time.
8. One window shows new node, but the other window shows "page not found" and the node is not created.


Comment 3 Toshiya Kobayashi 2011-03-02 05:07:27 UTC
Link: Added: This issue incorporates GTNPORTAL-1823


Comment 4 Toshiya Kobayashi 2011-03-02 05:11:20 UTC
This is a similar issue which is reported in GTNPORTAL-1090
But in this case, we don't access the same resource (2 different pages creation).

Comment 5 Toshiya Kobayashi 2011-03-03 00:08:21 UTC
Link: Added: This issue is related to JBEPP-602


Comment 6 Toshiya Kobayashi 2011-04-11 06:57:56 UTC
Link: Added: This issue is a dependency of JBEPP-876


Comment 7 Toshiya Kobayashi 2011-04-14 11:36:50 UTC
I've committed GTNPORTAL-1823_1.patch. Now this issue is resolved partially. See GTNPORTAL-1823 for details. 

    * The navigation overwriting issue is resolved (Test_GTNPORTAL_1823_FailToCreatePageNavNode)
    * The cuncurrent access to page creation 'Finish' is not resolved in code base yet but can be worked around by CreatePageSynchronizationFilter/SetCharacterEncodingFilter (Test_GTNPORTAL_1823_FailToCreatePage)
    * The other cuncurrency issues should be considered maybe in another GTNPORTAL JIRA

I marked this JIRA as 'Partially Completed'. If this resolution status is not preferable, please let me know.

Comment 8 Scott Mumford 2011-08-09 03:18:51 UTC
Release Notes Docs Status: Added: Needs More Info
Release Notes Text: Added: Some caching and overwriting issues have been encountered when more than one portal user attempts to manipulate the same portal resource concurrently (by editing the same page at the same time, for example).

This release of JBoss Enterprise Portal Platform includes multiple patches designed to mitigate the issue somewhat. However, this is a complex issue and further development will be required in later iterations to resolve it completely.


Comment 9 Scott Mumford 2011-08-12 00:32:37 UTC
Release Notes Docs Status: Removed: Needs More Info Added: Documented as Resolved Issue


Comment 10 Scott Mumford 2011-08-12 00:58:37 UTC
Release Notes Text: Removed: Some caching and overwriting issues have been encountered when more than one portal user attempts to manipulate the same portal resource concurrently (by editing the same page at the same time, for example).

This release of JBoss Enterprise Portal Platform includes multiple patches designed to mitigate the issue somewhat. However, this is a complex issue and further development will be required in later iterations to resolve it completely. Added: A race condition, encountered when more than one portal user attempts to create a page at the same time has been adressed in this release. The issue presented if two pages were created simultaneously, with one process finishing slightly after the first, but before the first process had redirected to the new page. This scenario would result in the second page overwriting the first.

Patches which resolve the page creation issue have been applied to this release. However, further development will be required in later iterations to resolve concurrency issues completely.