← Back to team overview

c2c-oerpscenario team mailing list archive

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

 

** Changed in: openobject-client-web
     Assignee: OpenERP SA's Web Client R&D (openerp-dev-web) => OpenERP Publisher's Warranty Team (openerp-opw)

** Changed in: openobject-client-web
   Importance: Low => Medium

** Tags added: maintenance

-- 
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:
  Confirmed

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)'


References