giving version to higer number returns internal server number

Bug #1794482 reported by Kushal Agrawal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glare
New
Undecided
Kushal Agrawal

Bug Description

while creating an artifact, in case the version provided is higher number (for Ex: "version":"65535.65535.65535")

<html>
    <head>
        <title>500 Internal Server Error</title>
    </head>
    <body>
        <h1>500 Internal Server Error</h1>
  (pymysql.err.DataError) (1264, u&quot;Out of range value for column 'version_prefix' at row 1&quot;) [SQL: u'INSERT INTO glare_artifacts (id, name, type_name, version_prefix, version_suffix, version_meta, description, visibility, status, owner, created_at, updated_at, activated_at, display_type_name) VALUES (%(id)s, %(name)s, %(type_name)s, %(version_prefix)s, %(version_suffix)s, %(version_meta)s, %(description)s, %(visibility)s, %(status)s, %(owner)s, %(created_at)s, %(updated_at)s, %(activated_at)s, %(display_type_name)s)'] [parameters: {'version_meta': u'abcsd', 'status': u'drafted', 'activated_at': None, 'name': u'test_template_2', 'created_at': datetime.datetime(2018, 9, 26, 9, 48, 33, 608673), 'type_name': 'cbnd_tosca_templates', 'display_type_name': 'TOSCA Template', 'updated_at': datetime.datetime(2018, 9, 26, 9, 48, 33, 603915), 'visibility': u'private', 'version_prefix': 18446744073709518848L, 'version_suffix': '', 'owner': u'CloudBandNetworkDirector', 'id': u'c6317213-921e-4ab9-afef-4a84fa886e1d', 'description': u''}] (Background on this error at: http://sqlalche.me/e/9h9h)
        <br />
        <br />
    </body>
</html>

Changed in glare:
assignee: nobody → Kushal Agrawal (kushal2605)
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.