You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, token renewal bootstraps the whole web client in an iFrame, which is quite costly and takes time with a bad connection. This can result in the page not behaving correctly, especially during long running operations (e.g. uploads) because token renewal takes too long.
We see two possible solutions to this, both require lots of research and changes:
Web ships a small standalone Vue application that gets bootstrapped in the iFrame. The challenge here is that it needs the AuthService, the UserManager, router etc. We need to find all involved parts and elaborate how to achieve this. Maybe it's possible to move them to this standalone app and use them in the runtime while removing all the dependencies from the standalone app to Web, so it can be run separately.
Make use of the Backends for Frontends (BFF) pattern, moving authentication entirely to the BFF and only having a session cookie in web.
Original issue
Initial Checklist
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
When an upload takes too long the user session expires and the user is asked to login again
We had a similar report in the past, but I can't reproduce it. Could you please post details on your exact setup? Also, is it happening when uploading a lot of small files, or a very big file that gets chunked?
It's when uploading multiple 2-3MB files on a slow connection. To simulate it easier I've throttled the connection in the browser.
here my docker files. I hope I've masked all confidential data. I can provide you a user on the system if that helps. oc-setup.zip
Tried again today, locally as well as on demo.opencloud.eu, but it works every time for me:
The first bunch of "test" files were uploaded, during the upload the token renewal took place, then the other files were uploaded using a new bearer token.
@individual-it nobody from the team is able to reproduce the described behaviour so far. Can you try to reproduce it on demo.opencloud.eu or with a fresh opencloud-compose deployment? Any idea what's different in your setup than in the opencloud-compose standard setup?
@kulmann I just reproduced it on demo.opencloud.eu I got logged out
But this now looks unrelated to an upload? And the behavior is different, because in your initial issue, you had this popup asking you if you really want to leave the page.
Did it just happen after a while this time? Looks like you did a PROPFIND on a space which failed because the renewal failed in the first place.
After talking with the team we decided this is a feature request. It basically comes down to how Web handles token renewal when the connection is bad. Currently, token renewal bootstraps the whole web client in an iFrame, which is quite costly and takes time with a bad connection.
Ideally, Web ships a small standalone Vue application that gets bootstrapped in the iFrame. The challenge here is that it needs the AuthService, the UserManager, router etc. We need to find all involved parts and elaborate how to achieve this. Maybe it's possible to move them to this standalone app and use them in the runtime while removing all the dependencies from the standalone app to Web, so it can be run separately.
Activity
JammingBen commentedon Nov 6, 2025
We had a similar report in the past, but I can't reproduce it. Could you please post details on your exact setup? Also, is it happening when uploading a lot of small files, or a very big file that gets chunked?
individual-it commentedon Nov 6, 2025
It's when uploading multiple 2-3MB files on a slow connection. To simulate it easier I've throttled the connection in the browser.
here my docker files. I hope I've masked all confidential data. I can provide you a user on the system if that helps.
oc-setup.zip
JammingBen commentedon Nov 6, 2025
Thanks! Let me first have a look at the setup you provided, and I'll message you in chat if I still need a user :)
JammingBen commentedon Nov 7, 2025
Tried again today, locally as well as on demo.opencloud.eu, but it works every time for me:
The first bunch of "test" files were uploaded, during the upload the token renewal took place, then the other files were uploaded using a new bearer token.
I'll hit you up in chat for a user.
kulmann commentedon Nov 19, 2025
@individual-it nobody from the team is able to reproduce the described behaviour so far. Can you try to reproduce it on demo.opencloud.eu or with a fresh opencloud-compose deployment? Any idea what's different in your setup than in the opencloud-compose standard setup?
individual-it commentedon Nov 19, 2025
@kulmann I just reproduced it on
demo.opencloud.euI got logged outJammingBen commentedon Nov 19, 2025
But this now looks unrelated to an upload? And the behavior is different, because in your initial issue, you had this popup asking you if you really want to leave the page.
Did it just happen after a while this time? Looks like you did a PROPFIND on a space which failed because the renewal failed in the first place.
individual-it commentedon Nov 19, 2025
Not sure if this is the same issue or not, but on demo.opencloud.eu we saw:
differences so far between demo and my instance are:
individual-it commentedon Nov 19, 2025
reproduced the same behavior as on my instance using https://github.com/opencloud-eu/opencloud-compose
just throttle the upload e.g. to "Regular 3G" in Firefox and upload some big files
JammingBen commentedon Nov 19, 2025
After talking with the team we decided this is a feature request. It basically comes down to how Web handles token renewal when the connection is bad. Currently, token renewal bootstraps the whole web client in an iFrame, which is quite costly and takes time with a bad connection.
Ideally, Web ships a small standalone Vue application that gets bootstrapped in the iFrame. The challenge here is that it needs the
AuthService, theUserManager, router etc. We need to find all involved parts and elaborate how to achieve this. Maybe it's possible to move them to this standalone app and use them in the runtime while removing all the dependencies from the standalone app to Web, so it can be run separately.This requires a lot of research and refactoring.
[-]session expires during long running uploads[/-][+]Optimize resources during token renewal[/+]kulmann commentedon Nov 21, 2025
An alternative approach would be to introduce a backend for web, following the BFF pattern, which moves token management away from the client.
We have updated the original issue description to reflect the new feature request.