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

RSS feed failed if no sort criteria is selected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.1.2, 3.2.1
    • None
    • None
    • None

      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)
        

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

              Created:
              Updated:
              Resolved: