Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-2818

RSS feed failed if no sort criteria is selected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.2, 3.2.1
    • Component/s: None
    • Labels:
      None

      Description

      How to reproduce

      • Add a service of filtered contents
      • Choose none criteria for ordering contents
      • Check box to display RSS feed

      Actual behavior

      • The service do not fail, contents are well display
      • The RSS fed failed with following error
        Caused by: javax.jcr.query.InvalidQueryException: Lexical error at line 1, column 192. Encountered: " " (32), after : ":" for statement: for $v in //element(*, ametys:content)[((@ametys-internal:contentType ='org.ametys.plugins.news.Content.news' and @ametys:site = 'www') and @ametys-internal:language ='fr')] order by @ametys: ascending return $v: Lexical error at line 1, column 192. Encountered: " " (32), after : ":": Lexical error at line 1, column 192. Encountered: " " (32), after : ":" at org.apache.jackrabbit.spi.commons.query.xpath.XPathQueryBuilder.<init>(XPathQueryBuilder.java:303) at org.apache.jackrabbit.spi.commons.query.xpath.XPathQueryBuilder.createQuery(XPathQueryBuilder.java:332)
        

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              laurence Laurence Aumeunier
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: