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

Possible "Failed to evaluate the Velocity code from the query" error when using DBList properties with Velocity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 15.10.1
    • 15.10-rc-1
    • Old Core
    • Unit
    • Unknown
    • N/A
    • N/A

    Description

      There are actually two bugs:

      • ExplicitlyAllowedValuesDBListQueryBuilder#build produce a null "namespace" which is not the intent of the code at all, that one is an old bug (XWIKI-14700 or most probably even before)
      • the velocity engine does not accept null namespace anymore (because a null namespace name can cause problem) but it should fallback on an arbitrary namespace name (which is what it used to do but which has been broken) - fixed in XCOMMONS-2877

      Attachments

        Issue Links

          Activity

            People

              tmortagne Thomas Mortagne
              tmortagne Thomas Mortagne
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: