Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 979669

Summary: Site layout with containers causes the import to fail
Product: [JBoss] JBoss Enterprise Portal Platform 6 Reporter: Miroslav Cupák <mcupak>
Component: PortalAssignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.0CC: epp-bugs, tkyjovsk
Target Milestone: ER03   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:28:02 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:
Embargoed:
Attachments:
Description Flags
Server log. none

Description Miroslav Cupák 2013-06-29 10:11:37 UTC
Created attachment 766803 [details]
Server log.

Description of problem:
When using a site layout in which the portal page is placed inside a container, the site can be exported, but such export cannot be imported through the Site Redirects and Export/Import portlet again. Such layout generates a <page-body> element inside a <container> element in site's portal.xml file during export, which causes the following exception when the data is read during import:

org.gatein.management.api.exceptions.OperationException: Exception reading data for import.
...
Caused by: org.staxnav.StaxNavException: Unexpected element 'page-body' at [row,col]:[77,16]                            
...

Steps to Reproduce:
1. Start the portal, sign in as root.
2. Go to Site > Manage Sites.
3. Choose e.g. the Classic portal and click Edit Layout.
4. Switch to the containers tab in the composer window and drag e.g. a two column layout to the page. 5. Place the Portal Page in the container and save.
6. Export the site, e.g. via GET /mop.zip?filter=site-type:!user,group.
7. Go to Group > Administration > Site Redirects and Export/Import > Import Site/Space.
8. Select your exported file and an arbitrary import strategy (e.g. Conserve) and click Import.

Actual results:
Import fails and an exception is visible in the server log.

Expected results:
The data is imported successfully.

Comment 5 Red Hat Bugzilla 2025-02-10 03:28:02 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.