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

Boost Freshness generates date_time_parse_exception on search page

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: Master
    • Fix Version/s: None
    • Labels:
      None
    • Fix Priority:
      4

      Description

      Steps to Reproduce:

      1. Create a Blueprint
      2. Add element "Boost Freshness" with default values
      3. Save and note the Blueprint ID
      4. Navigate to Search page
      5. Add Low Level Search Options widget
      6. Configure the widget with the following attribute:
        1. Key: search.experiences.blueprint.id
        2. Value: Blueprint ID
      7. Search for "test"

      Result:
      Red portlets with "Portlet is temporarily unavailable." and the following on the console:

      	Suppressed: org.elasticsearch.client.ResponseException: method [POST], host [http://192.168.0.120:9201], URI [/liferay-20099/_search?typed_keys=true&max_concurrent_shard_requests=5&ignore_unavailable=false&expand_wildcards=open&allow_no_indices=true&ignore_throttled=true&search_type=query_then_fetch&batched_reduce_size=512], status line [HTTP/1.1 400 Bad Request]
      {"error":{"root_cause":[{"type":"parse_exception","reason":"failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]: [failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]]"}],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[{"shard":0,"index":"liferay-20099","node":"WZInPbLQTxKZh_K-zC0jHg","reason":{"type":"query_shard_exception","reason":"failed to create query: failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]: [failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]]","index_uuid":"JJpgfOxGTR2cEOLQFIzf4Q","index":"liferay-20099","caused_by":{"type":"parse_exception","reason":"failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]: [failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]]","caused_by":{"type":"illegal_argument_exception","reason":"failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]","caused_by":{"type":"date_time_parse_exception","reason":"Text 'Tue Dec 14 05:48:30 GMT 2021' could not be parsed at index 0"}}}}}],"caused_by":{"type":"parse_exception","reason":"failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]: [failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]]","caused_by":{"type":"illegal_argument_exception","reason":"failed to parse date field [Tue Dec 14 05:48:30 GMT 2021] with format [yyyyMMddHHmmss]","caused_by":{"type":"date_time_parse_exception","reason":"Text 'Tue Dec 14 05:48:30 GMT 2021' could not be parsed at index 0"}}}},"status":400}
      		at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:326) ~[?:?]
      		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:296) ~[?:?]
      		at org.elasticsearch.client.RestClient.performRequest(RestClient.java:270) ~[?:?]
      		at org.elasticsearch.client.RestHighLevelClient.performClientRequest(RestHighLevelClient.java:2082) ~[?:?]
      		at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1732) ~[?:?]
      		at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1702) ~[?:?]
      		at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1672) ~[?:?]
      		at org.elasticsearch.client.RestHighLevelClient.search(RestHighLevelClient.java:1128) ~[?:?]
      		at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.getSearchResponse(SearchSearchRequestExecutorImpl.java:95) ~[?:?]
      		at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.SearchSearchRequestExecutorImpl.execute(SearchSearchRequestExecutorImpl.java:66) ~[?:?]
      		at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.search.ElasticsearchSearchRequestExecutor.executeSearchRequest(ElasticsearchSearchRequestExecutor.java:59) ~[?:?]
      		at com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:45) ~[?:?]
      		at com.liferay.portal.search.engine.adapter.search.SearchSearchRequest.accept(SearchSearchRequest.java:34) ~[?:?]
      		at com.liferay.portal.search.elasticsearch7.internal.search.engine.adapter.ElasticsearchSearchEngineAdapterImpl.execute(ElasticsearchSearchEngineAdapterImpl.java:103) ~[?:?]
      		at com.liferay.portal.search.elasticsearch7.internal.ElasticsearchIndexSearcher.search(ElasticsearchIndexSearcher.java:127) ~[?:?]
      		at sun.reflect.GeneratedMethodAccessor750.invoke(Unknown Source) ~[?:?]
      		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_292]
      		at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_292]
      		at com.liferay.portal.kernel.messaging.proxy.ProxyRequest.execute(ProxyRequest.java:82) ~[portal-kernel.jar:?]
      		at com.liferay.portal.kernel.messaging.proxy.ProxyMessageListener.receive(ProxyMessageListener.java:58) ~[portal-kernel.jar:?]
      		at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74) ~[portal-kernel.jar:?]
      		at com.liferay.portal.messaging.internal.SynchronousDestination.send(SynchronousDestination.java:46) ~[?:?]
      		at com.liferay.portal.messaging.internal.sender.DirectSynchronousMessageSender.send(DirectSynchronousMessageSender.java:59) ~[?:?]
      		at com.liferay.portal.kernel.messaging.proxy.BaseMultiDestinationProxyBean.synchronousSend(BaseMultiDestinationProxyBean.java:53) ~[portal-kernel.jar:?]
      		at com.liferay.portal.messaging.proxy.MultiDestinationMessagingProxyInvocationHandler.invoke(MultiDestinationMessagingProxyInvocationHandler.java:58) ~[portal-impl.jar:?]
      

      Reproduced on:
      Tomcat 9.0.53 + MySQL 5.7
      Portal Master GIT ID: da22c88cd8bc786e3dc7eba9a418763a92c8fb15

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timothy.pak Timothy Pak
              Reporter:
              timothy.pak Timothy Pak
              Participants of an Issue:
              Recent user:
              Timothy Pak
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                26 weeks, 1 day ago

                  Packages

                  Version Package