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

Comparison failure in DLFileEntryFileNameSearchTest.testExtensionAloneSubstringMatchesExtensionAndPathFields

Details

    Description

      DLFileEntryFileNameSearchTest.testExtensionAloneSubstringMatchesExtensionAndPathFields is failing in 7.2.x with:

      org.junit.ComparisonFailure: {"from":0,"size":10000,"query":{"bool":{"must":[{"bool":{"must":[{"bool":{"should":[{"bool":{"must":[{"bool":{"should":[{"match":{"comments":{"query":"jp"}}},{"match_phrase_prefix":{"comments":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"comments":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"content":{"query":"jp"}}},{"match_phrase_prefix":{"content":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"content":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"match":{"description":{"query":"jp"}}}],"should":[{"match_phrase":{"description":{"query":"jp","slop":50}}},{"match_phrase":{"description":{"query":"jp","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"properties":{"wildcard":"*jp*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"title":{"query":"jp"}}},{"match_phrase_prefix":{"title":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"title":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"url":{"query":"jp"}}},{"match_phrase_prefix":{"url":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"url":{"query":"jp","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"userName":{"wildcard":"*jp*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"assetCategoryTitles_en_US":{"query":"jp"}}},{"match_phrase_prefix":{"assetCategoryTitles_en_US":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"assetCategoryTitles_en_US":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"assetTagNames_en_US":{"query":"jp"}}},{"match_phrase_prefix":{"assetTagNames_en_US":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"assetTagNames_en_US":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"ddmContent":{"query":"jp"}}},{"match_phrase_prefix":{"ddmContent":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"ddmContent":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"extension":{"query":"jp"}}},{"match_phrase_prefix":{"extension":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"extension":{"query":"jp","boost":2.0}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"fileEntryTypeId":{"query":"jp"}}},{"match_phrase_prefix":{"fileEntryTypeId":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"fileEntryTypeId":{"query":"jp","boost":2.0}}}]}},{"bool":{"should":[{"wildcard":{"path":{"wildcard":"*jp*"}}}]}},{"bool":{"must":[{"bool":{"should":[{"match":{"content_en_US":{"query":"jp"}}},{"match_phrase_prefix":{"content_en_US":{"query":"jp"}}}]}}],"should":[{"match_phrase":{"content_en_US":{"query":"jp","boost":2.0}}}]}}]}}]}}],"filter":[{"bool":{"must":[{"bool":{"must":[{"terms":{"groupId":["48069"]}},{"terms":{"scopeGroupId":["48069"]}}]}},{"bool":{"should":[{"bool":{"must":[{"term":{"entryClassName":{"value":"com.liferay.document.library.kernel.model.DLFileEntry"}}},{"term":{"hidden":{"value":"false"}}},{"term":{"hidden":{"value":"false"}}},{"terms":{"status":["0"]}},{"terms":{"status":["0"]}}]}}]}}]}}]}},"explain":false,"stored_fields":["uid","companyId","entryClassPK","entryClassName","scopeGroupId","groupId","assetTagNames","modified","title","content"],"track_scores":true}->{uid=[com.liferay.document.library.kernel.model.DLFileEntry_PORTLET_48073], entryClassPK=[48073], companyId=[20102], entryClassName=[com.liferay.document.library.kernel.model.DLFileEntry], scopeGroupId=[48069], groupId=[48069], modified=[20200312132847], title=[One.jpg]},{uid=[com.liferay.document.library.kernel.model.DLFileEntry_PORTLET_48083], entryClassPK=[48083], companyId=[20102], entryClassName=[com.liferay.document.library.kernel.model.DLFileEntry], scopeGroupId=[48069], groupId=[48069], modified=[20200312132847], title=[Two.JPG]}->[One.jpg, Two.JPG] expected:<[One.jpg[]]> but was:<[One.jpg[, Two.JPG]]>
      	at org.junit.Assert.assertEquals(Assert.java:115)
      	at com.liferay.portal.search.test.util.DocumentsAssert.assertValuesIgnoreRelevance(DocumentsAssert.java:87)
      	at com.liferay.document.library.search.test.DLFileEntryFileNameSearchTest.assertSearch(DLFileEntryFileNameSearchTest.java:245)
      	at com.liferay.document.library.search.test.DLFileEntryFileNameSearchTest.testExtensionAloneSubstringMatchesExtensionAndPathFields(DLFileEntryFileNameSearchTest.java:108)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
      	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
      	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
      	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
      	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
      	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
      	at java.lang.Thread.run(Thread.java:745)

      Reproducible on GIT ID:  fce797c86a29b777d820bbfbfc8e319feef5a1b0

      Attachments

        Issue Links

          Activity

            People

              brooke.dalton Brooke Dalton
              brooke.dalton Brooke Dalton
              Marta Elicegui Marta Elicegui
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                2 years, 29 weeks, 1 day ago

                Packages

                  Version Package