# Bug OP-11505 - Backup failed with message "undefined method 'body'.." if attachment is unavailable

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-11505

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 12.4.0 |
| Observed in versions |  |
| Sprint | 12.4.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| 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

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Login as an administrator
2.  Go to administration -\> backup
3.  Enter existing backup-token
4.  Choose "Include attachments"
5.  Click on "request backup" 

### What is the buggy behavior?

  - The job in the background stops with an error message (please see the screenshot attached)

### What is the expected behavior?

  - The system shows a message, that says:   
    "The requested backup was created successfully. Your data is save. Thank you for your time" :-)

### **Logs**

*Are there errors in the browser console? (*[*Click here for information on how to open your browser's console*](https://webmasters.stackexchange.com/a/77337)*)* 

  - No errors
  - 4 warnings <img class="op-uc-image op-uc-image_inline" src="/api/v3/attachments/41753/content">

### Screenshots and other files

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

### Environment information

**OpenProject installation type**

- [x] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

 *cloud edition*

Produktversion **8aa1cebf (2022-11-01 12:21:12 +0000)**

Core Version **OpenProject 12.3.3** 

PostgreSQL-Version 13.7

**Browser**

- [ ] Chrome
- [x] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

German
