unknown locale crash the system

Bug #692807 reported by Cristian Salamea
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Web Client
Fix Released
Low
OpenERP R&D Web Team

Bug Description

i am at revno 4146 get this error loading localhost:8080 http://paste.pocoo.org/show/307647/ my locale configuration in my computer is es_EC

Regards,

Revision history for this message
Somesh Khare (somesh.khare) wrote :

Hello Cristian Salamea,

I have checked this issue at my end. I have changed the locale settings of my desktop as es_EC but I was unable to meet the error. Will you please elaborate the issue so that I will generate the issue at my end.

Please provide the steps which you followed.

Thanks

Changed in openobject-client-web:
status: New → Incomplete
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

How did you configure your computer? How did you obtain an es_419 locale (apparently meaning "South-american spanish", instead of "Ecuadoran spanish" which I understand would indeed be es_EC and seems correctly handled by Babel)

Changed in openobject-client-web:
status: Incomplete → Invalid
Revision history for this message
Cristian Salamea (ovnicraft) wrote :

As i comment here i update my repo, just run python openerp-web.py try to access in my chrome and get the error.

I debug utils.py file at line 81 starting the try get the value vars and http://paste.pocoo.org/show/308410/
You can see in the header is set the value:
'Accept-Language': 'es-419,es;q=0.8,en;q=0.6'
When accept_languages = get_accept_languages(header) but babel is not accepting that value

Regards,

Revision history for this message
OpenERP buildbot (openerp-buildbot) wrote : Re: [Bug 692807] Re: unknown locale crash the system

On Wednesday 22 December 2010, you wrote:
> As i comment here i update my repo, just run python openerp-web.py try
> to access in my chrome and get the error.
>
> I debug utils.py file at line 81 starting the try get the value vars and
> http://paste.pocoo.org/show/308410/ You can see in the header is set the
> value:
> 'Accept-Language': 'es-419,es;q=0.8,en;q=0.6'
> When accept_languages = get_accept_languages(header) but babel is not
> accepting that value

I think this makes it perfectly clear now:
Since languages may come from the Net, through the Accept-Language header, we
have to make sure none of them can bork the server.
Not even Nigerian-Spanish :P

--
Say NO to spam and viruses. Stop using Microsoft Windows!

Revision history for this message
Cristian Salamea (ovnicraft) wrote :

Now i can confirm the bug.

Regards,

Changed in openobject-client-web:
status: Invalid → Confirmed
assignee: nobody → OpenERP SA's Web Client R&D (openerp-dev-web)
Navrang Oza (noz-tiny)
Changed in openobject-client-web:
importance: Undecided → Low
Revision history for this message
Navrang Oza (noz-tiny) wrote :

Hello Cristian,

I can use my Web Client in es_EC very smoothly.

I simply load the translation and changed from preferences.
I didnt get any error.

Can you explain more what are you doing so that you are getting error ?

Thanks.

Changed in openobject-client-web:
status: Confirmed → Incomplete
milestone: none → 6.0-rc2
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

noz, please note his following comments: his system locale is es_EC but his Accept-Language header starts with es_419, which is a locale intended for "latin america spanish" (http://unicode.org/cldr/utility/languageid.jsp?a=es_419&l=en) but which Babel does not know.

Changed in openobject-client-web:
status: Incomplete → Confirmed
Revision history for this message
Xavier (Open ERP) (xmo-deactivatedaccount) wrote :

Should be fixed (in that the client should not crash anymore on babel-unknown Accept-Language locales) in the latest trunk, Christian could you check?

Changed in openobject-client-web:
status: Confirmed → Fix Released
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.