openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #02092
[Bug 898176] [NEW] Recursion is not checked while loading inherited views
Public bug reported:
In the current trunk as well as in v6.0, the hierechical structure of views and inherited views is not checked for loops when creating a new inherited view.
This could lead to infinite loops that are a bit hard to debug without a hint from the server.
Example: the server should refuse to load a view such as the following one - please notice that id = inherit_id:
<record id="product.product_product_tree_view" model="ir.ui.view">
<field name="name">product_label.product.tree</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_product_tree_view"/>
<field name="arch" type="xml">
<xpath ..... />
</field>
</record>
Lionel Sausin.
** Affects: openobject-server
Importance: Undecided
Status: New
** Description changed:
- In the current trunk as well as in v6.0, the hierechical structure of views and inherited views should be checked for loops when creating a new inherited view.
+ In the current trunk as well as in v6.0, the hierechical structure of views and inherited views is not checked for loops when creating a new inherited view.
This could lead to infinite loops that are a bit hard to debug without a hint fro the server.
Example: the server should refuse to load a view such as the following one - please notice that id = inherit_id:
- <record id="product.product_product_tree_view" model="ir.ui.view">
- <field name="name">product_label.product.tree</field>
- <field name="model">product.product</field>
- <field name="inherit_id" ref="product.product_product_tree_view"/>
- <field name="arch" type="xml">
- <xpath ..... />
- </field>
- </record>
+ <record id="product.product_product_tree_view" model="ir.ui.view">
+ <field name="name">product_label.product.tree</field>
+ <field name="model">product.product</field>
+ <field name="inherit_id" ref="product.product_product_tree_view"/>
+ <field name="arch" type="xml">
+ <xpath ..... />
+ </field>
+ </record>
Lionel Sausin.
** Description changed:
In the current trunk as well as in v6.0, the hierechical structure of views and inherited views is not checked for loops when creating a new inherited view.
- This could lead to infinite loops that are a bit hard to debug without a hint fro the server.
+ This could lead to infinite loops that are a bit hard to debug without a hint from the server.
Example: the server should refuse to load a view such as the following one - please notice that id = inherit_id:
<record id="product.product_product_tree_view" model="ir.ui.view">
<field name="name">product_label.product.tree</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_product_tree_view"/>
<field name="arch" type="xml">
<xpath ..... />
</field>
</record>
Lionel Sausin.
--
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Server.
https://bugs.launchpad.net/bugs/898176
Title:
Recursion is not checked while loading inherited views
Status in OpenERP Server:
New
Bug description:
In the current trunk as well as in v6.0, the hierechical structure of views and inherited views is not checked for loops when creating a new inherited view.
This could lead to infinite loops that are a bit hard to debug without a hint from the server.
Example: the server should refuse to load a view such as the following one - please notice that id = inherit_id:
<record id="product.product_product_tree_view" model="ir.ui.view">
<field name="name">product_label.product.tree</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_product_tree_view"/>
<field name="arch" type="xml">
<xpath ..... />
</field>
</record>
Lionel Sausin.
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-server/+bug/898176/+subscriptions
Follow ups
References