MMBase

Using non-existing 'function' on cluster node gives enigmatic error:

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.8.0
  • Fix Version/s: 1.9.0
  • Component/s: Core
  • Description:
    Hide
    original bugid: #6784
    <mm:node number="20845445">
        <mm:related path="magazines" fields="magazines.title">
          <mm:field name="nonexistingfunction(magazines.title)" />
        </mm:related>
      </mm:node>

    results in exeption:
    java.lang.IllegalArgumentException: You cannot use non-existing field of 'title)' of node '14056174' existing fields of 'magazines are [_exists, title, owner, _number, intro, body, subtitle, otype, number

    It perhaps should have reported that the function does not exist, or perhaps simply return the value of magazines.title.

    The problem is that it forgets to remove the trailing brace if the function is unknown.
    Show
    original bugid: #6784 <mm:node number="20845445">     <mm:related path="magazines" fields="magazines.title">       <mm:field name="nonexistingfunction(magazines.title)" />     </mm:related>   </mm:node> results in exeption: java.lang.IllegalArgumentException: You cannot use non-existing field of 'title)' of node '14056174' existing fields of 'magazines are [_exists, title, owner, _number, intro, body, subtitle, otype, number It perhaps should have reported that the function does not exist, or perhaps simply return the value of magazines.title. The problem is that it forgets to remove the trailing brace if the function is unknown.

Activity

Hide
Michiel Meeuwissen added a comment - 2006-03-07 19:43
Using non-existing 'function' on cluster node gives enigmatic error:

Show
Michiel Meeuwissen added a comment - 2006-03-07 19:43 Using non-existing 'function' on cluster node gives enigmatic error:

People

Dates

  • Created:
    2006-03-07 19:45
    Updated:
    2008-09-22 19:14
    Resolved:
    2008-09-22 19:14