MMBase

If you define otype as a not-null NODE field (in object.xml) then you cannot import NODE fields any more.

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.7.0
  • Fix Version/s: 1.7.1
  • Component/s: Misc
  • Description:
    Hide
    original bugid: #6485
    It can be nice to define otype in object.xml, e.g. like this:

        <field>
          <descriptions>
            <description xml:lang="en">
              The type of an object.
            </description>
          </descriptions>
          <gui>
            <guiname xml:lang="en">Object type</guiname>
            <guiname xml:lang="nl">Object-type</guiname>
            <guiname xml:lang="eo">Objecttipo</guiname>
            <guitype>typedef</guitype>
          </gui>
          <editor>
            <positions>
              <input>-1</input>
              <list>-1</list>
              <search>102</search>
            </positions>
          </editor>
          <db>
            <name>otype</name>
            <type state="persistent" notnull="true" key="false">NODE</type>
          </db>
        </field>


    But then on deploy of e.g. cloud context security:

    17:24:09,270 ERR 12063 kb mmbase.module.tools.MMAdmin error.2378 - Insert of node prefix='',otype=9:'-1',owner=1:'admin',name=1:'mmbaseusers',number=9:'-1' failed. Field 'otype' with type NODE is not allowed
     to have a null value. The referenced node is not found. Try to reorder the nodes so the referenced node is imported before this one.


    Show
    original bugid: #6485 It can be nice to define otype in object.xml, e.g. like this:     <field>       <descriptions>         <description xml:lang="en">           The type of an object.         </description>       </descriptions>       <gui>         <guiname xml:lang="en">Object type</guiname>         <guiname xml:lang="nl">Object-type</guiname>         <guiname xml:lang="eo">Objecttipo</guiname>         <guitype>typedef</guitype>       </gui>       <editor>         <positions>           <input>-1</input>           <list>-1</list>           <search>102</search>         </positions>       </editor>       <db>         <name>otype</name>         <type state="persistent" notnull="true" key="false">NODE</type>       </db>     </field> But then on deploy of e.g. cloud context security: 17:24:09,270 ERR 12063 kb mmbase.module.tools.MMAdmin error.2378 - Insert of node prefix='',otype=9:'-1',owner=1:'admin',name=1:'mmbaseusers',number=9:'-1' failed. Field 'otype' with type NODE is not allowed  to have a null value. The referenced node is not found. Try to reorder the nodes so the referenced node is imported before this one.

Activity

People

Dates

  • Created:
    2004-06-01 17:35
    Updated:
    2006-11-24 13:41
    Resolved:
    2006-11-24 13:41