← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 522135] Re: proxypass from another host - type 'exceptions.TypeError'

 

Short of being able to properly reproduce this, I have to close this bug report (it should have expired automatically a long time ago).
By the way, unless we can trace an error cause to the web client doing something incorrect, issues with proxy configurations etc. can hardly be seen as bugs. Some could at best be seen as wishlist, e.g. when the web client could provide some additional help for such deployments (this last note concerns the importance, which was set to High - certainly unnecessary)

Thanks for your contributions and understanding!

** Changed in: openobject-client-web
   Importance: High => Undecided

** Changed in: openobject-client-web
       Status: Incomplete => Won't Fix

** Changed in: openobject-client-web
     Assignee: Xavier (Open ERP) (xmo) => (unassigned)

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/522135

Title:
  proxypass from another host - type 'exceptions.TypeError'

Status in OpenERP Web Client:
  Won't Fix

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://openerp-srv1.toto.com:8080/*>
    Order deny,allow
    Allow from all
  </Proxy>

  RewriteEngine On

  RewriteCond %{HTTP_HOST} ^demo.titi.com$
  RewriteCond %{HTTPS} off
  RewriteRule ^/(.*)$ https://demo.titi.com/ [L]

  RewriteCond %{HTTP_HOST} ^demo.titi.com$
  RewriteRule ^/(.*)$ http://openerp-srv1.toto.com:8080/$1 [P,L]

  
  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/openerp-web/access.log"
  log.error_file = "/var/log/openerp-web/error.log"

  [openerp]
  host = 'localhost'
  port = '8070'
  protocol = 'socket'

  [openerp-web]
  dblist.filter = 'EXACT'
  dbbutton.visible = True
  company.url = ''
  child.listgrid.limit = 5
  child.listgrid.min_rows = 5

  
  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.TypeError'>	Python 2.5.2: /usr/bin/python
  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/instances/openerp_easy/src/web-client/lib/CherryPy-3.1.2-py2.5.egg/cherrypy/_cprequest.py in respond(self=<cherrypy._cprequest.Request object at 0x240fc10>, path_info='/')
   /srv/openerp/instances/openerp_easy/src/web-client/lib/CherryPy-3.1.2-py2.5.egg/cherrypy/_cpdispatch.py in __call__(self=<cherrypy._cpdispatch.LateParamPageHandler object at 0x240f850>)
   /srv/openerp/instances/openerp_easy/src/web-client/openerp/controllers/base.py in wrapper(*args=(), **kw={'context': '{%27lang%27:%20u%27fr_FR%27,%20%27tz%27:%20False...27active_ids%27:%20[33],%20%27active_id%27:%2033}', 'count': '1', 'domain': '[]', 'id': '1', 'ids': '[1]', 'limit': '80', 'model': 'res.users', 'offset': '0', 'search_domain': '', 'view_ids': '[5,%204]', ...})
    128             # User is logged in; allow access
    129             clear_login_fields(kw)
    130             return fn(*args, **kw)
    131         else:
    132             # User isn't logged in yet.
  fn = <bound method Root.index of <openerp.controllers.root.Root object at 0x2294e50>>, args = (), kw = {'context': '{%27lang%27:%20u%27fr_FR%27,%20%27tz%27:%20False...27active_ids%27:%20[33],%20%27active_id%27:%2033}', 'count': '1', 'domain': '[]', 'id': '1', 'ids': '[1]', 'limit': '80', 'model': 'res.users', 'offset': '0', 'search_domain': '', 'view_ids': '[5,%204]', ...}
   /srv/openerp/instances/openerp_easy/src/web-client/openerp/tools/expose.py in func_wrapper(*args=(<openerp.controllers.root.Root object at 0x2294e50>,), **kw={'context': '{%27lang%27:%20u%27fr_FR%27,%20%27tz%27:%20False...27active_ids%27:%20[33],%20%27active_id%27:%2033}', 'count': '1', 'domain': '[]', 'id': '1', 'ids': '[1]', 'limit': '80', 'model': 'res.users', 'offset': '0', 'search_domain': '', 'view_ids': '[5,%204]', ...})
    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.request.params):
  global res = '/srv/openerp/instances/openerp_easy/src/web-client/openerp/widgets/templates/viewform.mako', func = <function index at 0x229b848>, args = (<openerp.controllers.root.Root object at 0x2294e50>,), kw = {'context': '{%27lang%27:%20u%27fr_FR%27,%20%27tz%27:%20False...27active_ids%27:%20[33],%20%27active_id%27:%2033}', 'count': '1', 'domain': '[]', 'id': '1', 'ids': '[1]', 'limit': '80', 'model': 'res.users', 'offset': '0', 'search_domain': '', 'view_ids': '[5,%204]', ...}

  <type 'exceptions.TypeError'>: index() got an unexpected keyword argument 'count'
        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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client-web/+bug/522135/+subscriptions