Skip to content

[content-publishing] Should validate schema payload location when announcing batch files #1001

@JoeCap08055

Description

@JoeCap08055

Description

When posting batch announcements via Gateway, the endpoint should validate that the payload location of the schema is off-chain (ie, IPFS).

Without this validation, it is possible to upload a batch file to IPFS but announce (or, at least attempt to announce) it to an on-chain schema. (It may be that this mismatch would fail to post to the chain in the worker, but ideally this error condition should be detected at the time of user submission, rather than leaving a failed job in an indeterminate state)

Affected endpoints

  • /v2/content/batchAnnouncement
  • /v3/content/batchAnnouncement

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions