lava-dashboard fails with value too long deserialization error

Bug #849914 reported by Deepti B. Kalakeri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Dashboard (deprecated)
Fix Released
Medium
Zygmunt Krynicki

Bug Description

lava-dashboard fails with value too long deserialization error when the software package version seems to be longer than 64 characters. Here is the error message

Cause

value too long for type character varying(64)
Deserialization failure traceback

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dashboard_app/models.py", line 399, in deserialize
    self._do_deserialize(prefer_evolution)
  File "/usr/lib/pymodules/python2.6/dashboard_app/models.py", line 417, in _do_deserialize
    helper.deserialize(self, prefer_evolution)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 737, in deserialize
    importer().import_document(s_bundle, doc)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 64, in import_document
    self._import_document_with_transaction(s_bundle, doc)
  File "/usr/lib/pymodules/python2.6/django/db/transaction.py", line 299, in _commit_on_success
    res = func(*args, **kw)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 106, in _import_document_with_transaction
    self._import_document(s_bundle, doc)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 110, in _import_document
    self._import_test_run(c_test_run, s_bundle)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 158, in _import_test_run
    self._import_software_context(c_test_run, s_test_run)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 616, in _import_software_context
    self._import_packages(c_test_run, s_test_run)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 502, in _import_packages
    self._import_packages_scratch_pgsql(cursor, packages)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 490, in _import_packages_scratch_pgsql
    "INSERT INTO dashboard_app_softwarepackagescratch (name, version) VALUES " + sequel, data)
  File "/usr/lib/pymodules/python2.6/django/db/backends/postgresql_psycopg2/base.py", line 44, in execute
    return self.cursor.execute(query, args)
DatabaseError: value too long for type character varying(64)

The above error occurred with the following job:
http://validation.linaro.org/lava-server/scheduler/job/1570

Thanks!!!
Deepti.

Related branches

Zygmunt Krynicki (zyga)
Changed in lava-dashboard:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Zygmunt Krynicki (zkrynicki)
milestone: none → 2011.09
Zygmunt Krynicki (zyga)
Changed in lava-dashboard:
status: Confirmed → Triaged
status: Triaged → 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.