Import fails when an article's default language is not available

Description

Steps to reproduce:
1) Create an article with the default language en_GB
2) Remove en_GB from the portal-wide locales
3) Export the article and import it again
At this point an ArticleTitleException will be thrown

Attachments

2

Activity

Show:

Pani Gui October 30, 2012 at 8:32 PM
Edited

PASSED Manual Testing using the following steps:

1. Go to Control Panel > Portal Settings > Display Settings.
2. Edit Language and Time Zone.
1) Available Locales: es_ES,de_DE,en_US,bg_BG.
2) Default Portal Locale: es_ES.
3. Create a web content.
1) Default Translation: es_ES.
2) Available Translations: de_DE,en_US,bg_BG.
4. Edit Language and Time Zone.
1) Available Locales: es_ES,en_US,bg_BG.
2) Default Portal Locale: es_ES.
5. Add Web Content Display portlet in Welcome page.
6. Select the created web content.
7. Export Web Content Display portlet to a LAR file.
8. Import the LAR file.
9. Delete the web content in Control Panel.
10. import the LAR file again.

Reproduced on:
Tomcat 7.0 + MySQL 5. Portal 6.1.10 EE GA1.

Importing a web content fails when the web content has an unavailable language.

Fixed on:
Tomcat 7.0 + MySQL 5. Portal 6.1.x EE GIT ID: ac453dba013504ac5f39224014de7b26612301a2.
Tomcat 7.0 + MySQL 5. Portal 6.2.x GIT ID: 9ef9171932acea979e88c4184893a7114418b0be.

The web content is imported successfully.

Brian Chan July 25, 2012 at 5:46 PM

Should be fixed as a result of

Manuel de la Peña July 23, 2012 at 12:55 AM
Edited

Example use cases of the PDF attachment. Please check it to see the data flow.

(* means default locale)

1) Web Content Language: es_ES*,de_DE,en_US
Portal Available Locales: es_ES*,en_US,bg_BG
Web Content Language after Import: es_ES*,de_DE,en_US

2) Web Content Language: es_ES*,de_DE,en_US
Portal Available Locales: en_US*,bg_BG
Web Content Language after Import: es_ES,de_DE,en_US*

3) Web Content Language: es_ES*,de_DE,en_US
Portal Available Locales: it_IT*,en_US
Web Content Language after Import: es_ES,de_DE,en_US*

4) Web Content Language: es_ES*,de_DE,en_US
Portal Available Locales: it_IT*,fr_FR
Web Content Language after Import: es_ES,de_DE,en_US,it_IT*

Manuel de la Peña July 18, 2012 at 6:39 AM

Reopening to develop a reusable solution

Fixed

Details

Assignee

Reporter

Labels

Fix Priority

3

Git Pull Request

Components

Affects versions

Priority

Zendesk Support

Created June 22, 2012 at 2:34 AM
Updated June 24, 2023 at 3:52 PM
Resolved July 25, 2012 at 5:46 PM
Loading...