Item14736: The REST API allows uploading of attachments the web UI can't delete
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Engine
I made a plugin which used the REST API to upload an attachment after editing.
Due to a bug it was being passed a filename of 'image/svg+xml'. When uploaded this gets turned into 'svg+xml' in the attachment table. Attempting to delete this fails with..
During move of attachment svg xml to Trash.TrashAttachment an error was found.
Attachment does not exist.
Note the space - I assume the plus in the attachment name is not being escape correctly or similar, hence the conversion to a space.
- 21 Jun 2018
There are some infos missing here, i.e. which RES API and UI has been used. Please reopen if you you like this issue to be addressed providing more details.
- 08 Jul 2021
I think this was with my DrawIO
plugin, the API is CG::img.
The plugin allows you to upload draw.io images and embed them so double clicking on them opens the editor in a new tab.
I had a bug where it uploaded using the MIME type as the filename and I found I couldn't delete the result.
Unfortunately I don't have sample code for the error anymore.
- 09 Jul 2021