[Bug] New asset form fails with a HTTP 500 with the name is too long #86811

Closed
opened 2021-03-22 11:08:42 +01:00 by Anna Sirota · 3 comments
Owner

Either the name itself has a char limit, or it's the slug's char limit that causes the error.
Regardless, it should both be extended and handled as a clear validation error.

From Sentry

ignored_wrapper_args	

[False, {connection: <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7fbeb7c17eb0>, cursor: <django.db.backends.utils.CursorWrapper object at 0x7fbe9409f970>}]

params	

[datetime.datetime(2021, 3, 22, 9, 49, 59, 704034, tzinfo=<UTC>), datetime.datetime(2021, 3, 22, 9, 49, 59, 704065, tzinfo=<UTC>), datetime.datetime(2021, 3, 22, 10, 49, 36, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 16, 6163, 844, None, 'Chunky Snail - First Shading Pass with Procedural Ooze', 'chunky-snail-first-shading-pass-with-procedural-ooze', "I made a first shading pass for the chunky snail variation. Most of the work was transferring the shading data from the generic snail and redoing the UV maps and vertex colors. I also wanted to add some slime to his belly, so I played around with a procedural ooze shader that could potentially also be animated.\n\nIt's not clear yet how much we want to use this here but it's definitely going to be useful in other situations. Like on Rex's skin when he is covered in snails, or even for melting tissue tow...]

self	

<django.db.backends.utils.CursorWrapper object at 0x7fbe9409f970>

sql	

'INSERT INTO "films_asset" ("date_created", "date_updated", "date_published", "film_id", "static_asset_id", "collection_id", "order", "name", "slug", "description", "category", "view_count", "is_published", "is_featured", "is_free", "is_spoiler", "contains_blend_file") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "films_asset"."id"'
Either the name itself has a char limit, or it's the slug's char limit that causes the error. Regardless, it should both be extended and handled as a clear validation error. From [Sentry](https://sentry.io/organizations/blender-institute/issues/2289332056/?project=5476345&query=is%3Aunresolved&statsPeriod=7d) ``` ignored_wrapper_args [False, {connection: <django.db.backends.postgresql.base.DatabaseWrapper object at 0x7fbeb7c17eb0>, cursor: <django.db.backends.utils.CursorWrapper object at 0x7fbe9409f970>}] params [datetime.datetime(2021, 3, 22, 9, 49, 59, 704034, tzinfo=<UTC>), datetime.datetime(2021, 3, 22, 9, 49, 59, 704065, tzinfo=<UTC>), datetime.datetime(2021, 3, 22, 10, 49, 36, tzinfo=<DstTzInfo 'Europe/Amsterdam' CET+1:00:00 STD>), 16, 6163, 844, None, 'Chunky Snail - First Shading Pass with Procedural Ooze', 'chunky-snail-first-shading-pass-with-procedural-ooze', "I made a first shading pass for the chunky snail variation. Most of the work was transferring the shading data from the generic snail and redoing the UV maps and vertex colors. I also wanted to add some slime to his belly, so I played around with a procedural ooze shader that could potentially also be animated.\n\nIt's not clear yet how much we want to use this here but it's definitely going to be useful in other situations. Like on Rex's skin when he is covered in snails, or even for melting tissue tow...] self <django.db.backends.utils.CursorWrapper object at 0x7fbe9409f970> sql 'INSERT INTO "films_asset" ("date_created", "date_updated", "date_published", "film_id", "static_asset_id", "collection_id", "order", "name", "slug", "description", "category", "view_count", "is_published", "is_featured", "is_free", "is_spoiler", "contains_blend_file") VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s) RETURNING "films_asset"."id"' ```
Author
Owner

Added subscriber: @railla

Added subscriber: @railla

This issue was referenced by 7dbe15a2c3

This issue was referenced by 7dbe15a2c3e9983f1046a9fd4e3fb5fa4b2d8a48
Author
Owner

Changed status from 'Needs Triage' to: 'Resolved'

Changed status from 'Needs Triage' to: 'Resolved'
Anna Sirota self-assigned this 2021-11-08 12:55:36 +01:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: studio/blender-studio#86811
No description provided.