MMBase

cloud.getNodeManager("people").getAllowedRelations(cloud.getNodeManager("typedef"),null,null) return much too many results.

Details

  • Type: Bug Bug
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.8.4
  • Fix Version/s: 1.9.7
  • Component/s: Core
  • Description:
    Hide
    <%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0" prefix="mm"%>
    <mm:cloud jspvar="cloud">
      <jsp:expression>cloud.getNodeManager("people").getAllowedRelations(cloud.getNodeManager("typedef"),null,null)</jsp:expression>
    </mm:cloud>

    @ vpro returns:

    [NodeManager insrel( 2185178), NodeManager insrel( 70409), NodeManager funrel( 3321599), NodeManager insrel( 21), NodeManager insrel( 3608183), NodeManager insrel( 976274), NodeManager insrel( -1), NodeManager authrel( 23980590), NodeManager funrel( 3137675), NodeManager insrel( 3608180), NodeManager insrel( 1960048), NodeManager funrel( 2168238), NodeManager insrel( 1910945), NodeManager insrel( 5665513), NodeManager insrel( -1), NodeManager insrel( 989840), NodeManager authrel( 2271035), NodeManager insrel( 2189311), NodeManager insrel( 3608182), NodeManager funrel( 1593), NodeManager insrel( 3608194), NodeManager insrel( 1864945), NodeManager movierel( 3634287), NodeManager posrel( 124207), NodeManager insrel( 976295), NodeManager insrel( 32163388), NodeManager insrel( 70392), NodeManager insrel( 10293379), NodeManager funrel( 1340), NodeManager insrel( 922), NodeManager insrel( 2332922), NodeManager funrel( 9440), NodeManager insrel( 1909052), NodeManager insrel( 4796576), NodeManager insrel( 4217395), NodeManager posrel( 9329574), NodeManager insrel( 65711), NodeManager insrel( 3608181), NodeManager insrel( 4785970), NodeManager posrel( 3797025), NodeManager insrel( 10851771), NodeManager insrel( 976268), NodeManager insrel( 996288), NodeManager posrel( 1864951), NodeManager insrel( 71357)]

    It should have returned only one relationmanager.

    The theory is, that it goed wrong if the rnodemanager is typedef
    Show
    <%@ taglib uri="http://www.mmbase.org/mmbase-taglib-1.0" prefix="mm"%> <mm:cloud jspvar="cloud">   <jsp:expression>cloud.getNodeManager("people").getAllowedRelations(cloud.getNodeManager("typedef"),null,null)</jsp:expression> </mm:cloud> @ vpro returns: [NodeManager insrel( 2185178), NodeManager insrel( 70409), NodeManager funrel( 3321599), NodeManager insrel( 21), NodeManager insrel( 3608183), NodeManager insrel( 976274), NodeManager insrel( -1), NodeManager authrel( 23980590), NodeManager funrel( 3137675), NodeManager insrel( 3608180), NodeManager insrel( 1960048), NodeManager funrel( 2168238), NodeManager insrel( 1910945), NodeManager insrel( 5665513), NodeManager insrel( -1), NodeManager insrel( 989840), NodeManager authrel( 2271035), NodeManager insrel( 2189311), NodeManager insrel( 3608182), NodeManager funrel( 1593), NodeManager insrel( 3608194), NodeManager insrel( 1864945), NodeManager movierel( 3634287), NodeManager posrel( 124207), NodeManager insrel( 976295), NodeManager insrel( 32163388), NodeManager insrel( 70392), NodeManager insrel( 10293379), NodeManager funrel( 1340), NodeManager insrel( 922), NodeManager insrel( 2332922), NodeManager funrel( 9440), NodeManager insrel( 1909052), NodeManager insrel( 4796576), NodeManager insrel( 4217395), NodeManager posrel( 9329574), NodeManager insrel( 65711), NodeManager insrel( 3608181), NodeManager insrel( 4785970), NodeManager posrel( 3797025), NodeManager insrel( 10851771), NodeManager insrel( 976268), NodeManager insrel( 996288), NodeManager posrel( 1864951), NodeManager insrel( 71357)] It should have returned only one relationmanager. The theory is, that it goed wrong if the rnodemanager is typedef

Activity

Hide
Michiel Meeuwissen added a comment - 2007-11-27 18:16
I think it has something to do with the fact that 'typedef' has node number 0 @vpro.
Show
Michiel Meeuwissen added a comment - 2007-11-27 18:16 I think it has something to do with the fact that 'typedef' has node number 0 @vpro.
Hide
Michiel Meeuwissen added a comment - 2007-11-27 19:01
I didn't yet fix it, but I did confiurm that typedef being 0 is the cause of all troubles, because the issue reproduces if I make it so it my own local mmbase. It must be fixed in the VirtualNodes and TreeSet and so in TypeRel.java which is a bit confusing stuff. And I run out of time now...

 
Show
Michiel Meeuwissen added a comment - 2007-11-27 19:01 I didn't yet fix it, but I did confiurm that typedef being 0 is the cause of all troubles, because the issue reproduces if I make it so it my own local mmbase. It must be fixed in the VirtualNodes and TreeSet and so in TypeRel.java which is a bit confusing stuff. And I run out of time now...  
Hide
Michiel Meeuwissen added a comment - 2010-06-18 14:22
only occurs when typedef=0.
Show
Michiel Meeuwissen added a comment - 2010-06-18 14:22 only occurs when typedef=0.

People

Dates

  • Created:
    2007-11-27 13:49
    Updated:
    2011-02-01 11:51