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

Andre van der Elst made changes - 2006-11-24 13:58
Field Original Value New Value
Assignee Default Project Leader [ mmbaseleader ] Michiel Meeuwissen [ mihxil ]
Michiel Meeuwissen made changes - 2007-02-01 19:15
Fix Version/s 1.9.0 [ 10119 ]
Michiel Meeuwissen made changes - 2008-09-22 19:14
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]

People

Dates

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