Skip to content

Uploading assets to a newly created page fails #52

Description

@gerrit

When on a new page form and trying to upload attachments it seems to work initially, but then the upload fails with status 500 and the following exception (using postgresql):

An exception occurred:

EXCEPTION:
ActiveRecord::StatementInvalid in assets#create

ERROR:
PGError: ERROR:  invalid input syntax for integer: ""
LINE 1: SELECT * FROM "pages" WHERE ("pages"."id" = '')  LIMIT 1
                                                    ^
: SELECT * FROM "pages" WHERE ("pages"."id" = '')  LIMIT 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions