← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 779973] Re: Web client crashes for some values in any char field

 

It has been fixed in stable6.0 by revision no. 4624
noz@xxxxxxxxxxx-20110531104141-0qm8ifze0hhfs7nv.

** Changed in: openobject-client-web
       Status: Confirmed => Fix Released

-- 
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/779973

Title:
  Web client crashes for some values in any char field

Status in OpenERP Web Client:
  Fix Released

Bug description:
  revno 4595

  Try to enter value "(a 2)" (or "(test 3)" or in my case: "(Sans
  adresse 2)")  for example in any char field: the webclient will try to
  evaluate it and crash:

  
  End of the (long) stacktrace:
   /home/odoo/openerp/web/openobject/tools/ast.py in parse(expr='(a 2)', filename='<unknown>', mode='eval')
     11         Equivalent to compile(expr, filename, mode, PyCF_ONLY_AST).
     12         """
     13         return compile(expr, filename, mode, PyCF_ONLY_AST)
     14 
     15     def literal_eval(node_or_string):
  builtin compile = <built-in function compile>, expr = '(a 2)', filename = '<unknown>', mode = 'eval', global PyCF_ONLY_AST = 1024
  <type 'exceptions.SyntaxError'>: invalid syntax (<unknown>, line 1) 
        args = ('invalid syntax', ('<unknown>', 1, 4, '(a 2)')) 
        filename = '<unknown>' 
        lineno = 1 
        message = '' 
        msg = 'invalid syntax' 
        offset = 4 
        print_file_and_line = None 
        text = '(a 2)'

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


References