Bug #86574

PageRepository misses check for $versioningWorkspaceId > 0

Added by Frank Naegler 12 months ago. Updated 4 months ago.

Must have
Target version:
Start date:
Due date:
% Done:


TYPO3 Version:
PHP Version:
Is Regression:
Sprint Focus:


With #85078 some checks in frontend/Classes/Page/PageRepository has been changed from versioningPreview (bool) to versioningWorkspaceId (int).
The old bool value was set with a check versioningWorkspaceId > 0 which is now missing and break if backend user has set workspace to -99 which is the default.

Related issues

Related to TYPO3 Core - Task #85078: Deprecate PageRepository->versioningPreview Closed 2018-05-25
Related to TYPO3 Core - Bug #86605: Error when trying to display categories through a backend module Closed 2018-10-09

Associated revisions

Revision 528328dc (diff)
Added by Markus Klein 11 months ago

[BUGFIX] Fix version preview checks in PageRepository

This patch corrects all conditions for version preview in the
PageRepository class, which have been converted incorrectly
with #85078.

Resolves: #86574
Releases: master
Change-Id: I9a77f2de7c6c8abab9e5b3a1012c1582ed863fdd
Reviewed-on: https://review.typo3.org/58577
Tested-by: TYPO3com <>
Tested-by: Frank Naegler <>
Reviewed-by: Benni Mack <>
Reviewed-by: Frank Naegler <>
Reviewed-by: Tymoteusz Motylewski <>
Tested-by: Tymoteusz Motylewski <>


#1 Updated by Frank Naegler 12 months ago

  • Related to Task #85078: Deprecate PageRepository->versioningPreview added

#2 Updated by Gerrit Code Review 12 months ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/58577

#3 Updated by Tymoteusz Motylewski 11 months ago

Hi Frank,
Can you share some testing scenarios?

#4 Updated by Frank Naegler 11 months ago

use an admin user in the backend and you run into to problem
for testing you can use the v9-cleanup branch of the blog extension: https://bitbucket.typo3.com/projects/EXT/repos/blog/browse?at=refs%2Fheads%2Ftask%2Fv9cleanup
open the BE module breaks without the patch provided by Markus.

#5 Updated by Markus Klein 11 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#6 Updated by Georg Ringer 11 months ago

  • Related to Bug #86605: Error when trying to display categories through a backend module added

#7 Updated by Benni Mack 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF