when a forum reply is deleted all the other forum reply attachments are deleting

Hi, 

we are creating some reply with the rest forum replies API with an  attachments, the replies are posted to the community as expected.

But when we try to delete one of the replies from the web itself the reply is going to be deleted as expected, but it also removes the attachments of all the other replies.

we are on 11.1.7.15705 and using the below request 

curl --location --request POST 'http://mycommunity.com/api.ashx/v2/forums/threads/1/replies.json' \
--header 'Rest-User-Token: NW1wZTlmbGlkOG9oZDJocDk2OGYwc3kwdGEyaXE6YWRtaW4=' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'ContentType=image/jpeg' \
--data-urlencode 'FileName=image3.jpg' \
--data-urlencode 'Body=eighth attachment' \
--data-urlencode 'FileData=yourfiledata'

Screenshot before delete:

screenshot after delete 

Parents Reply Children
  • I have verified that this is a bug in the cascading deletion logic for forum replies. I've logged the issue as:

    TE-16885: All attachments on replies within a thread are deleted when any reply in the thread is deleted.

    Unfortunately, there is not a work-around for this issue. Thank you for reporting this. We haven't exposed reply attachments for a few versions in the default UI, so this issue wasn't noticed.