Skip to content
Snippets Groups Projects
  1. Aug 02, 2023
    • Helmut Hummel's avatar
      [BUGFIX] Avoid circular reference of COR and ServerRequest · 7227aea5
      Helmut Hummel authored
      While the initial idea to store the current ContentObjectRender
      (cObj) instance in a request attribute, to pass it along to code
      that requires both, the request and a cObj, is solid, we missed
      that cObj itself does not require to hold the request as attribute.
      
      The patch changes this: The request attribute is only set
      for ContentObjects, as these are actually responsible for
      rendering and eventually evaluating a request or the cObj
      instance.
      
      This makes sure, that an instance of cObj is available for
      Extbase plugins as well as for Fluid view helpers, which can
      access the request via RenderingContext.
      
      By changing the concept slightly, all places that previously added
      the cObj to the request can be removed in favor of doing so only
      in AbstractContentObject and ContentObjectRenderer::callUserFunction.
      The latter is at least required for TypoScript using the old way of
      calling Extbase plugins with USER and it's userFunc property.
      
      The circular reference is now removed, by not passing the request
      that contains the cObj attribute to the cObj itself. This means:
      
      * When a cObj is available, one can obtain the request using its getter
      * Such request objects, do NOT contain an attribute containing the cObj
      * The cObj request attribute can now be obtained in all content objects
        (such as EXTBASEPLUGIN or FLUIDTEMPLATE) and user functions, that are
        called from be ContentObjectRenderer.
      
      Releases: main, 12.4
      Resolves: #101170
      Resolves: #100872
      Related: #100623
      Change-Id: I6acb1a92c8b02f1be2f3a396fe9d9465d6482033
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/79521
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Reviewed-by: default avatarBenni Mack <benni@typo3.org>
      Tested-by: default avatarBenni Mack <benni@typo3.org>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      7227aea5
    • linawolf's avatar
      [TASK] Correct indentation of json files · d3abcfbd
      linawolf authored
      They should conform to the settings in `.editorconfig`.
      When your editor uses the `.editorconfig` file,
      these files become very hard to edit.
      
      I would backport this to make backports easier.
      
      Resolves: #101527
      Releases: main, 12.4
      Change-Id: I41e1782b46bbbf327106089f39dc28d2ca358761
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80296
      
      
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      d3abcfbd
    • Benjamin Franzke's avatar
      [TASK] Update to lit 2.7.6 · 8765b36b
      Benjamin Franzke authored
      npm update lit lit-html @lit/reactive-element lit-element
      grunt build
      
      Releases: main, 12.4
      Resolves: #101496
      Change-Id: Ic8de6a200a70ca2721719b531dde2a146692b317
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80225
      
      
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
      Reviewed-by: default avatarAnja Leichsenring <aleichsenring@ab-softlab.de>
      8765b36b
    • Christian Kuhn's avatar
      [TASK] Fix MM TCA of blog_example · a2e72361
      Christian Kuhn authored
      Extension blog_example is used in various extbase
      tests. It defines invalid relations from tags
      table over MM to post and persons.
      
      The patch fixes the TCA - those relations now
      work in BE as well, when the fixture blog_example
      is activated.
      
      Essentially all functional tests that works with
      this extension break with the fixed TCA now. The
      major part of the patch is to disentangle the .csv
      import and export files to make them independent
      from each other per test-case, and to fix the
      imported and asserted db state along the way.
      
      Resolves: #101528
      Releases: main, 12.4
      Change-Id: I4fb7d6ac82962f8ef7b630b261d543f4ff626bde
      Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/80295
      
      
      Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      Tested-by: default avatarcore-ci <typo3@b13.com>
      Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
      a2e72361
    • Benjamin Franzke's avatar
      [TASK] Map relative lit-imports to bare module specifiers · b46ab5c7
      Benjamin Franzke authored
      Imports via bare module specifiers (such that do not start with / or .)
      are cache busted by their URL mapping in importmap — relative imports
      (inside lit) are not by default. This is why we used version-suffixed
      lit package folders in #96511 (pretty much like unpkg.com does).
      
      This got removed with #100245, as required updates for configuration
      files have not been applied automatically and the reason for the
      version suffix was undocumented and thus unclear.
      While we could fix those issues and add autoupdate support for
      configuration files, it is now decided to remap all relative imports,
      as this logic is present in our build setup anyway and eases future
      updates by creating smaller diffsets (not every file has to be
      renamed, only changed ones are updated).
      
      Note that technically a new helper grunt task es-module-lexer-init
      is added, which is required to await the asynchronous es-module-lexer
      parser initialization (written in web assembly, and the...
      b46ab5c7
  2. Jul 31, 2023
  3. Jul 30, 2023
  4. Jul 29, 2023
  5. Jul 28, 2023
  6. Jul 27, 2023