MMBase

An enumeration of a node field can result in a very large and unusable pulldown

Details

  • Type: Bug Bug
  • Status: Reopened Reopened
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: 1.9.2
  • Fix Version/s: 1.9.7
  • Component/s: DataTypes
  • Description:
    Hide
    Like it is being used in streamsourcescaches.id field in the Streams application:

        <datatype base="nodenumber" xmlns="http://www.mmbase.org/xmlns/datatypes">
          <required value="true" enforce="never" />
            <enumeration enforce="never"> <!-- enforcing is very bad for performance -->
            <query type="mediasources" xmlns="http://www.mmbase.org/xmlns/searchquery" />
          </enumeration>
        </datatype>
    Show
    Like it is being used in streamsourcescaches.id field in the Streams application:     <datatype base="nodenumber" xmlns="http://www.mmbase.org/xmlns/datatypes">       <required value="true" enforce="never" />         <enumeration enforce="never"> <!-- enforcing is very bad for performance -->         <query type="mediasources" xmlns="http://www.mmbase.org/xmlns/searchquery" />       </enumeration>     </datatype>

Activity

Hide
Michiel Meeuwissen added a comment - 2011-02-16 16:09
Issue can be worked arround by installing mmbase-searchrelate. This will install a better handler for node-types. Namely a mm-sr:relatednodes instance.
Show
Michiel Meeuwissen added a comment - 2011-02-16 16:09 Issue can be worked arround by installing mmbase-searchrelate. This will install a better handler for node-types. Namely a mm-sr:relatednodes instance.
Hide
Michiel Meeuwissen added a comment - 2011-02-16 17:17
add

<context-param>
    <param-name>mmbase.taglib.max_enumhandler_length</param-name>
    <param-value>20</param-value>
  </context-param>

to web.xml

to apply a maximum length
Show
Michiel Meeuwissen added a comment - 2011-02-16 17:17 add <context-param>     <param-name>mmbase.taglib.max_enumhandler_length</param-name>     <param-value>20</param-value>   </context-param> to web.xml to apply a maximum length
Hide
André van Toly added a comment - 2011-04-21 10:48
That does not solve it f.e. for parent in properties builder (core/src/main/config/builders/properties.xml). Which could list all nodes in mmbase.

    <field name="parent">
      <descriptions>
        <description xml:lang="en">Node to which the property was added</description>
        <description xml:lang="nl">Node waaraan de eigenschap of voorkeur is toegekend</description>
      </descriptions>
      <gui>
        <guiname xml:lang="en">Parent</guiname>
        <guiname xml:lang="nl">Ouder</guiname>
      </gui>
      <editor><positions><list>1</list></positions></editor>
      <datatype base="node" xmlns="http://www.mmbase.org/xmlns/datatypes">
        <required value="true" />
      </datatype>
    </field>
Show
André van Toly added a comment - 2011-04-21 10:48 That does not solve it f.e. for parent in properties builder (core/src/main/config/builders/properties.xml). Which could list all nodes in mmbase.     <field name="parent">       <descriptions>         <description xml:lang="en">Node to which the property was added</description>         <description xml:lang="nl">Node waaraan de eigenschap of voorkeur is toegekend</description>       </descriptions>       <gui>         <guiname xml:lang="en">Parent</guiname>         <guiname xml:lang="nl">Ouder</guiname>       </gui>       <editor><positions><list>1</list></positions></editor>       <datatype base="node" xmlns="http://www.mmbase.org/xmlns/datatypes">         <required value="true" />       </datatype>     </field>
Hide
André van Toly added a comment - 2012-06-11 22:54
my_editors has an added feature to edit owner, but maybe still this needs to be fixed some other way.
Show
André van Toly added a comment - 2012-06-11 22:54 my_editors has an added feature to edit owner, but maybe still this needs to be fixed some other way.

People

Dates

  • Created:
    2010-02-02 10:50
    Updated:
    2012-06-11 22:54