Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-67740

Import LAR fails reporting "The locale en_US is not available"

    Details

      Description

      We have a journal article in a LAR that does not have a <dynamic-content /> tag. com.liferay.journal.util.impl.JournalUtil._mergeArticleContentUpdate() assumes that there is at least one <dynamic-content /> tag. Since there isn't any, it throws an IndexOutOfBoundsException which prepareLocalizedContentForImport traps and discards in the catch {} block and throws a LocaleException() instead.

      Current lines from master in _mergeArticleContentUpdate() that cause the exception read:

      		List<Element> elements = newElement.elements("dynamic-content");
      
      		Element newContentElement = elements.get(0);
      
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 20 weeks, 6 days ago

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.X EE
                  Master