Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • typo3 typo3
  • Project information
    • Project information
    • Activity
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Insights
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • typo3typo3
  • typo3typo3
  • Repository
Switch branch/tag
  • typo3
  • typo3
  • sysext
  • frontend
  • Classes
  • ContentObject
  • ContentObjectRenderer.php
Find file BlameHistoryPermalink
  • Stefan Bürk's avatar
    [BUGFIX] Check for TSFE before use in ContentObjectRenderer · a341142b
    Stefan Bürk authored Oct 12, 2021 and Benjamin Franzke's avatar Benjamin Franzke committed Oct 13, 2021
    TypoScriptFrontendController has not been injected to a
    ContentObjectRenderer instance in a test, thus failing
    with disabled error handler. TypoScriptFrontendController
    dependency is based on needed access to initialized
    TypoScript configurations.
    
    This patch checks if tsfe is available before accessing
    properties and methods in ContentObjectRenderer to
    mitigate this warning instead of mocking an uninitialized
    TSFE instance in the test.
    
    Resolves: #95610
    Releases: master
    Change-Id: Id3e8c2b7029ee0932da242c47ffb1a3837897bd8
    Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71600
    
    
    Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
    Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    Tested-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
    Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
    Reviewed-by: Benjamin Franzke's avatarBenjamin Franzke <bfr@qbus.de>
    a341142b