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
{{ message }}
Repository navigation
Warn admin about outdated Collabora versions #4349
We notice quite often that users update their Nextcloud but have no information that there is a new Collabora version available (both patch updates but also major versions).
On the Nextcloud side we can send notifications to admins and also warn them prominently in the admin overview.
While Collabora has a hint about new versions it is only shown to admins when they use collabora which might not happen often and therefore might be unseen.
My proposal would be to extend this in the richdocuments app:
Regularly check if there is a new Collabora version available
Notify admins about it
Show a warning in the admin overview of Nextcloud
We can read the currently installed version from capabilities of Collabora but there is no way I'm aware to know about the latest published version in machine readable form (both for CODE and COOL releases).
@pedropintosilva Not sure who to ping, but it would be nice to just have some endpoint that we can query that will tell us the latest version tag for CODE / COOL.
@timar A possibly simple solution I imagine might be to just write a simple text file containing the version during the build and just put them somewhere next to the repos. Maybe that can even be automated in the build scripts (I assume you have some in place for that 😁 )
Then we could hardcode urls like this in the richdocuments app to check for the latest release and compare with the ones that online returns in the capabilities
For CODE: https://rating.collaboraonline.com/UpdateCheck/updatecheck2.html
For COOL: https://rating.collaboraonline.com/UpdateCheck/updatecheck2.html?product=cool
For CODE: https://rating.collaboraonline.com/UpdateCheck/updatecheck2.html
For COOL: https://rating.collaboraonline.com/UpdateCheck/updatecheck2.html?product=cool
Yes, indeed. In fact the URLs above are OK, but the logic is a bit different. When the product parameter is empty, the code assumes CODE (i.e. product=Collabora%20Online%20Development%20Edition). Otherwise endpoint returns COOL version, whatever else you pass with the product parameter. The /hosting/capabilities endpoint of COOL server returns the product name in the productName property. You can use it to query the update check service.
The update check service also takes a version parameter, which is currently unused, but we may use it in the future. It takes the version number, which is productVersion in /hosting/capabilities response. It is possible that in the future, when e.g. 25.04 is out, we do not "migrate" everyone immediately, but still offer 24.04.x.y for COOL users for a while.
Activity
pedropintosilva commentedon Dec 17, 2024
I agree. I wonder if this could be integral part of the #4041
pedropintosilva commentedon Dec 17, 2024
Nevertheless, I wonder if we don't already have a url that gives us that or if it wouldn't be beneficial to have one but probably @timar knows best
juliusknorr commentedon Dec 17, 2024
Not sure how this should be related
juliusknorr commentedon Dec 20, 2024
For CODE I could imagine we just fetch https://www.collaboraoffice.com/repos/CollaboraOnline/CODE-deb/Packages and get the coolwsd version. But for enterprise packages it would not be feasible to use a real repository URL.
@timar A possibly simple solution I imagine might be to just write a simple text file containing the version during the build and just put them somewhere next to the repos. Maybe that can even be automated in the build scripts (I assume you have some in place for that 😁 )
Then we could hardcode urls like this in the richdocuments app to check for the latest release and compare with the ones that online returns in the capabilities
juliusknorr commentedon Jan 7, 2025
We can use the following two:
timar commentedon Jan 7, 2025
Yes, indeed. In fact the URLs above are OK, but the logic is a bit different. When the
productparameter is empty, the code assumes CODE (i.e. product=Collabora%20Online%20Development%20Edition). Otherwise endpoint returns COOL version, whatever else you pass with theproductparameter. The/hosting/capabilitiesendpoint of COOL server returns the product name in theproductNameproperty. You can use it to query the update check service.The update check service also takes a
versionparameter, which is currently unused, but we may use it in the future. It takes the version number, which isproductVersionin/hosting/capabilitiesresponse. It is possible that in the future, when e.g. 25.04 is out, we do not "migrate" everyone immediately, but still offer 24.04.x.y for COOL users for a while.juliusknorr commentedon May 28, 2025
Part of #4470