Skip to content
Snippets Groups Projects
  1. Apr 12, 2014
    • Roland Waldner's avatar
      [CLEANUP] Fix length of comments to meet CGL · 8fce1f50
      Roland Waldner authored
      Resolves: #57819
      Releases: 6.2
      Change-Id: I24a860dda49504e8745fe195f74c519a73a22991
      Reviewed-on: https://review.typo3.org/29376
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      Reviewed-by: Markus Klein
      Tested-by: Markus Klein
      8fce1f50
    • Steffen Müller's avatar
      [CLEANUP] Error handling classes · 7df75d29
      Steffen Müller authored
      * fixes CGL issues in annotations,
      * fixes wrong annotations,
      * introduces use statements
      
      Resolves: #57661
      Releases: 6.2
      Change-Id: I41363888c523aedd13a795572d8c66430c0f34e3
      Reviewed-on: https://review.typo3.org/29178
      Reviewed-by: Markus Klein
      Tested-by: Markus Klein
      Reviewed-by: Oliver Klee
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      7df75d29
    • Marc Bastian Heinrichs's avatar
      [BUGFIX] Follow up foreign_match_fields not fully supported · 2ae299bd
      Marc Bastian Heinrichs authored
      On detaching related objects the foreign_match_fields needs
      to be cleared.
      
      Resolves: #47694
      Relates: #45337
      Releases: 6.2, 6.1
      Change-Id: I6d74201afc437a2b0e2a73022bc71ed0cd1dd2d4
      Reviewed-on: https://review.typo3.org/26694
      Reviewed-by: Wouter Wolters
      Reviewed-by: Anja Leichsenring
      Tested-by: Anja Leichsenring
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      2ae299bd
    • Benjamin Mack's avatar
      [CLEANUP] Remove deprecated filemount functions in BE_USER · c027ce8c
      Benjamin Mack authored
      With the introduction of the file abstraction layer,
      the filemount functionality was deprecated in 6.0
      but wasn't removed.
      
      However, the usage of addFileMount() in  rtehtmlarea and
      EXT:recordlist is now removed, since the added filemounts
      are never read anywhere, so this is only dead code.
      
      The functionality needs to be re-implemented.
      
      Releases: 6.2
      Resolves: #56772
      Change-Id: I20ec66f46f15a785f5014cb625dabef711fae0a1
      Reviewed-on: https://review.typo3.org/28265
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      Reviewed-by: Oliver Klee
      Reviewed-by: Anja Leichsenring
      Tested-by: Anja Leichsenring
      c027ce8c
    • Markus Klein's avatar
      [CLEANUP] Code style of authentication classes · dd036421
      Markus Klein authored
      Clean up the source code of the authentication classes.
      This patch does not change any functionality.
      It serves as a basis for further improvements.
      
      Resolves: #57788
      Releases: 6.2
      Change-Id: I555456c28da6697398a15ad9718a162f98aef61a
      Reviewed-on: https://review.typo3.org/29322
      Reviewed-by: Anja Leichsenring
      Tested-by: Anja Leichsenring
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      dd036421
    • Peter Niederlag's avatar
      [BUGFIX] Don't run processIncludes more than once · cbbc7853
      Peter Niederlag authored
      processIncludes() is run "mandatory" from the stack ->start()
      ->runThroughTemplates() and doing all the work that needs to be done.
      
      Resolves: #54903
      Releases: 6.2
      Change-Id: Id2be1a25aa23a05849297315c74358a9ef4ff9bb
      Reviewed-on: https://review.typo3.org/26748
      Reviewed-by: Alexander Opitz
      Tested-by: Alexander Opitz
      Reviewed-by: Oliver Klee
      Reviewed-by: Markus Klein
      Tested-by: Markus Klein
      cbbc7853
    • Wouter Wolters's avatar
      [BUGFIX] sql_free_result does not work with all allowed types · 367a65f3
      Wouter Wolters authored
      sql_free_result throws a fatal error when called with a
      boolean. According to the method description boolean is an
      allowed type. Check if $res is an object.
      
      Change-Id: I6f7cdbb42c07869a320510e9b0b779f2b7cf6b70
      Resolves: #50378
      Releases: 6.2, 6.1
      Reviewed-on: https://review.typo3.org/22594
      Reviewed-by: Dan Untenzu
      Tested-by: Dan Untenzu
      Reviewed-by: Christian Kuhn
      Reviewed-by: Stefan Neufeind
      Reviewed-by: Markus Klein
      Tested-by: Markus Klein
      367a65f3
  2. Apr 07, 2014
  3. Apr 06, 2014
    • Helmut Hummel's avatar
      [BUGFIX] Fix incomplete mocking in ExtensionManagementUtilityTest · 18066605
      Helmut Hummel authored
      Some tests rely on actual extensions TCA being present.
      Mock the method that reads the TCA files.
      
      Resolves: #57700
      Related: #57487
      Releases: 6.2
      Change-Id: I66cce578983fafc1bfe5a29cc0387b2e3d749873
      Reviewed-on: https://review.typo3.org/29221
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      Reviewed-by: Helmut Hummel
      Tested-by: Helmut Hummel
      18066605
    • Georg Ringer's avatar
      [TASK] Improve deprecation msg of GeneralUtility method · ae220dcd
      Georg Ringer authored
      The deprecation message of GeneralUtility::array_merge_recursive_overrule
      should show more clearly that the code can't be just updated by
      changing class + method name as there is no return value anymore.
      
      This is new in the core and is a quite big risk!
      
      Resolves: #57499
      Releases: 6.2
      Change-Id: I109a0c3edbc241708e7b362a249b6d0e4a79978e
      Reviewed-on: https://review.typo3.org/29035
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      Reviewed-by: Helmut Hummel
      Tested-by: Helmut Hummel
      ae220dcd
    • Helmut Hummel's avatar
      [TASK] Activate all packages in unit tests · 5c7a3976
      Helmut Hummel authored
      Introduce a new package manager class for unit tests
      that does not read the PackageState.php file any more
      but scans for packages and activates them,
      so that the class loader can find the classes of all
      extensions even if the according extension is not active in
      the current TYPO3 installation.
      
      Since the unit test bootstrap does not read other
      extension files (ext_localconf.php, etc.) any more,
      we can be sure that this does not introduce any
      further side effects.
      
      Since the PackageStates.php file will then be obsolete,
      it will be removed from the travis integration repository.
      
      Resolves: #57487
      Releases: 6.2
      Change-Id: Id0cd50db68fd94a31a996496fd5c54049ca94e78
      Reviewed-on: https://review.typo3.org/29036
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      Reviewed-by: Helmut Hummel
      Tested-by: Helmut Hummel
      5c7a3976
  4. Apr 05, 2014
  5. Apr 04, 2014
    • Philipp Bergsmann's avatar
      [BUGFIX] PHP warning due to missing preg_quote · eaad1327
      Philipp Bergsmann authored
      Fixing a missing preg_quote() call in ExtensionManagementUtility,
      which causes a PHP warning and a failing preg_match().
      
      Resolves: #55662
      Releases: 6.2
      Change-Id: Iaf1e21546741ae282016f433bf83f7e5663e3c7b
      Reviewed-on: https://review.typo3.org/29145
      Reviewed-by: Markus Klein
      Tested-by: Markus Klein
      Reviewed-by: Pascal Dürsteler
      Tested-by: Pascal Dürsteler
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      eaad1327
    • Nicole Cordes's avatar
      [SECURITY] Prevent XSS in scheduler form · 0a33e1dd
      Nicole Cordes authored
      The class name is submitted in a hidden form and is susceptible to XSS.
      The patch introduced htmlspecialchars to prevent XSS possibility.
      
      Resolves: #57603
      Releases: 6.2, 6.1, 6.0, 4.7, 4.5
      Change-Id: I4979e66f28a581e168c56d91327a1bbe2672448d
      Reviewed-on: https://review.typo3.org/29121
      Reviewed-by: Markus Klein
      Tested-by: Markus Klein
      Reviewed-by: Helmut Hummel
      Tested-by: Helmut Hummel
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      0a33e1dd
    • Stefan Neufeind's avatar
      [BUGFIX] Correctly apply Extbase validator options and add tests · 3c0c6a0b
      Stefan Neufeind authored
      * Check supplied options
      * Apply default-values of validator if needed
      * Check for required options
      * Provide options via constructor instead of via setOptions()
        (which is deprecated)
      * Add tests for AbstractValidator and AbstractCompositeValidator
      
      Resolves: #52208
      Resolves: #57164
      Releases: 6.2, 6.1
      Change-Id: I589a30bea74144eed51948ecad3143ab145c958f
      Reviewed-on: https://review.typo3.org/28938
      Reviewed-by: Marc Bastian Heinrichs
      Tested-by: Marc Bastian Heinrichs
      Reviewed-by: Pascal Dürsteler
      Tested-by: Pascal Dürsteler
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      3c0c6a0b
  6. Apr 03, 2014
    • Helmut Hummel's avatar
      [BUGFIX] Fetch RSA public key by Ajax before login · b5798938
      Helmut Hummel authored
      Currently public and private RSA keys are generated when rendering the
      login form. This has several drawbacks.
      
      It can lead to strange and hard to debug errors when a second request is
      done in the same browser, which invalidates the key for the current
      login form (#38660), opening a second login in a different tab
      invalidates the key on the first tab and finally when the login form
      stays open until the PHP session expires (parts of the private key are
      stored in the PHP session), the key is also invalid for the form.
      
      Solution is to create a new key pair on the fly when a user clicks the
      submit button and fetch the public key via Ajax.
      
      This change implements this for the backend login. Frontend login should
      be tackled in a different patch.
      
      Resolves: #37421
      Releases: 6.2
      Change-Id: I0cd9a049d892ee872436347153a0e1114b17585d
      Reviewed-on: https://review.typo3.org/28893
      Reviewed-by: Nicole Cordes
      Tested-by: Nicole Cordes
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      b5798938
    • Stefan Froemken's avatar
      [BUGFIX] Do not reset Page Renderer on partial rendering · c67e8ebb
      Stefan Froemken authored
      Currently the Page Renderer is reset when calling
      the render() method, even if only one part (header
      or footer) is rendered, which causes a second call
      to fail, when rendering another part.
      This happens e.g in DocumentTemplate.php where
      the render() method is called two times. Because of
      the reset, the second call starts pageRenderer with
      empty properties.
      
      Solution is to only call reset if everything is rendered.
      
      Resolves: #57294
      Releases: 6.2
      Change-Id: Ib4800e37ba0760617de71f9ca1181d1664463e33
      Reviewed-on: https://review.typo3.org/28770
      Reviewed-by: Nicole Cordes
      Tested-by: Nicole Cordes
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      c67e8ebb
  7. Apr 02, 2014
  8. Apr 01, 2014
    • Alexander Stehlik's avatar
      [BUGFIX] Use last result line of identify command · 0a85c231
      Alexander Stehlik authored
      In GraphicalFunctions::imageMagickIdentify() the last line returned by
      the executed command will be used as result.
      
      This prevents the system from using possible error messages printed
      before the actual result for further processing.
      
      Resolves: #56574
      Releases: 6.2
      Change-Id: Ic179e0b68c7fa9a4f0f4b2342cb381c54fb740b9
      Reviewed-on: https://review.typo3.org/28076
      Reviewed-by: Xavier Perseguers
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      0a85c231
    • Helmut Hummel's avatar
      [BUGFIX] Fix relative path calculations in EM · 64d08719
      Helmut Hummel authored
      The extension manager often uses the extension
      relative path to calculate paths to different files,
      but does not take into account that this path
      already has a trailing slash.
      
      Remove excess slashes to avoid double slashes in paths.
      
      Resolves: #57327
      Related: #57312
      Releases: 6.2
      Change-Id: I60519d4d7075a615d0505bfc4cbb2b6ee1b0c222
      Reviewed-on: https://review.typo3.org/28825
      Reviewed-by: Philipp Gampe
      Tested-by: Philipp Gampe
      Reviewed-by: Wouter Wolters
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      64d08719
    • Marc Bastian Heinrichs's avatar
      [BUGFIX] Make Typo3DbQueryParser a Singleton · fcf3a2f7
      Marc Bastian Heinrichs authored
      Typo3DbQueryParser gets injected in Typo3DbBackend, thus
      it has to be a Singleton.
      
      Resolves: #57338
      Releases: 6.2
      Change-Id: I5b845ef280d23b6893d308bc9013ef965637a1ef
      Reviewed-on: https://review.typo3.org/28843
      Reviewed-by: Helmut Hummel
      Tested-by: Helmut Hummel
      fcf3a2f7
    • Marc Bastian Heinrichs's avatar
      [BUGFIX] Make Extbase EnvironmentService a Singleton · e3420ae3
      Marc Bastian Heinrichs authored
      EnvironmentService is a service and gets injected in different
      classes, thus it has to be a Singleton.
      
      Resolves: #57518
      Releases: 6.2, 6.1
      Change-Id: Ia8a3b8882be27c0f45569af818964036f0a9b16d
      Reviewed-on: https://review.typo3.org/29042
      Reviewed-by: Helmut Hummel
      Tested-by: Helmut Hummel
      e3420ae3
    • Alexander Opitz's avatar
      [BUGFIX] Check if lock directory is writable · ae7f6bbd
      Alexander Opitz authored
      We should check if directory is writable. Else fopen in acquireLock
      would only fail with error after waiting time. Also we do not aspect
      write permission issue here.
      
      Resolves: #57463
      Releases: 6.2
      Change-Id: Ia767a2355aecf1e816d4c130b151443e50e1a311
      Reviewed-on: https://review.typo3.org/28988
      Reviewed-by: Markus Klein
      Tested-by: Markus Klein
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      ae7f6bbd
    • Nicole Cordes's avatar
      [BUGFIX] Backup of LocalConfiguration.php missing on update · 680c83ee
      Nicole Cordes authored
      If you update from a 6.x installation there should be a backup of the
      old, unmodified LocalConfiguration.php as it's getting changed during
      PackageStates.php extraction. This is prevented with commit e755bcd9
      as a check for the PackageStates.php file was introduced, which might
      not be available at this point during upgrade.
      
      Resolves: #57458
      Releases: 6.2
      Change-Id: Ic3634ab58e3e4112df5d8544cca9c42e8f1db91f
      Reviewed-on: https://review.typo3.org/28980
      Reviewed-by: Markus Klein
      Tested-by: Markus Klein
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      680c83ee
    • Helmut Hummel's avatar
      [BUGFIX] Remove the need of PackageStates.php in tests · 69421102
      Helmut Hummel authored
      Although there is code in the package manager tests
      to mock a PackageStates.php file, it does not work
      as the path to the file is hardcoded in the initialize
      action.
      
      Move the code for setting the path and creating
      the package factory to the constructor
      and move the mocking of the path before initializing
      in the test.
      
      Resolves: #57490
      Releases: 6.2
      Change-Id: I2ca29016de288017ec73ff36d0dbed1e2be0e67d
      Reviewed-on: https://review.typo3.org/29021
      Reviewed-by: Wouter Wolters
      Tested-by: Wouter Wolters
      Reviewed-by: Thomas Maroschik
      Reviewed-by: Stefan Neufeind
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      69421102
    • Reinhard Führicht's avatar
      [BUGFIX] Allow user defined locales to work with TSFE->sL() · 28c66c57
      Reinhard Führicht authored
      TYPO3 uses a list of "known" languages defined in
      TYPO3\CMS\Core\Localization\Locales.
      
      This list can be extended by the user, but these changes
      are not taken into account when using
      $GLOBALS['TSFE']->sL() to fetch the translation.
      
      Make TypoScriptFrontendController call the needed method
      "initialize()" to make it work.
      
      Resolves: #53973
      Releases: 6.2, 6.1
      Change-Id: I9fc80ba976bf796f272591ac741d8bf4e92cbeb3
      Reviewed-on: https://review.typo3.org/25685
      Reviewed-by: Wouter Wolters
      Reviewed-by: Georg Ringer
      Tested-by: Georg Ringer
      28c66c57
  9. Mar 31, 2014
  10. Mar 30, 2014
    • Georg Ringer's avatar
      [BUGFIX] Respect config.debug setting for displaying parsetime · cdf723e2
      Georg Ringer authored
      2 possible information snippets can be outputted using
      config.debug = 1 in TypoScript or [FE][debug]=1 in Install Tool.
      
      - Parsetime
      - Cached page generated time + expire date
      
      TypoScript should override the general setting of the Install Tool
      to make it possible to turn debugging of for specific PAGE objects.
      
      This is especially needed if using e.g JSON output is invalid
      having this information.
      
      The change uses the same check as in index_ts where it works perfectly
      fine.
      
      Change-Id: I1520896476d97286627ab7f3b232b733dd3c50f7
      Resolves: #57365
      Releases: 6.2
      Reviewed-on: https://review.typo3.org/28909
      Reviewed-by: Helmut Hummel
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      cdf723e2
    • Nicole Cordes's avatar
      [BUGFIX] Enable backend login for Internet Explorer 8 users · 45a91e62
      Nicole Cordes authored
      Due to some mystical IE8 behavior the global TYPO3 object gets reset
      if any "var" occurs in Javascript. It is not necessary if its called or
      not but it seems IE8 creates a new object. This patch adds the global
      initialization of the TYPO3 object by using window[] syntax.
      
      Resolves: #56988
      Releases: 6.2
      Change-Id: I5ce246790d1e3a1e388f106d085c96dae4e4304e
      Reviewed-on: https://review.typo3.org/28929
      Reviewed-by: Alexander Opitz
      Tested-by: Alexander Opitz
      Reviewed-by: Markus Klein
      Tested-by: Markus Klein
      45a91e62
  11. Mar 29, 2014
  12. Mar 28, 2014