Skip to content

Commit 37026bf

Browse files
committed
Merge branch 'hotfix/26.8.2'
2 parents 9bff958 + e7defb2 commit 37026bf

3 files changed

Lines changed: 7 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
We follow the CalVer (https://calver.org/) versioning scheme: YY.MINOR.MICRO.
44

5+
26.8.2 (2026-05-06)
6+
===================
7+
8+
- Hotfix to avoid 502 on creating preprint version from rejected version
9+
510
26.8.1 (2026-04-30)
611
===================
712

osf/models/preprint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def check_unfinished_or_unpublished_version(self):
407407
"""Check and return the "initiated but unfinished version" and "unfinished or unpublished version".
408408
"""
409409
last_not_rejected_version = self.get_last_not_rejected_version()
410-
if last_not_rejected_version.date_published:
410+
if not last_not_rejected_version or last_not_rejected_version.date_published:
411411
return None, None
412412
if last_not_rejected_version.machine_state == 'initial':
413413
return last_not_rejected_version, None

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "OSF",
3-
"version": "26.8.1",
3+
"version": "26.8.2",
44
"description": "Facilitating Open Science",
55
"repository": "https://github.com/CenterForOpenScience/osf.io",
66
"author": "Center for Open Science",

0 commit comments

Comments
 (0)