Menu

#18 existing prototypes cant extend nodegrp

open
Interface (27)
5
2002-03-04
2002-03-04
Jay Bonci
No

Okay, here's a weird bug. To reproduce this, do this:

Create a nodetype.

Edit that nodetype so that it extends another type,
such as document (but not nodegroup).

Then create a node of that type.

Go back to your test nodetype, and make it extend
nodegroup, and put the original field in the sqltable
field (for soft multiple inheritance).

If you try to put something from the node bucket into
it, you'll get the following:

Error: [Mon Mar 4 05:34:33 2002] (eval 3578): Can't
use an undefined value as an ARRAY reference
at /usr/local/lib/perl5/site_perl/5.6.1/Everything/Node
/nodegroup.pm line 509.

Presumably, the node cache is being poisoned from the
(normally) safe conversion of type to include
nodegroup information. A conversion of this type
should be lossless (as nodegroup really doesn't have
any additional dbtables, and the inheritance should
work out fine.

However, you'll notice that this is far from the
case. You'll also get an error if you try to include
[{groupeditor}] in it's edit page.

To work around this issue (and why it makes me think
that it's a node cache issue), restart the server.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.