From 884a24a1127335692907361d61ab45cd04e590f0 Mon Sep 17 00:00:00 2001 From: mkovalua Date: Mon, 4 May 2026 16:54:39 +0300 Subject: [PATCH 1/2] avoid 502 on creating preprint version from rejected version --- osf/models/preprint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osf/models/preprint.py b/osf/models/preprint.py index f763d8d23cf..fe1e1ae8e59 100644 --- a/osf/models/preprint.py +++ b/osf/models/preprint.py @@ -407,7 +407,7 @@ def check_unfinished_or_unpublished_version(self): """Check and return the "initiated but unfinished version" and "unfinished or unpublished version". """ last_not_rejected_version = self.get_last_not_rejected_version() - if last_not_rejected_version.date_published: + if not last_not_rejected_version or last_not_rejected_version.date_published: return None, None if last_not_rejected_version.machine_state == 'initial': return last_not_rejected_version, None From e7defb2ce1e18030668cf09164a7484579a57f8f Mon Sep 17 00:00:00 2001 From: Yuhuai Liu Date: Wed, 6 May 2026 15:50:34 -0400 Subject: [PATCH 2/2] Bump version no. Add CHANGELOG --- CHANGELOG | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG b/CHANGELOG index 6e95692d20e..0a630b7871f 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,6 +2,11 @@ We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO. +26.8.2 (2026-05-06) +=================== + +- Hotfix to avoid 502 on creating preprint version from rejected version + 26.8.1 (2026-04-30) =================== diff --git a/package.json b/package.json index 2ac9cd620ac..9581c715d1a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "OSF", - "version": "26.8.1", + "version": "26.8.2", "description": "Facilitating Open Science", "repository": "https://github.com/CenterForOpenScience/osf.io", "author": "Center for Open Science",