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

JournalArticleMultiLanguageSearchSummaryTest failed with AssertionError

    Description

    Testray

    Jenkins

     [exec] com.liferay.journal.search.test.JournalArticleMultiLanguageSearchSummaryTest > testUsContentUntranslatedHighlightedTranslatedPlain FAILED
         [exec]     java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.vulcan.internal.security.permission.LiberalPermissionChecker, message=java.lang.NullPointerException
         [exec]     	at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:60)
         [exec]     	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
         [exec]     	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
         [exec]     	at org.apache.log4j.Category.callAppenders(Category.java:206)
         [exec]     	at org.apache.log4j.Category.forcedLog(Category.java:391)
         [exec]     	at org.apache.log4j.Category.log(Category.java:856)
         [exec]     	at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
         [exec]     	at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
         [exec]     	at com.liferay.portal.vulcan.internal.security.permission.LiberalPermissionChecker.init(LiberalPermissionChecker.java:134)
         [exec]     	at com.liferay.portal.vulcan.internal.security.permission.LiberalPermissionCheckerFactoryImpl.create(LiberalPermissionCheckerFactoryImpl.java:39)
         [exec]     	at com.liferay.segments.internal.security.permission.contributor.SegmentsEntryRoleContributor.contribute(SegmentsEntryRoleContributor.java:59)
         [exec]     	at com.liferay.portal.security.permission.AdvancedPermissionChecker.lambda$_applyRoleContributors$0(AdvancedPermissionChecker.java:1197)
         [exec]     	at java.util.HashMap.computeIfAbsent(HashMap.java:1126)
         [exec]     	at com.liferay.portal.security.permission.AdvancedPermissionChecker._applyRoleContributors(AdvancedPermissionChecker.java:1188)
         [exec]     	at com.liferay.portal.security.permission.AdvancedPermissionChecker.getRoleIds(AdvancedPermissionChecker.java:116)
         [exec]     	at com.liferay.portal.security.permission.StagingPermissionChecker.getRoleIds(StagingPermissionChecker.java:66)
         [exec]     	at com.liferay.portal.kernel.security.permission.wrapper.PermissionCheckerWrapper.getRoleIds(PermissionCheckerWrapper.java:61)
         [exec]     	at com.liferay.portal.search.internal.SearchPermissionCheckerImpl._createSearchPermissionContext(SearchPermissionCheckerImpl.java:380)
         [exec]     	at com.liferay.portal.search.internal.SearchPermissionCheckerImpl._getPermissionBooleanFilter(SearchPermissionCheckerImpl.java:491)
         [exec]     	at com.liferay.portal.search.internal.SearchPermissionCheckerImpl._getPermissionBooleanFilter(SearchPermissionCheckerImpl.java:436)
         [exec]     	at com.liferay.portal.search.internal.SearchPermissionCheckerImpl.getPermissionBooleanFilter(SearchPermissionCheckerImpl.java:154)
         [exec]     	at com.liferay.portal.search.internal.indexer.PreFilterContributorHelperImpl._addPermissionFilter(PreFilterContributorHelperImpl.java:132)
         [exec]     	at com.liferay.portal.search.internal.indexer.PreFilterContributorHelperImpl._createPreFilterForEntryClassName(PreFilterContributorHelperImpl.java:155)
         [exec]     	at com.liferay.portal.search.internal.indexer.PreFilterContributorHelperImpl.contribute(PreFilterContributorHelperImpl.java:62)
         [exec]     	at com.liferay.portal.search.internal.query.BaseIndexerPreFilterContributor.contribute(BaseIndexerPreFilterContributor.java:40)
         [exec]     	at com.liferay.portal.kernel.search.BaseIndexer._addPreFilters(BaseIndexer.java:1548)
         [exec]     	at com.liferay.portal.kernel.search.BaseIndexer.getFullQuery(BaseIndexer.java:226)
         [exec]     	at com.liferay.portal.kernel.search.BaseIndexer.doSearch(BaseIndexer.java:1203)
         [exec]     	at com.liferay.portal.search.internal.permission.SearchResultPermissionFilterFactoryImpl._search(SearchResultPermissionFilterFactoryImpl.java:89)
         [exec]     	at com.liferay.portal.search.internal.permission.SearchResultPermissionFilterFactoryImpl.lambda$create$0(SearchResultPermissionFilterFactoryImpl.java:57)
         [exec]     	at com.liferay.portal.search.internal.permission.DefaultSearchResultPermissionFilter.getHits(DefaultSearchResultPermissionFilter.java:186)
         [exec]     	at com.liferay.portal.search.internal.permission.DefaultSearchResultPermissionFilter.search(DefaultSearchResultPermissionFilter.java:98)
         [exec]     	at com.liferay.portal.kernel.search.BaseIndexer.search(BaseIndexer.java:583)
         [exec]     	at com.liferay.journal.search.test.JournalArticleMultiLanguageSearchSummaryTest.search(JournalArticleMultiLanguageSearchSummaryTest.java:424)
         [exec]     	at com.liferay.journal.search.test.JournalArticleMultiLanguageSearchSummaryTest.testUsContentUntranslatedHighlightedTranslatedPlain(JournalArticleMultiLanguageSearchSummaryTest.java:217)
         [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$3.evaluate(TestExecutorRunnable.java:353)
         [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:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:237)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:316)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
         [exec]     	at java.lang.Thread.run(Thread.java:745)
         [exec]     Caused by: java.lang.NullPointerException
         [exec]     	at com.liferay.portal.vulcan.internal.security.permission.LiberalPermissionChecker.init(LiberalPermissionChecker.java:131)
         [exec]     	... 55 more
    

      Attachments

        Activity

          People

          Assignee:
          della.wang Della Wang (Inactive)
          Reporter:
          calvin.vo Calvin Vo
          Participants of an Issue:
          Recent user:
          Della Wang (Inactive)
          Engineering Assignee:
          Marta Medio
          Votes:
          0 Vote for this issue
          Watchers:
          0 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:
            Days since last comment:
            17 weeks, 4 days ago

              Packages

              Version Package
              7.3.X
              Master