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

Some valid HQL query can fail when executed through the query manager component

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • 2.7 RC1
    • Storage
    • None
    • Unknown

    Description

      This query succeed:

      $xwiki.searchDocuments(", BaseObject as groupObj, BaseObject as accountObj, StringProperty as memberProp where doc.fullName=groupObj.name and groupObj.className='XWiki.XWikiGroups' and doc.fullName=accountObj.name and accountObj.className='XNCode.AccountClass' and groupObj.id=memberProp.id.id and memberProp.id.name='member' and memberProp.value='XWiki.jvdrean'")
      

      This one:

      $xwiki.queryManager.createQuery(", BaseObject as groupObj, BaseObject as accountObj, StringProperty as memberProp where doc.fullName=groupObj.name and groupObj.className='XWiki.XWikiGroups' and doc.fullName=accountObj.name and accountObj.className='XNCode.AccountClass' and groupObj.id=memberProp.id.id and memberProp.id.name='member' and memberProp.value='XWiki.jvdrean'", "hql").execute()
      

      Throw the following exception:

      Wrapped Exception: node to traverse cannot be null!
              at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:1069)
              at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:1099)
              at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:88)
              ... 144 more
      

      Attachments

        Activity

          People

            jvdrean Jean-Vincent Drean
            jvdrean Jean-Vincent Drean
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: