#680 API workflow endpoints using cursor without dict_row

closed high Created 2025-12-25 00:32 · Updated 2025-12-25 00:32

Description

Edit
Bug: Several API endpoints in api/blueprints/v1/workflows.py used conn.cursor() without specifying row_factory=dict_row, but then tried to access rows as dicts (row['column_name']). This caused 'tuple indices must be integers or slices, not str' errors. Affected endpoints: - GET /workflows/definitions/<definition_id> - GET /workflows/definitions/hash/<hash> - GET /workflows/definitions/<name>/versions/<version> - Several workflow run endpoints Fix: Changed all conn.cursor() calls to conn.cursor(row_factory=dict_row) to return rows as dicts.

Comments

Loading comments...

Context

Loading context...

Audit History

View All
Loading audit history...