dbfilter doesn't work in proxy configurations
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP's Framework R&D |
Bug Description
First reported in https:/
When OpenERP (at least 6.1+) is deployed behind a proxy, the dbfilter option won't work.
This is due to openerp/
def db_list(req):
dbs = []
proxy = req.session.
dbs = proxy.list()
h = req.httprequest
d = h.split('.')[0]
r = req.config.
dbs = [i for i in dbs if re.match(r, i)]
return dbs
However, in proxy configs, it should user HTTP_X_
This can easily be done by checking whether that var is in the environ:
def db_list(req):
dbs = []
proxy = req.session.
dbs = proxy.list()
if 'HTTP_X_
h = 'HTTP_X_
else:
h = 'HTTP_HOST'
h = req.httprequest
d = h.split('.')[0]
r = req.config.
dbs = [i for i in dbs if re.match(r, i)]
return dbs
Changed in openobject-server: | |
status: | New → Confirmed |
description: | updated |
description: | updated |
tags: | added: proxy |
description: | updated |
Changed in openobject-server: | |
assignee: | nobody → OpenERP's Framework R&D (openerp-dev-framework) |
importance: | Undecided → Medium |
Hi,
is this a major issue out there? We are moving to use db-filter so I'm wondering if this is a problem with a recent openerp 7.0 nightly build?