Skip to content

[BUGFIX] Do not resolve TypoScriptConfiguration for deleted page in WS#4603

Open
amirarends wants to merge 1 commit intoTYPO3-Solr:mainfrom
amirarends:fix/swap-deleted-page
Open

[BUGFIX] Do not resolve TypoScriptConfiguration for deleted page in WS#4603
amirarends wants to merge 1 commit intoTYPO3-Solr:mainfrom
amirarends:fix/swap-deleted-page

Conversation

@amirarends
Copy link
Copy Markdown
Contributor

What this pr does

When publishing a workspace that contains a deleted page, ConfigurationManager::getTypoScriptConfiguration() was called with the $contextPageId of the deleted page. Without checking whether the page still exists, the code immediately called SiteFinder::getSiteByPageId(), which throws an exception because the live record is gone. This interrupted theentire workspace publish process.

A unit test covering the deleted-page scenario is included.

How to test

  1. Switch to a workspace in the TYPO3 backend.
  2. Delete a live page from within the workspace.
  3. Publish the entire workspace.
  4. Verify the publish completes without exception and all remaining workspace records are published.

Fixes: #4602

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Publishing workspace with deleted page throws exception and interrupts publish process

1 participant