Skip to content

Setting upload state to Queued fails when using ingest uploads from the UI #4406

Description

@tonytw1

The POST from Kahuna to move a Prepared upload into the Queued status always returns HTTP 400.

Image Image

I think this because the conditional update clause expects the status field of the upload status Dynamo table to contain the string Prepared.

(

uploadStatusTable.when(attributeExists("id") and ("status" === Prepared.toString))
)

But the StatusType enum is actually persisted in a nested format:

Image

Therefore; the query never matches and uploads never enter the Queued status.
This should show up as the 'queued' status never appearing on the upload status list view and HTTP 400s been visible in the Developer Console will uploading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions