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:
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 ]
Repository Revision Date User Message
MMBase SVN #30960 Mon Sep 22 18:35:49 CEST 2008 michiel to test MMB-1208, we need of course htis
Files Changed
MODIFY /mmbase/trunk/tests/config/modules/mmbaseroot.xml
Michiel Meeuwissen made changes - 2008-09-22 19:14
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Repository Revision Date User Message
MMBase SVN #30965 Mon Sep 22 19:15:20 CEST 2008 michiel test case for MMB-1208
Files Changed
MODIFY /mmbase/trunk/tests/bridge/org/mmbase/bridge/FunctionsTest.java
Repository Revision Date User Message
MMBase SVN #30966 Mon Sep 22 19:18:29 CEST 2008 michiel MMB-1208
Files Changed
MODIFY /mmbase/trunk/src/org/mmbase/module/core/MMObjectBuilder.java

People

Dates

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