# Bug OP-18527 - attachment macro does not work anymore

Project: OpenProject
Status: confirmed
URL: https://community.openproject.org/work_packages/OP-18527

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Text editor / CKEditor5, Modules and project features / Text editor |
| Target versions |  |
| Observed in versions | 16.6.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 16.6.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

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

## Planning

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

## Costs

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

## Description

### Steps to reproduce

<br>

1.  Login as a user with permissions to edit work packages
    
2.  Open a work package, add upload a file using the _files_ tab
    
3.  Click into the work package description
    
4.  Try to link to the just added file, using the `Attachment by filename` macro described in the documentation here: [https://www.openproject.org/docs/user-guide/wysiwyg/#links-to-openproject-resources](https://www.openproject.org/docs/user-guide/wysiwyg/#links-to-openproject-resources)  
    `attachment:filename.zip`
    

### What is the buggy behavior?

<br>

*   I seems like it is not possible to refer to attachments with this macro anymore
    

### What is the expected behavior?

<br>

1.  Where macros can be used, this one works as described in the documentation
    

### **Logs**

<img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/917920/content">

Appeared after reloading the page and trying to submit the WP descripton with attachment macro again.

### Screenshots and other files

<br>

<img class="image_resized op-uc-image op-uc-image_inline" style="width:727px;" src="/api/v3/attachments/917921/content">

### Environment information

_Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs_

**OpenProject installation type**

*   Hosted cloud edition
    

**OpenProject version**

_16.6.3_

**Browser**

*   [ ] Chrome
*   [ ] Firefox
*   [ ] Safari
*   [ ] Mobile Safari
*   [x] Other (Vivaldi)

**Operating System**

*   [x] Windows
*   [ ] Mac OS X
*   [ ] Mobile iOS
*   [ ] Mobile Android
*   [ ] Linux (please specify distro)
*   [ ] Chrome OS
*   [ ] Other (please specify)

**Language**

_EN/DE tested_
