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

Title parameter of method JournalTestUtil.updateArticle expects a plain String but a localized xml is passed in some situations

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: 6.2.X EE, 7.0.0 M4
    • Fix Version/s: 7.0.0 M4
    • Component/s: Testing, ~[Archived] WCM
    • Labels:
      None

      Description

      Title parameter of method JournalTestUtil.updateArticle() expects a plain String but a localized xml is passed in some situations:

      • Inside updateArticle following code generates a map with title in all languages:
        Map<Locale, String> titleMap = new HashMap<>();
        
        for (Locale locale : _locales) {
        	titleMap.put(locale, title);
        }
        
      • But at some tests, we use as "title" the value of article.getTitle() that it is a xml with all languages, so at those tests, a xml with escaped stored xml is saved at database.

      We must allow call to updateArticle with both situations:

      • Plain title in one language
      • Title in all languages

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              beck.liu Beck Liu
              Reporter:
              jorge.diaz Jorge Diaz
              Participants of an Issue:
              Recent user:
              Esther Sanz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                5 years, 46 weeks ago

                  Packages

                  Version Package
                  7.0.0 M4