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

People

Dates

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