Content
View differences
Updated by Dominic Bräunlein 10 months ago
### Steps to reproduce
1. Setup Nextcloud and the OpenProject Integration using "Two-way OAuth 2.0 authorization code flow"
2. Open the Nextcloud files list with an account that is not yet authorized for OpenProject
### What is the buggy behavior?
* Opening the Nextcloud files list results in a log entry (level 2) indicating that the user needs to be authorized for OpenProject.
* Error message in Nextcloud log: "OpenProject API error : The client has to authenticate to access the requested resource"
### What is the expected behavior?
1. Error message does not show in the logs.
2. If a Nextcloud user didn't set up the connection to OpenProject or removed it in Nextcloud, the Integration shouldn't try to contact it.
###
### Environment information
**OpenProject:** Enterprise On-Premises v16.0.1
**Nextcloud:** 31.0.5.1
**OpenProject Integration App:** 2.9.1
### Infos for QA
* The error message can be found in the Nextcloud server logs. An example of the error can be found [here](https://community.openproject.org/projects/nextcloud-integration/work_packages/64874/activity#comment-1378803).
* To avoid server log access you can use the server logs app
to access logs under: https://nextcloud.openproject-edge.eu/settings/admin/logging
1. Setup Nextcloud and the OpenProject Integration using "Two-way OAuth 2.0 authorization code flow"
2. Open the Nextcloud files list with an account that is not yet authorized for OpenProject
### What is the buggy behavior?
* Opening the Nextcloud files list results in a log entry (level 2) indicating that the user needs to be authorized for OpenProject.
* Error message in Nextcloud log: "OpenProject API error : The client has to authenticate to access the requested resource"
### What is the expected behavior?
1. Error message does not show in the logs.
2. If a Nextcloud user didn't set up the connection to OpenProject or removed it in Nextcloud, the Integration shouldn't try to contact it.
###
### Environment information
**OpenProject:** Enterprise On-Premises v16.0.1
**Nextcloud:** 31.0.5.1
**OpenProject Integration App:** 2.9.1
### Infos for QA
* The error message can be found in the Nextcloud server logs. An example of the error can be found [here](https://community.openproject.org/projects/nextcloud-integration/work_packages/64874/activity#comment-1378803).
* To avoid server log access you can use the server logs app
to access logs under: https://nextcloud.openproject-edge.eu/settings/admin/logging