Bug 979669 - Site layout with containers causes the import to fail
Summary: Site layout with containers causes the import to fail
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: JBoss Enterprise Portal Platform 6
Classification: JBoss
Component: Portal
Version: 6.1.0
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ER03
: 6.1.0
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-06-29 10:11 UTC by Miroslav Cupák
Modified: 2025-02-10 03:28 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-02-10 03:28:02 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Server log. (38.74 KB, text/plain)
2013-06-29 10:11 UTC, Miroslav Cupák
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker GTNPORTAL-3162 0 Major Resolved Site layout with containers causes the import to fail 2014-03-20 15:49:39 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.