Skip to content
Snippets Groups Projects
  1. Apr 13, 2014
    • Helmut Hummel's avatar
      [TASK] Mitigate erroring builds · 7ea10933
      Helmut Hummel authored
      Builds error regularily because our scripts
      need to output something at least every 10 minutes.
      
      This might not happen as the complete functional test
      suite takes longer than that.
      
      To avoid these issues, only execute unit tests and lint
      in parallel and each functional test suite.
      
      By doing so, each functional test suite can take
      up to 10 minutes which is for now a limit we do not
      reach.
      
      Releases: 6.2
      Change-Id: I74cac706748cc03388f814f09e799a8705a26bca
      Reviewed-on: https://review.typo3.org/29133
      Reviewed-by: Markus Klein
      Reviewed-by: Stefan Neufeind
      Reviewed-by: Helmut Hummel
      Tested-by: Helmut Hummel
      7ea10933
    • Christian Kuhn's avatar
      [BUGFIX] Tests: Namespaced usage of vfsStream · 4ecf9038
      Christian Kuhn authored
      vfsStream was namespaced a while ago. While ext:phpunit still has
      a Migration to map non namespaced classes to the namespaced ones,
      they should not be used any longer.
      
      Change-Id: I44dcda6707cf6410125f01552c995a27113b3cc2
      Resolves: #57872
      Related: #51436
      Releases: 6.2
      Reviewed-on: https://review.typo3.org/29440
      Reviewed-by: Oliver Klee
      Reviewed-by: Anja Leichsenring
      Tested-by: Anja Leichsenring
      4ecf9038
    • Marc Bastian Heinrichs's avatar
      [BUGFIX] Make Extbase Cli\RequestBuilder a Singleton · c100e5e4
      Marc Bastian Heinrichs authored
      Like the Web\RequestBuilder the Cli\RequestBuilder is a service
      object for the RequestHandler. It gets injected and has no
      internal state, thus it should be a Singleton.
      
      Resolves: #57591
      Releases: 6.2
      Change-Id: I959fcfdbc4182cd86cd38d438a0ff7f0de1845f1
      Reviewed-on: https://review.typo3.org/29112
      Reviewed-by: Wouter Wolters
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      c100e5e4
    • Pascal Dürsteler's avatar
      [BUGFIX] Admin users should ignore user mounts · f262ddef
      Pascal Dürsteler authored
      Admin user records still process earlier defined mounts which leads
      to a cluttered page tree or filelist tree, respectively.
      
      Resolves: #57587
      Releases: 6.2
      Change-Id: I9cae20da90f4f796db8a8831a09e5f4d029ae249
      Reviewed-on: https://review.typo3.org/29110
      Reviewed-by: Dmitry Dulepov
      Tested-by: Dmitry Dulepov
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      f262ddef
    • Roland Waldner's avatar
      [CLEANUP] Remove unnecessary @todo annotations · 6429de30
      Roland Waldner authored
      Removes "Define visibility" @todo annotations in
      phpdoc blocks of public variables and methods which
      are used in index_ts.php and have therefore be public.
      
      Resolves: #57865
      Releases: 6.2
      Change-Id: Ide7190fcabb802bf5f4706c916f2e3ac0ee53be7
      Reviewed-on: https://review.typo3.org/29434
      Reviewed-by: Oliver Klee
      Reviewed-by: Stefan Neufeind
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      6429de30
    • Markus Klein's avatar
      [CLEANUP] ImportExportController code style · a2e42805
      Markus Klein authored
      Introduce getters for global objects
      
      Resolves: #57855
      Releases: 6.2
      Change-Id: I08d37c8934a4b89ef92d31d96073c293a89f04e1
      Reviewed-on: https://review.typo3.org/29411
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      Reviewed-by: Oliver Klee
      Reviewed-by: Stefan Neufeind
      Reviewed-by: Anja Leichsenring
      Tested-by: Anja Leichsenring
      a2e42805
  2. Apr 12, 2014
    • Kevin Häfeli's avatar
      [BUGFIX] Properly detect HHVM with fastcgi · 70eccdea
      Kevin Häfeli authored
      Extend the PHP_SAPI check with "srv" to match the interface between
      the webserver and PHP also for Facebook's HHVM and set the paths
      correctly for HHVM hostings.
      
      Resolves: #57785
      Releases: 6.2
      Change-Id: Ie9e302f9ce606158f5e70af1930eda778a8a5a34
      Reviewed-on: https://review.typo3.org/29335
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      Reviewed-by: Stefan Neufeind
      Tested-by: Stefan Neufeind
      70eccdea
    • Roland Waldner's avatar
      [CLEANUP] Improve comments in TypoScriptFrontendController · 2c185663
      Roland Waldner authored
      Resolves: #57814
      Releases: 6.2
      Change-Id: I0f92a0695f5897eb0311f68bfd21ebb40d9303d8
      Reviewed-on: https://review.typo3.org/29355
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      Reviewed-by: Oliver Klee
      Reviewed-by: Helmut Hummel
      Tested-by: Helmut Hummel
      2c185663
    • Nicole Cordes's avatar
      [BUGFIX] Improve database scheme updater · 039467b8
      Nicole Cordes authored
      This patch improves the update process as it removes the hard stop after
      an SQL error occurred. All queries should get executed and errors should
      be reported at the end. Sometimes it gets necessary that the updater is
      called more that once - a notice to the user is added.
      
      Besides the index length is reduced by 1 to ensure the index is set
      with limitation in the database and all fields can be updated in the
      second step.
      
      Resolves: #57421
      Releases: 6.2
      Change-Id: I2f830a8a62b8dff3fbe949d40de8ddc30f3dfb9a
      Reviewed-on: https://review.typo3.org/28945
      Reviewed-by: Jigal van Hemert
      Tested-by: Jigal van Hemert
      Reviewed-by: Dmitry Dulepov
      Tested-by: Dmitry Dulepov
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      039467b8
    • Roland Waldner's avatar
      [TASK] Improve comments and phpdoc blocks in PageRepository · 4a4bdbc0
      Roland Waldner authored
      * fix comment line lengths to improve readability and meet the CGL
      * add some additional line breaks in comments to improve readability
      * add missing @throws annotations in phpdoc blocks
      * add missing @var annotations in phpdoc blocks
      
      Resolves: #57859
      Releases: 6.2
      Change-Id: I311c6c858c8810b4a8906918378629aef5e1ebc8
      Reviewed-on: https://review.typo3.org/29425
      Reviewed-by: Oliver Klee
      Reviewed-by: Christian Kuhn
      Tested-by: Christian Kuhn
      4a4bdbc0
    • 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
  3. Apr 07, 2014
  4. 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
  5. Apr 05, 2014
  6. 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
  7. 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
  8. Apr 02, 2014
  9. 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