Item14736: The REST API allows uploading of attachments the web UI can't delete

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component:
Branches:
Reported By: DanielOConnor
Waiting For:
Last Change By: DanielOConnor
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.

-- DanielOConnor - 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.

-- MichaelDaum - 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.

-- DanielOConnor - 09 Jul 2021
 

ItemTemplate edit

Summary The REST API allows uploading of attachments the web UI can't delete
ReportedBy DanielOConnor
Codebase
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r3 - 09 Jul 2021, DanielOConnor
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy