MMBase

Queries#addPath does not handle gracefully if an element can be both a role and a builder.

Details

  • Type: Task Task
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.8.5
  • Fix Version/s: 2.0.1
  • Component/s: Mmci
  • Description:
    Hide
    Somebody created a role 'articles' resulting in the less than obvious exception on a totally unrelated page:
    org.mmbase.bridge.BridgeException: Path cannot end with a role (articles/)
    at org.mmbase.bridge.util.Queries.addPath(Queries.java:767)
    at org.mmbase.bridge.jsp.taglib.containers.RelatedNodesContainerTag.doStartTag(RelatedNodesContainerTag.java:89)


    At least it should perhaps inform that it is not clear whether the role or the nodemanager was meant.

    Actually in the specific case the nodemanager _Must_ be meant because it was the last element in the path.

    Show
    Somebody created a role 'articles' resulting in the less than obvious exception on a totally unrelated page: org.mmbase.bridge.BridgeException: Path cannot end with a role (articles/) at org.mmbase.bridge.util.Queries.addPath(Queries.java:767) at org.mmbase.bridge.jsp.taglib.containers.RelatedNodesContainerTag.doStartTag(RelatedNodesContainerTag.java:89) At least it should perhaps inform that it is not clear whether the role or the nodemanager was meant. Actually in the specific case the nodemanager _Must_ be meant because it was the last element in the path.

Activity

Repository Revision Date User Message
MMBase SVN #26427 Fri Dec 28 14:32:48 CET 2007 michiel generics, MMB-1567
Files Changed
MODIFY /mmbase/trunk/src/org/mmbase/bridge/util/Queries.java
Michiel Meeuwissen made changes - 2007-12-28 19:04
Field Original Value New Value
Fix Version/s 1.9.0 [ 10119 ]
Michiel Meeuwissen made changes - 2008-07-16 00:17
Fix Version/s 1.9.1 [ 10170 ]
Fix Version/s 1.9.0 [ 10119 ]
Assignee MMBase Project Leader [ mmbaseleader ] Michiel Meeuwissen [ mihxil ]
Michiel Meeuwissen made changes - 2009-04-29 12:58
Fix Version/s 1.9.2 [ 10171 ]
Fix Version/s 1.9.1 [ 10170 ]
Michiel Meeuwissen made changes - 2009-07-31 16:11
Fix Version/s 1.9.4 [ 10191 ]
Fix Version/s 1.9.2 [ 10171 ]
Michiel Meeuwissen made changes - 2010-06-18 14:17
Fix Version/s 2.0.1 [ 10220 ]
Fix Version/s 1.9.4 [ 10191 ]

People

Dates

  • Created:
    2007-12-28 14:13
    Updated:
    2010-06-18 14:17