← Back to team overview

openerp-india team mailing list archive

[Bug 898176] Re: Recursion is not checked while loading inherited views

 

In version 7.0 this bug hangs the view editor.
More precisely, when creating a view that inherits itself, OpenERP server enters into an infinite recursion and the web ui hangs.

Please note that with the new view editor in version 7.0 this mistake happens very easily, the use case is the following:
- when extending a view, first you start with a copy of a standard view
- the default name of the copied view is the same of the original view
- selecting the view to inherit, searching by name, the first view showing up is actually the copy and not the original!

-- 
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:
  Confirmed

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


References