Skip to content
Snippets Groups Projects
  1. Sep 21, 2021
    • Christian Kuhn's avatar
      [BUGFIX] Avoid dangling MM relations on workspace publish · e9069128
      Christian Kuhn authored
      When publishing workspace records with connected
      "true" MM relations (uid_local / uid_foreign columns
      and no TCA for that table), DataHandler triggers bugs:
      
      * It updates uid_local or uid_foreign rows to negative
        uids during the process as intermediate DB state.
      * It leaves "dangling" MM rows of the workspace record
        that has been pushed live.
      
      The involved code is relatively well encapsulated,
      it only kicks in for this "publish MM relations"
      scenario, the impact of this patch is limited to
      this area.
      
      The patch rewrites MM workspace publish handling:
      
      * Avoid parking state in a DataHandler class property
        only used in this scenario.
      * Avoid moving a list of stateful RelationHandler
        instances around and dynamically calling methods
        on those instances.
      * Avoid recursive flex form MM publish handling with
        indirect callback methods that change class state.
      * Obsolete a RelationHandler method used only in
        this scenario.
      * Reduce number of queries.
      
      The result is a simplified, better encapsulated and well
      commented solution. On a testing side, the patch brings
      a scenario to verify flex form MM relation handling.
      An according styleguide example is pending, too.
      
      This patch allows us to change auto created MM table
      definitions to unsigned uid_local and uid_foreign columns,
      which is of course the right way to go.
      
      Change-Id: I0d24f31cbd356f19937c2f8c18d432424e127b97
      Resolves: #95275
      Resolves: #81718
      Releases: master
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71097
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarStefan Bürk <stefan@buerk.tech>
      Tested-by: default avatarBenni Mack <benni@typo3.org>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Reviewed-by: default avatarStefan Bürk <stefan@buerk.tech>
      Reviewed-by: default avatarBenni Mack <benni@typo3.org>
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      e9069128
    • Stefan Bürk's avatar
      [TASK] Enable postgres test after fixing setUpFrontendRootPage · ae4f2b7a
      Stefan Bürk authored
      A functional test has been disabled for postgres execution due
      duplicate key issues using `setupFrontendRootPage` in functional
      testcases.
      
      As setUpFrontendRootPage has been fixed in the testing framework,
      this test is enabled again.
      
      Commands to test:
      
      $ Build/Scripts/runTests.sh -s functional -p 7.4 -d postgres -k 9.6 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      $ Build/Scripts/runTests.sh -s functional -p 7.4 -d postgres -k 10 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      $ Build/Scripts/runTests.sh -s functional -p 7.4 -d postgres -k 11 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      $ Build/Scripts/runTests.sh -s functional -p 7.4 -d postgres -k 12 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      $ Build/Scripts/runTests.sh -s functional -p 7.4 -d postgres -k 13 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      $ Build/Scripts/runTests.sh -s functional -p 8.0 -d postgres -k 9.6 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      $ Build/Scripts/runTests.sh -s functional -p 8.0 -d postgres -k 10 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      $ Build/Scripts/runTests.sh -s functional -p 8.0 -d postgres -k 11 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      $ Build/Scripts/runTests.sh -s functional -p 8.0 -d postgres -k 12 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      $ Build/Scripts/runTests.sh -s functional -p 8.0 -d postgres -k 13 \
      typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php
      
      Resolves: #95114
      Releases: master
      Change-Id: I85d74f05e7ef347cd217843c0384d460194fac24
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/70897
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Tested-by: default avatarBenni Mack <benni@typo3.org>
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Reviewed-by: default avatarBenni Mack <benni@typo3.org>
      ae4f2b7a
    • Oliver Hader's avatar
      [TASK] Upgrade to typo3/html-sanitizer v2.0.11 · a57d8b50
      Oliver Hader authored
      https://github.com/TYPO3/html-sanitizer/releases/tag/v2.0.11
      
      composer req typo3/html-sanitizer:^2.0.11; \
      composer req typo3/html-sanitizer:^2.0.11 \
        -d typo3/sysext/core --no-update
      
      Resolves: #95289
      Releases: master, 10.4, 9.5
      Change-Id: I3a294c788f25ca5a1068f9eb79c924f65e21244d
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/71152
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarOliver Hader <oliver.hader@typo3.org>
      Reviewed-by: default avatarOliver Hader <oliver.hader@typo3.org>
      a57d8b50
  2. Sep 20, 2021
  3. Sep 19, 2021
  4. Sep 17, 2021
  5. Sep 16, 2021