# Bug SSI-447 - Ungracefully stop synchronization if Nextcloud plugin is disabled

Project: Stream Storage Integrations
Status: closed
URL: https://community.openproject.org/work_packages/SSI-447

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / File storages |
| Target versions | 17.0.0 |
| Observed in versions | 16.6.0 |
| Bug found in version (deprecated) | 16.6.x |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

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

## Costs

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

## Description

### Steps to reproduce

1.  Condifure a OpenProject - Nextcloud integration with an AMPF storage
    
2.  Trigger a synchronization
    
3.  Disable the plugin
    
4.  Trigger another synchronization
    

### What is the buggy behavior?

*   The sync fails with an exception when accessiong file info for the team folder
    

### What is the expected behavior?

1.  An error should be logged
    

### Important note

*   **ONLY FOR NEXTCLOUD 32+**
    
*   this behaviour happens, because nextcloud responds with an HTTP 200, and the reponse object is unexpected in code
    

```json
{
  ocs: {
    meta: {
      status: "failure",
      statuscode: 996,
      message: "Internal Server Error\n",
      totalitems: "",
      itemsperpage: ""
    },
    data: []
  }
}
```

*   code needs to react to that kind of responses and return an error
    
*   we need to handle that for alle queries and commands using OCS API
