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

DLFileEntryIndexerIndexedFieldsTest#testIndexedFields fails due to missing DDM content

    Details

      Description

          [exec] com.liferay.document.library.search.test.DLFileEntryIndexerIndexedFieldsTest > testIndexedFields STARTED
           [exec] 
           [exec] com.liferay.document.library.search.test.DLFileEntryIndexerIndexedFieldsTest > testIndexedFields FAILED
           [exec]     org.junit.ComparisonFailure: ??->[classNameId=0, classPK=0, classTypeId=0, companyId=20102, content_ja_JP=????, createDate=20190618161804, createDate_sortable=1560874684736, dataRepositoryId=57854, entryClassName=com.liferay.document.library.kernel.model.DLFileEntry, entryClassPK=57866, expirationDate=99950812133000, expirationDate_sortable=9223372036854775807, extension=txt, extension_String_sortable=txt, fileEntryTypeId=0, folderId=0, groupId=57854, groupRoleId=57854-20117, hidden=false, localized_title=content_search.txt, localized_title_ar_SA=content_search.txt, localized_title_ar_SA_sortable=content_search.txt, localized_title_ca_ES=content_search.txt, localized_title_ca_ES_sortable=content_search.txt, localized_title_de_DE=content_search.txt, localized_title_de_DE_sortable=content_search.txt, localized_title_en_US=content_search.txt, localized_title_en_US_sortable=content_search.txt, localized_title_es_ES=content_search.txt, localized_title_es_ES_sortable=content_search.txt, localized_title_fi_FI=content_search.txt, localized_title_fi_FI_sortable=content_search.txt, localized_title_fr_FR=content_search.txt, localized_title_fr_FR_sortable=content_search.txt, localized_title_hu_HU=content_search.txt, localized_title_hu_HU_sortable=content_search.txt, localized_title_ja_JP=content_search.txt, localized_title_ja_JP_sortable=content_search.txt, localized_title_nl_NL=content_search.txt, localized_title_nl_NL_sortable=content_search.txt, localized_title_pt_BR=content_search.txt, localized_title_pt_BR_sortable=content_search.txt, localized_title_sv_SE=content_search.txt, localized_title_sv_SE_sortable=content_search.txt, localized_title_zh_CN=content_search.txt, localized_title_zh_CN_sortable=content_search.txt, mimeType=text_plain, mimeType_String_sortable=text_plain, modified=20190618161804, modified_sortable=1560874684743, path=content_search.txt, priority=0.0, properties=content_search, publishDate=20190618161804, publishDate_sortable=1560874684736, readCount=0, roleId=[20109, 20110], scopeGroupId=57854, size=12, size_sortable=12, stagingGroup=false, status=0, title=content_search.txt, title_sortable=content_search.txt, treePath=, uid=com.liferay.document.library.kernel.model.DLFileEntry_PORTLET_57866, userId=57858, userName=blgws837 rn8chwek, viewCount=0, viewCount_sortable=0, visible=true] expected:<...RepositoryId=57854, [ddmContent=text/plain; charset=UTF-8 UTF-8, ddm__text__0__HttpHeaders_CONTENT_ENCODING_en_US=UTF-8, ddm__text__0__HttpHeaders_CONTENT_ENCODING_en_US_String_sortable=utf-8, ddm__text__0__HttpHeaders_CONTENT_TYPE_en_US=text/plain; charset=UTF-8, ddm__text__0__HttpHeaders_CONTENT_TYPE_en_US_String_sortable=text/plain; charset=utf-8, ]entryClassName=com.l...> but was:<...RepositoryId=57854, []entryClassName=com.l...>
           [exec]         at org.junit.Assert.assertEquals(Assert.java:115)
           [exec]         at com.liferay.portal.search.test.util.AssertUtils.assertEquals(AssertUtils.java:56)
           [exec]         at com.liferay.portal.search.test.util.FieldValuesAssert.assertFieldValues(FieldValuesAssert.java:35)
           [exec]         at com.liferay.document.library.search.test.DLFileEntryIndexerIndexedFieldsTest.testIndexedFields(DLFileEntryIndexerIndexedFieldsTest.java:130)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]         at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:218)
           [exec]         at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]         at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:79)
           [exec]         at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:57)
           [exec]         at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
           [exec]         at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec]         at java.lang.Thread.run(Thread.java:745)

      Compare: https://github.com/liferay/liferay-portal/compare/651da97b6043fad7b1fd6fd1efa0e0b05adb0057...6e0a938dcd54c1027bcbba9bffb3d8a98425e29c

      Most likely caused by changes in LPS-93027.

      Tested on:
      Tomcat 9.0 + Oracle Database 12.2 + Oracle JDK 8 64-Bit
      Tomcat 9.0 + IBM DB2 11.1 + Oracle JDK 8 64-Bit
      Portal master SHA: 6e0a938dcd54c1027bcbba9bffb3d8a98425e29c

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  29 weeks, 6 days ago

                  Packages

                  Version Package
                  7.2.X
                  Master