# Bug OP-19420 - Reading large XML metadata files in SSO configuration freezes page, throws 504

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

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Authentication / SAML |
| Target versions | 17.6.0 |
| Observed in versions | 17.4.0 |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) | 17.4.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 | Simon Pfaff |
| Accountable |  |
| Product manager |  |
| Developers | Oliver Günther |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Log into OpenProject as Administrator and navigate to Administration Settings
    
2.  Navigate to Authentication -&gt; SAML providers and add a new one
    
3.  In the metadata step, paste a large XML File (e.g. 90MB) or link to a URL that provides that
    
4.  Try to continue
    

### What is the buggy behavior?

*   Page freezes
    
*   After some time, nginx comes back with a 504 Gateway Time-out error page
    

### What is the expected behavior?

1.  The application should accept large XML files or catch the error and inform the user
    

###   

### Screenshots and other files

<img class="op-uc-image op-uc-image_inline" src="https://helpdesk.openproject.org/web/image/120137?access_token=4ec8f847-e61d-4d11-bba2-ede8b1904be1">

### Environment information

**OpenProject installation type**

*   Hosted cloud edition
