Skip to content

Internal Server Error 500 after two consecutive PATCH requests  #1931

@gcakir

Description

@gcakir

While adding data to the draft, the first PATCH request successfully adds data to the existing draft. But if the same request is made with the identical payload/data (e.g. [email protected]) for the same path (e.g. contact_email), Internal Server Error (500) will be returned from the API.

data_patch = [

    {"op": "add", "path": "/contact_email", "value": "[email protected]"},

]

This seems to be happening because publication state disappears in

del new_deposit['publication_state']

Could it be that whole block in this part is indented one level less than it should be?

@JohannesLares
@hjhsalo

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