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

Fail to load RSS with Navigation as Display Template

Details

    Description

      Step to reproduce:

      1. Add a RSS Publisher widget to widget page
      2. Navigate to RSS Publisher configuration
      3. Add a Title and URL
      4. Click on Display Settings tab
      5. Select Navigation as Menu Display
      6. Close the modal
      2022-11-22 19:47:08.756 ERROR [http-nio-8080-exec-8][runtime:59] Error executing FreeMarker template
      freemarker.core._MiscTemplateException: Can't compare values of these types. Allowed comparisons are between two numbers, two strings, two dates, or two booleans.
      Left hand operand is a number (wrapper: f.t.SimpleNumber).
      Right hand operand is a string (wrapper: f.t.SimpleScalar).
      The blamed expression:
      ==> rssFeedEntry_index >= entriesPerFeed!4?number  [in template "20097#20123#43275" at line 28, column 71]
      
      ----
      FTL stack trace ("~" means nesting-related):
      	- Failed at: #if (rssFeedEntry_index >= entriesPer...  [in template "20097#20123#43275" at line 28, column 65]
      ----
      	at freemarker.core.EvalUtil.compare(EvalUtil.java:303) ~[?:?]
      	at freemarker.core.EvalUtil.compare(EvalUtil.java:115) ~[?:?]
      	at freemarker.core.ComparisonExpression.evalToBoolean(ComparisonExpression.java:78) ~[?:?]
      	at freemarker.core.ParentheticalExpression.evalToBoolean(ParentheticalExpression.java:35) ~[?:?]
      	at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48) ~[?:?]
      	at freemarker.core.Environment.visit(Environment.java:367) ~[?:?]
      	at freemarker.core.IteratorBlock$IterationContext.executedNestedContentForCollOrSeqListing(IteratorBlock.java:329) ~[?:?]
      
      

      Evidence: (ActualResult_Nov22_LPS169370_master.mp4)

      Expected Results:
      The template is successfully loaded.

      Current Results:
      An error occurred while processing the template.

      Reproduced on:
      Tomcat 9.0.65 + MySQL 8.0 Portal master GIT ID: fb2f2d6cc318ef108e21bfc615b4e09dcbff907e
      Cannot be reproduced on:
      Tomcat 9.0.65 + MySQL 8.0. Liferay DXP 7.4.13 U51

      Attachments

        Issue Links

          Activity

            People

              support-lep@liferay.com SE Support
              oziel.souza Oziel Souza (Inactive)
              Enterprise Release HU Enterprise Release HU
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                17 weeks, 4 days ago

                Packages

                  Version Package
                  7.4.13 DXP U53
                  7.4.3.53 CE GA53
                  Master