Skip to content

Cannot delete multiple Tasks using the REST API #2710

@ninkisa

Description

@ninkisa

Hello,
I'm trying to use the endpoint to delete multiple tasks by some criteria, but I get the following error:

curl -X 'DELETE' \
  'https://<host>/taskana/api/v1/tasks?por-type=KNR&por-value=1380001' \
  -H 'accept: application/hal+json' \
  -H 'Authorization: <Authorization>'

"message" : "\n### Error updating database. Cause: org.postgresql.util.PSQLException: ERROR: cannot execute DELETE in a read-only transaction\n### The error may exist in pro/taskana/task/internal/AttachmentMapper.java (best guess)\n### The error may involve pro.taskana.task.internal.AttachmentMapper.deleteMultipleByTaskIds-Inline\n### The error occurred while setting parameters\n### SQL: DELETE FROM ATTACHMENT WHERE TASK_ID IN( ? )\n### Cause: org.postgresql.util.PSQLException: ERROR: cannot execute DELETE in a read-only transaction",

This issue was already fixed for other endpoints like the one in the following issue: #2292, but not for /taskana/api/v1/tasks endpoint
Can you take a look?

Best regards,
Nina

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions