If not database defined on server side then error occured in webclient

Bug #795857 reported by Jacara
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Won't Fix
Low
OpenERP R&D Web Team

Bug Description

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
  File "/home/jacara/Pydev-workspace/weberp/lib/cherrypy/_cprequest.py", line 606, in respond
    cherrypy.response.body = self.handler()
  File "/home/jacara/Pydev-workspace/weberp/lib/cherrypy/_cpdispatch.py", line 25, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/jacara/Pydev-workspace/weberp/openobject/tools/_expose.py", line 188, in func_wrapper
    res = func(*args, **kw)
  File "/home/jacara/Pydev-workspace/weberp/addons/openerp/controllers/utils.py", line 184, in wrapper
    return fn(*args, **kw)
  File "/home/jacara/Pydev-workspace/weberp/addons/openerp/controllers/root.py", line 169, in login
    return tiny_login(target=location, db=db, user=user, password=password, action="login", message=message)
  File "/home/jacara/Pydev-workspace/weberp/openobject/tools/_expose.py", line 188, in func_wrapper
    res = func(*args, **kw)
  File "/home/jacara/Pydev-workspace/weberp/addons/openerp/controllers/utils.py", line 43, in login
    message = _("Could not connect to server")
UnboundLocalError: local variable '_' referenced before assignment

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Jacara,

I have checked your bug report But I am not able to get your point exactly and where did you faced the problem.

So would you please elaborate with more information on this or provide the proper steps.

Thanks and waiting for your reply!

Changed in openobject-client-web:
status: New → Incomplete
Revision history for this message
Jacara (baskhuujacara) wrote : Re: [Bug 795857] Re: If not database defined on server side then error occured in webclient

Hello Parik

When postgresql server has shut downed then this error will be faced.

On Thu, Jun 16, 2011 at 6:20 PM, Amit Parik (OpenERP) <email address hidden>wrote:

> Hello Jacara,
>
> I have checked your bug report But I am not able to get your point
> exactly and where did you faced the problem.
>
> So would you please elaborate with more information on this or provide
> the proper steps.
>
> Thanks and waiting for your reply!
>
>
> ** Changed in: openobject-client-web
> Status: New => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/795857
>
> Title:
> If not database defined on server side then error occured in webclient
>
> Status in OpenERP Web Client:
> Incomplete
>
> Bug description:
> 500 Internal Server Error
>
> The server encountered an unexpected condition which prevented it from
> fulfilling the request.
>
> Traceback (most recent call last):
> File "/home/jacara/Pydev-workspace/weberp/lib/cherrypy/_cprequest.py",
> line 606, in respond
> cherrypy.response.body = self.handler()
> File "/home/jacara/Pydev-workspace/weberp/lib/cherrypy/_cpdispatch.py",
> line 25, in __call__
> return self.callable(*self.args, **self.kwargs)
> File "/home/jacara/Pydev-workspace/weberp/openobject/tools/_expose.py",
> line 188, in func_wrapper
> res = func(*args, **kw)
> File
> "/home/jacara/Pydev-workspace/weberp/addons/openerp/controllers/utils.py",
> line 184, in wrapper
> return fn(*args, **kw)
> File
> "/home/jacara/Pydev-workspace/weberp/addons/openerp/controllers/root.py",
> line 169, in login
> return tiny_login(target=location, db=db, user=user,
> password=password, action="login", message=message)
> File "/home/jacara/Pydev-workspace/weberp/openobject/tools/_expose.py",
> line 188, in func_wrapper
> res = func(*args, **kw)
> File
> "/home/jacara/Pydev-workspace/weberp/addons/openerp/controllers/utils.py",
> line 43, in login
> message = _("Could not connect to server")
> UnboundLocalError: local variable '_' referenced before assignment
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-client-web/+bug/795857/+subscriptions
>

--
Baskhuu Jacara

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

The traceback occurs when the openerp-server is shutdown and we are trying to connect web-client.

It should be display the error message rather than the traceback.

Thanks.

Changed in openobject-client-web:
assignee: nobody → OpenERP R&D Web Team (openerp-dev-web)
importance: Undecided → Low
status: Incomplete → Confirmed
Revision history for this message
OpenERP Majordomo (openerp-majordomo) wrote : OpenERP Majordomo Message

**automated message**
Thanks a lot for reporting this bug and contributing to OpenERP. Unfortunately the OpenERP Web Client project is not going to be developed further after the 6.0 series. As of 6.1 a newer and better web frontend known as the OpenERP Web project[1] will be available.
Our R&D developers normally work in Launchpad to fix bugs for the next release, but there will be no next release for the current OpenERP Web Client. As our resources are limited, all further R&D efforts from the Web team are dedicated to finish the new 6.1 OpenERP Web project[1].
This bug will be closed as "Won't Fix" to show that R&D won't be able to work on it.

Bugs affecting customers in production of course continue to be handled via the OpenERP Enterprise (OPW) maintenance service, and this is the recommended way to have them corrected directly in the 6.0 LTS stable branch.
You can find more details about all of this in the FAQ of our Bug Management Policy documentation[2].

If you are interested, you should soon be able to beta-test the new OpenERP Web 6.1 (this will be announced on OpenERP Community channels).

Thank you for your contributions and for your understanding!

[1] https://launchpad.net/openerp-web
[2] http://bit.ly/openerp-bugs-faq (FAQ #4)

Changed in openobject-client-web:
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.