Content
View differences
Updated by Sagar Gurung over 2 years ago
### Steps to reproduce
1. Link one user from nextcloud and Open Project
2. Wait for the an hr or change the expiry time of corresponding token in NC on the table oc\_authtoken
3. Invoke an api request to open project for file links of a workpackage owned by the same user (api/v3/work\_packages/354/file\_links)
4. The server will give a 500 Internal Server Error for the API call.
5. The issue will be visible in Open Project fronted also. The file listing under the storage will be empty. It will not show login button as well. well.
6. To get out of the situation one may delete the NextCloud related OAuth token from the users token listing page and reauthenticate.
### What is the buggy behavior?
_Please describe the bug in as much detail as possible. Example:_
* The expiry of token is not gracefully handled in the API call and frontend
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. The token may have to be refreshed by a timer
2. API call to fail with token expiry
3. Frontend to provide for relogin.
### Environment information
NextCloud 28 beta4 version connected with OpenProject 13.0.7 13.0.7
**OpenProject installation type**
* [ ] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [x] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version - 13.0.7**
1. Link one user from nextcloud and Open Project
2. Wait for the an hr or change the expiry time of corresponding token in NC on the table oc\_authtoken
3. Invoke an api request to open project for file links of a workpackage owned by the same user (api/v3/work\_packages/354/file\_links)
4. The server will give a 500 Internal Server Error for the API call.
5. The issue will be visible in Open Project fronted also. The file listing under the storage will be empty. It will not show login button as well.
6. To get out of the situation one may delete the NextCloud related OAuth token from the users token listing page and reauthenticate.
### What is the buggy behavior?
_Please describe the bug in as much detail as possible. Example:_
* The expiry of token is not gracefully handled in the API call and frontend
### What is the expected behavior?
_Describe how the application should behave like. Example:_
1. The token may have to be refreshed by a timer
2. API call to fail with token expiry
3. Frontend to provide for relogin.
### Environment information
NextCloud 28 beta4 version connected with OpenProject 13.0.7
**OpenProject installation type**
* [ ] Hosted cloud edition
* [ ] Packaged installation
* What distribution?
* [ ] Docker All-in-one container
* [x] Docker-compose installation
* [ ] Other (please specify)
**OpenProject version - 13.0.7**