# Bug COMMS-470 - Work package activity tab comments inline attachments are not updated when comments are completely empty

Project: Stream Communicator
Status: closed
URL: https://community.openproject.org/work_packages/COMMS-470

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Comments and activity |
| Target versions | 16.5.1 |
| Observed in versions | 16.5.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.5.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Kabiru Mwenja |
| Product manager |  |
| Developers | Kabiru Mwenja |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Steps to reproduce

1.  Login as a user with permissions to add work package comments
    
2.  Upload an attachment to a comment and submit, without any additional text input
    
3.  Copy the attachment ID, by right clicking on the attachment and selecting &quot;Copy image link address&quot;
    
    1.  It should generally be in the format of https://the-openproject-host.com/api/v3/attachments/{id}/content
        
4.  Edit the comment, delete the (inline) attachment from the comment and submit
    

### What is the buggy behavior?

*   When the (inline) attachment is deleted from the comment, the attachment is still accessible via API- which suggests it was not deleted
    
*   Visiting [https://the-openproject-host.com/api/v3/attachments/{id}](https://the-openproject-host.com/api/v3/attachments/%7Bid%7D) on your browser still shows the attachment
    

### What is the expected behavior?

1.  Inline attachments lifecycle is tied to the comment i.e. when the inline attachment is removed from a comment, it should also be deleted.
    
2.  Visiting [https://the-openproject-host.com/api/v3/attachments/{id}](https://the-openproject-host.com/api/v3/attachments/%7Bid%7D) on your browser should yield a 404, implying that the attachment was deleted
    

**OpenProject version**

v16.5
