lp:~initos.com/openobject-server/7.0

Created by Thomas Rehn and last modified
Get this branch:
bzr branch lp:~initos.com/openobject-server/7.0
Members of >initOS GmbH & Co. KG can upload to this branch. Log in for directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
>initOS GmbH & Co. KG
Project:
Odoo Server (MOVED TO GITHUB)
Status:
Development

Recent revisions

5145. By Thomas Rehn

add support for X-Forwarded-Proto header

5143. By Katja Matthes

Merge latest version by openerp

5142. By Thomas Rehn

fixes bug 1281769

5140. By Thomas Rehn

apply patch for Python bug http://bugs.python.org/issue17526

5138. By Launchpad Translations on behalf of openerp

Launchpad automatic translations update.

5137. By Christophe Simonis (OpenERP)

[MERGE] remove warnings

5136. By Olivier Dony (Odoo)

[FIX] orm.browse_record: access error due to prefetch of indirectly referenced records (OPW #596679)

The browse_record prefetching algorithm attempts to
load data for all known records from the requested
model (i.e. all IDs present in the browse cache),
regardless of how indirectly/remotely they were
referenced. An indirect parent record may therefore
be prefetched along with its directly browsed children,
possibly crossing company boundaries involuntarily.

This patch implements a fallback mechanism when
the prefetching failed due to what looks like an
ACL restriction. This being a fuzzy concept at the
moment, it does its best to only catch a restricted
set of exceptions, and retry loading the data for
the directly requested ID only.

This may cause a small performance penalty in case
of real errors (with some spurious logging too),
but should only be triggered in very few cases.

The downside when this happens is that the prefetching for that
model gets effectively disabled, requiring multiple
SQL queries for further access to the data of
the other directly browsed records.

This EAFP approach seems safer and faster than
a LBYL technique where we would have to filter
all indirect m2o references according to ACLs
before allowing them to enter the cache.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:openobject-server
This branch contains Public information 
Everyone can see this information.