1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 15:28:06 +02:00

Merge pull request #246 from overleaf/jpa-5-0-3

Release Server Pro 5.0.3
This commit is contained in:
Jakob Ackermann 2024-04-24 12:03:40 +01:00 committed by GitHub
commit e8b536cad7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 48 additions and 7 deletions

View file

@ -1,5 +1,25 @@
# Changelog
## 2024-04-22
### Added
- Updated default [`version`](https://github.com/overleaf/toolkit/blob/master/lib/config-seed/version) to `5.0.3`.
:warning: This is a security release. This release also fixes a critical bug in a database migration as included in release 5.0.1. The recovery procedure for doc versions has been updated compared to 5.0.2. Please check the [release notes](https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#server-pro-503) for details.
Note: Server Pro version 4.2.4 contains the equivalent security update for the 4.x.x release line.
## 2024-04-22
### Added
- Updated default [`version`](https://github.com/overleaf/toolkit/blob/master/lib/config-seed/version) to `5.0.2`.
:warning: This is a security release. This release also fixes a critical bug in a database migration as included in release 5.0.1. Please check the [release notes](https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#server-pro-502) for details.
Note: Server Pro version 4.2.4 contains the equivalent security update for the 4.x.x release line.
### Fixed
- Retracted release 5.0.2
:warning: We have identified a few corner cases in the recovery procedure for docs.
## 2024-04-18
### Fixed
- Retracted release 5.0.1

View file

@ -120,6 +120,7 @@ function handle_image_upgrade() {
if [[ ! "$should_upgrade" =~ [Yy] ]]; then
echo "Keeping image version '$IMAGE_VERSION'"
check_retracted_version
return 0
fi
@ -137,6 +138,24 @@ function handle_image_upgrade() {
fi
# Skip retraction check in sub-shells
export OVERLEAF_SKIP_RETRACTION_CHECK="$IMAGE_VERSION"
local version="$IMAGE_VERSION_MAJOR.$IMAGE_VERSION_MINOR.$IMAGE_VERSION_PATCH"
if [[ "$version" == "5.0.1" ]]; then
echo "-------------------------------------------------------"
echo "--------------------- WARNING -----------------------"
echo "-------------------------------------------------------"
echo " You are currently using a retracted version, $version."
echo ""
echo " We have identified a critical bug in a database migration that causes data loss in the history system."
echo " Please follow the steps of the recovery process in the following wiki page:"
echo " https://github.com/overleaf/overleaf/wiki/Doc-version-recovery"
echo "-------------------------------------------------------"
echo "--------------------- WARNING -----------------------"
echo "-------------------------------------------------------"
prompt "Are you following the recovery process?"
fi
## Offer to stop docker services
local services_stopped="false"
if services_up; then
@ -241,7 +260,6 @@ function __main__() {
read_seed_image_version
read_image_version
check_retracted_version
handle_rc_rebranding
handle_image_upgrade

View file

@ -1 +1 @@
4.2.4
5.0.3

View file

@ -20,6 +20,10 @@ function read_image_version() {
}
function check_retracted_version() {
if [[ "${OVERLEAF_SKIP_RETRACTION_CHECK:-null}" == "$IMAGE_VERSION" ]]; then
return
fi
local version="$IMAGE_VERSION_MAJOR.$IMAGE_VERSION_MINOR.$IMAGE_VERSION_PATCH"
if [[ "$version" == "5.0.1" ]]; then
echo "-------------------------------------------------------"
@ -27,11 +31,10 @@ function check_retracted_version() {
echo "-------------------------------------------------------"
echo " You are currently using a retracted version, $version."
echo ""
echo " We have identified a critical bug in a database migration that causes data loss."
echo " Please defer upgrading to release 5.0.1 until further notice on the mailing list."
echo " Please keep any backups that were taken prior to upgrading to version 5.0.1."
echo " Updates will be posted in the release notes:"
echo " https://github.com/overleaf/overleaf/wiki/Release-Notes-5.x.x#server-pro-501-retracted"
echo " We have identified a critical bug in a database migration that causes data loss in the history system."
echo " A new release is available with a fix and an automated recovery process."
echo " Please follow the steps of the recovery process in the following wiki page:"
echo " https://github.com/overleaf/overleaf/wiki/Doc-version-recovery"
echo "-------------------------------------------------------"
echo "--------------------- WARNING -----------------------"
echo "-------------------------------------------------------"