Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-13458

REST query API does not support XWQL requests manipulating xobjects

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.4.2
    • Fix Version/s: 8.3-milestone-1
    • Component/s: REST
    • Labels:
    • Environment:
      XWiki 7.4.2, Debian Jessie, PostgreSQL, Tomcat 8, Openjre 8
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      I have been trying to use XWQL with REST as per the following thread:
      http://xwiki.475771.n2.nabble.com/REST-API-ignores-type-parameter-td7599586.html

      As per the concluding comment from Marius:
      You are not allowed to use full statements
      (i.e. that start with 'select'). You have to use instead:

      , <additional FROM clause> where ...

      or

      where ...

      Unfortunately using a short query is not enough for XWQL. It seems the code
      doesn't do anything special for XWQL query type and it treats it as HQL. So
      for now you'll have to rely on HQL.

        Attachments

          Activity

            People

            Assignee:
            tmortagne Thomas Mortagne
            Reporter:
            marksack marksack
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: