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

"Portlet is temporarily unavailable." and NPE is thrown when filtering by "Any Time" in Classic (legacy) Search Portlet

    Details

      Description

      The Classic Search portlet has been deprecated as of 7.1 (2018): https://help.liferay.com/hc/en-us/articles/360017897432-Deprecated-Apps-in-7-1-What-to-Do#foundation


      1. Create a Web Content with title "liferay"
      2. Create a new user "member"
      3. Add user to Liferay DXP site
      4. Add classic Search widget to a page (it's under the "Tools" category)
      5. Log in with "member"
      6. Search for "liferay"
      7. No error
      8. Filter by "Any Time"

      Expected result: No error, page is rendered without issues.
      Actual result: "Portlet is temporarily unavailable." error on the UI and console shows the following error:

      2020-11-09 12:04:24.658 ERROR [https-jsse-nio-8443-exec-4][render_portlet_jsp:131] null
      java.lang.NullPointerException
      	at com.liferay.portal.search.internal.facet.FacetBucketUtil.isFieldInBucket(FacetBucketUtil.java:40)
      	at com.liferay.portal.search.internal.facet.FacetDiscounter.lambda$_findTermsOfField$0(FacetDiscounter.java:108)
      	at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:176)
      	at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
      	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1654)
      	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      	at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:150)
      	at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:173)
      	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:497)
      	at com.liferay.portal.search.internal.facet.FacetDiscounter._exclude(FacetDiscounter.java:88)
      	at com.liferay.portal.search.internal.facet.FacetDiscounter.discount(FacetDiscounter.java:43)
      	at com.liferay.portal.search.internal.facet.FacetPostProcessorImpl.exclude(FacetPostProcessorImpl.java:43)
      	at com.liferay.portal.search.internal.permission.DefaultSearchResultPermissionFilter.filterHits(DefaultSearchResultPermissionFilter.java:151)
      	at com.liferay.portal.search.internal.permission.DefaultSearchResultPermissionFilter$SlidingWindowSearcher.search(DefaultSearchResultPermissionFilter.java:340)
      	at com.liferay.portal.search.internal.permission.DefaultSearchResultPermissionFilter.search(DefaultSearchResultPermissionFilter.java:118)
      	at com.liferay.portal.kernel.search.BaseIndexer.search(BaseIndexer.java:583)
      	at com.liferay.portal.search.internal.searcher.SearcherImpl.search(SearcherImpl.java:231)
      	at com.liferay.portal.search.internal.searcher.SearcherImpl.doMultiIndexerSearch(SearcherImpl.java:125)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              hong.zhao Hong Zhao (Inactive)
              Reporter:
              tibor.lipusz Tibor Lipusz
              Participants of an Issue:
              Recent user:
              Yunlin "Steven" Sun
              Engineering Assignee:
              Bryan Engler
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                36 weeks, 2 days ago
                Development End Date:
                Development Start Date:

                  Packages

                  Version Package
                  7.2.X
                  7.3.10 DXP FP1
                  7.3.10.1 DXP SP1
                  7.3.6 CE GA7
                  7.3.X
                  Master