Unable to import SoftwarePackage with version longer than 32 characters

Bug #744922 reported by Paul Larson
This bug affects 1 person
Affects Status Importance Assigned to Milestone
LAVA Dashboard (deprecated)
Fix Released
Zygmunt Krynicki

Bug Description

You may already know about this one, I know you said you had some things like this to fix because of the sqlite issue with not honoring length limits. Looks like this one concerns version tags in swprofile:

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/dashboard_app/models.py", line 375, in deserialize
  File "/usr/lib/pymodules/python2.6/dashboard_app/models.py", line 393, in _do_deserialize
    helper.deserialize(self, prefer_evolution)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 435, in deserialize
    importer().import_document(s_bundle, doc)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 57, 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 99, in _import_document_with_transaction
    self._import_document(s_bundle, doc)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 103, in _import_document
    s_test_run = self._import_test_run(c_test_run, s_bundle)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 130, 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 143, in _import_software_context
    self._import_packages(c_test_run, s_test_run)
  File "/usr/lib/pymodules/python2.6/dashboard_app/helpers.py", line 222, in _import_packages
    version=c_package["version"] # required by schema
  File "/usr/lib/pymodules/python2.6/django/db/models/manager.py", line 135, in get_or_create
    return self.get_query_set().get_or_create(**kwargs)
  File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 383, in get_or_create
    obj.save(force_insert=True, using=self.db)
  File "/usr/lib/pymodules/python2.6/django/db/models/base.py", line 458, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/usr/lib/pymodules/python2.6/django/db/models/base.py", line 551, in save_base
    result = manager._insert(values, return_id=update_pk, using=using)
  File "/usr/lib/pymodules/python2.6/django/db/models/manager.py", line 195, in _insert
    return insert_query(self.model, values, **kwargs)
  File "/usr/lib/pymodules/python2.6/django/db/models/query.py", line 1524, in insert_query
    return query.get_compiler(using=using).execute_sql(return_id)
  File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py", line 788, in execute_sql
    cursor = super(SQLInsertCompiler, self).execute_sql(None)
  File "/usr/lib/pymodules/python2.6/django/db/models/sql/compiler.py", line 732, in execute_sql
    cursor.execute(sql, params)
  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(32)

Revision history for this message
Zygmunt Krynicki (zyga) wrote :

Thanks for reporting this. I already fixed this for rc7

Changed in launch-control:
assignee: nobody → Zygmunt Krynicki (zkrynicki)
importance: Undecided → Medium
milestone: none → 0.3c7
status: New → Fix Committed
Zygmunt Krynicki (zyga)
summary: - value too long for type character varying(32)
+ Unable to import SoftwarePackage with version longer than 32 characters
Zygmunt Krynicki (zyga)
Changed in launch-control:
status: Fix Committed → 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.