proxypass from another host - type 'exceptions.TypeError'
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Web Client |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Hello,
We're trying to use the openerp webclient in this schema :
[Proxy server - Apache]
|
[Openerp server - with openerp webclient]
Apache configuration on proxy :
<Proxy http://
Order deny,allow
Allow from all
</Proxy>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^demo.titi.com$
RewriteCond %{HTTPS} off
RewriteRule ^/(.*)$ https:/
RewriteCond %{HTTP_HOST} ^demo.titi.com$
RewriteRule ^/(.*)$ http://
Configuration for webclient on openerp-srv1 :
[global]
server.socket_host = "0.0.0.0"
server.socket_port = 8080
server.thread_pool = 10
server.environment = "development"
server.profile_on = False
server.profile_dir = "profile"
tools.proxy.on = True
#tools.proxy.base = '''
log.access_file = "/var/log/
log.error_file = "/var/log/
[openerp]
host = 'localhost'
port = '8070'
protocol = 'socket'
[openerp-web]
dblist.filter = 'EXACT'
dbbutton.visible = True
company.url = ''
child.listgrid.
child.listgrid.
What happens :
- We can log in, logout
- We can browse datas
- We CANNOT save anything. For example, when we modify a user's password, we have this error :
<type 'exceptions.
Mon Feb 15 14:49:51 2010
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/srv/openerp/
/srv/openerp/
/srv/openerp/
128 # User is logged in; allow access
129 clear_login_
130 return fn(*args, **kw)
131 else:
132 # User isn't logged in yet.
fn = <bound method Root.index of <openerp.
/srv/openerp/
202 def func_wrapper(*args, **kw):
203
204 res = func(*args, **kw)
205
206 if format == 'json' or (allow_json and 'allow_json' in cherrypy.
global res = '/srv/openerp/
<type 'exceptions.
args = ("index() got an unexpected keyword argument 'count'",)
message = "index() got an unexpected keyword argument 'count'"
What we tried :
- Disable tools.proxy.on : we cannot log out nor save stuff, we're redirected to the wrong server.
- Put an apache on openerp-srv1 with a simple proxypass, and setting up proxypass on demo.titi.com so that it uses apache on srv1. No chance - still crashing (same error).
We have seen that it seems to be the tools.proxy.on which causes this problem - deactivating it makes all work, except we're redirected to the wrong server while doing some stuff like logout, saving and so on....
NOTA: we cannot use tools.proxy.base, as we'll have many sub-domains (demo, client1, client2 and so on).
Any idea on how to correct it ?
Thanks in advance.
Best regards,
C.
Changed in openobject-client-web: | |
status: | New → Confirmed |
importance: | Undecided → High |
milestone: | none → 5.0.7 |
Changed in openobject-client-web: | |
milestone: | 5.0.7 → 5.0.8 |
Changed in openobject-client-web: | |
assignee: | nobody → ame (Tiny) (ame-tiny) |
Changed in openobject-client-web: | |
milestone: | 5.0.8 → 5.0.9 |
Changed in openobject-client-web: | |
milestone: | 5.0.9 → 5.0.10 |
Changed in openobject-client-web: | |
assignee: | Amit Mendapara (amit-mendapara) → noz (Open ERP) (noz-tiny) |
Changed in openobject-client-web: | |
milestone: | 5.0.10 → 5.0.11 |
Changed in openobject-client-web: | |
milestone: | 5.0.11 → 5.0.12 |
tags: | added: maintenance |
Changed in openobject-client-web: | |
assignee: | noz (Open ERP) (noz-tiny) → Xavier (Open ERP) (xmo) |
Oh, by the way - client version : /srv/bzr/ easy_openerp/ prod/webclient/
checkout of branch: sftp://<email address hidden>
revno: 2801
tags: 5.0.7rc2
branch nick: 5.0
timestamp: Wed 2010-01-20 16:18:36 +0530
Regards,
C.