Packages/TYPO3.CMS.git
6 years ago[BUGFIX] Support plugins in namespaced extensions
Aske Ertmann [Tue, 9 Oct 2012 13:16:21 +0000 (15:16 +0200)]
[BUGFIX] Support plugins in namespaced extensions

The function registerPlugin doesn't handle namespaced extension keys
differently than normal extension keys, leading to being unable to
read the configuration set in the configurePlugin function.
In the configurePlugin the vendor name is stripped from the extension name,
but the same is not done in registerPlugin. This leads to it being
impossible to select the plugin in the backend when inserting/editing a
plugin content element.

Change-Id: I5fda7631e59262c93ca4955eb262a824ed9e8231
Fixes: #41785
Releases: 6.0
Reviewed-on: http://review.typo3.org/15440
Reviewed-by: Aske Ertmann
Tested-by: Aske Ertmann
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
6 years ago[TASK] Use core interface for accessible objects
Helmut Hummel [Tue, 30 Oct 2012 08:45:17 +0000 (09:45 +0100)]
[TASK] Use core interface for accessible objects

Instead of using the interface present in the phpunit
extension, use the interface of the core which has
been introduced recently.

Change-Id: I1497ec824ea3c2baecc612644e703efefaf00f96
Resolves: #42468
Releases: 6.0
Reviewed-on: http://review.typo3.org/16030
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[TASK] Remove forceCharset references from LocalizationUtility
Ingo Pfennigstorf [Mon, 29 Oct 2012 14:46:37 +0000 (15:46 +0100)]
[TASK] Remove forceCharset references from LocalizationUtility

Since TYPO3 4.7 the forceCharset parameter in TYPO3_CONF_VARS['BE'] is
not needed anymore. This removes references to that setting from
LocalizationUtility.

Fixes: #42484
Releases: 6.0, 4.7

Change-Id: Ic0794865cf6def87abbcf4a8afcd845bfa2e2448
Reviewed-on: http://review.typo3.org/16011
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
6 years ago[BUGFIX] NotEmpty Validator does not work with arrays and objects
Ingo Pfennigstorf [Tue, 18 Sep 2012 16:08:55 +0000 (18:08 +0200)]
[BUGFIX] NotEmpty Validator does not work with arrays and objects

This patch resolves the problem that empty arrays are not correctly
validated when using the @validate NotEmpty annotation.

Change-Id: Ifd758b59b48a38a5148561aaed52b5932c61ef42
Fixes: #40683
Releases: 6.0, 4.7, 1.4, 1.3
Reviewed-on: http://review.typo3.org/14707
Reviewed-by: Stefan Neufeind
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
6 years ago[TASK] Add phpdoc-comments for variables
Nicole Cordes [Sat, 13 Oct 2012 16:58:47 +0000 (18:58 +0200)]
[TASK] Add phpdoc-comments for variables

Add phpdoc comments for variables for better code completion.

Change-Id: I6cc31bfb4101ee10fef3dd91195d2cf24346f397
Releases: 6.0
Fixes: #42468
Reviewed-on: http://review.typo3.org/15576
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
6 years ago[BUGFIX] Removed trash files and their references
Alexander Schnitzler [Sun, 28 Oct 2012 18:47:33 +0000 (19:47 +0100)]
[BUGFIX] Removed trash files and their references

During the automatic namespace convertion
something went wrong and generated empty
trash files. This patch removes them and
their references.

Releases: 6.0
Fixes: #42459
Change-Id: I651a7b291eedb8128b7b723cd06b7af9098f0e7b
Reviewed-on: http://review.typo3.org/15996
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
6 years ago[CLEANUP] Remove old SVN comments
Alexander Schnitzler [Mon, 29 Oct 2012 10:01:24 +0000 (11:01 +0100)]
[CLEANUP] Remove old SVN comments

Releases: 6.0
Fixes: #42469
Change-Id: I004754cb05d06d2e3b91a41bde5657bb69d0f6b4
Reviewed-on: http://review.typo3.org/16004
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
6 years ago[BUGFIX] Fix mismatches between count of param in phpdoc and function-signature
Stefan Neufeind [Sat, 20 Oct 2012 19:50:36 +0000 (21:50 +0200)]
[BUGFIX] Fix mismatches between count of param in phpdoc and function-signature

Change-Id: Iec8cd64b36e758878619c8277b146e45e834d46a
Fixes: #42232
Releases: 6.0
Reviewed-on: http://review.typo3.org/15841
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[TASK] Add explanation for $configurationType
Michael Bakonyi [Sat, 27 Oct 2012 18:27:16 +0000 (20:27 +0200)]
[TASK] Add explanation for $configurationType

Add explanation for constants used in method $configurationType

Resolves: #39981
Releases: 6.0

Change-Id: If2e1d937fd8db3cba5ef1d66b030c47b7687106f
Reviewed-on: http://review.typo3.org/15983
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
6 years ago[BUGFIX] Fix namespace related bugs in DebuggerUtility
Alexander Schnitzler [Fri, 26 Oct 2012 10:09:53 +0000 (12:09 +0200)]
[BUGFIX] Fix namespace related bugs in DebuggerUtility

Releases: 6.0
Fixes: #42004
Change-Id: Iec152b3f0543d3e2662273d54e3bf7c7666699d5
Reviewed-on: http://review.typo3.org/15946
Reviewed-by: Mattias Nilsson
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
6 years ago[TASK] Clean up testcases to use getAccessibleMock() function
Stefan Neufeind [Fri, 19 Oct 2012 21:07:43 +0000 (23:07 +0200)]
[TASK] Clean up testcases to use getAccessibleMock() function

The getAccessibleMock() function was moved to the BaseTestCase class.
For maintenance reasons this function should be used and old references
to getMock(buildAccessibleProxy()) construct converted.

Change-Id: I3d881d037ba5896827340201144fc43b62350b83
Resolves: #42195
Releases: 6.0, 4.7, 1.4, 1.3
Reviewed-on: http://review.typo3.org/15825
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Tested-by: Stefan Neufeind
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[TASK] Fix typo: seperator -> separator
Helmut Hummel [Fri, 19 Oct 2012 13:05:34 +0000 (15:05 +0200)]
[TASK] Fix typo: seperator -> separator

Change-Id: Ie74d480e93693fdbc1d66e6e78efc73719322728
Resolves: #42174
Releases: 6.0
Reviewed-on: http://review.typo3.org/15821
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
6 years agoRevert "[BUGFIX] Property mapper: Exception not thrown but skipped"
Helmut Hummel [Fri, 19 Oct 2012 11:26:35 +0000 (13:26 +0200)]
Revert "[BUGFIX] Property mapper: Exception not thrown but skipped"

This reverts commit 637f534d70680cdbeb3483b08044c95093e53888

Change-Id: I08cc3c4c890a7a85a0b1818a97cb0c21382989a8
Reviewed-on: http://review.typo3.org/15814
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[BUGFIX] Replace deprecated calls in Repository
Marc Bastian Heinrichs [Fri, 12 Oct 2012 12:51:38 +0000 (14:51 +0200)]
[BUGFIX] Replace deprecated calls in Repository

Repository class uses deprecated calls of persistenceManager for
getting the backend and session singletons. Replace it with dependency
injection.

Change-Id: I492d0fc3aeafd60dcae738f3f120aa1ef507205f
Fixes: #35869
Releases: 1.4, 4.7, 6.0
Reviewed-on: http://review.typo3.org/10262
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[BUGFIX] Change class name hash generation to md5
Alexander Schnitzler [Sat, 13 Oct 2012 14:17:12 +0000 (16:17 +0200)]
[BUGFIX] Change class name hash generation to md5

Releases: 6.0
Fixes: #41951
Change-Id: I571f2731616e6d1701c5fb02809c9f17e9822164
Reviewed-on: http://review.typo3.org/15559
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[BUGFIX] Fix broken table name mapping for namespaced extension models
Anja Leichsenring [Mon, 8 Oct 2012 06:23:29 +0000 (08:23 +0200)]
[BUGFIX] Fix broken table name mapping for namespaced extension models

With the introduction of namespaces came an additional
resolving mechanism for tablenames. The names for tables that belong
to an extension (not sysext) miss the last part of their name.

This patch applies the missing class name part to the algorithm.

Change-Id: Ie804fc5aa211b51d7f79716156ad07daaa634e36
Fixes: #41662
Releases: 6.0
Reviewed-on: http://review.typo3.org/15386
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Markus Günther
Tested-by: Markus Günther
6 years ago[BUGFIX] Fix generation of class schema for namespaced arguments
Helmut Hummel [Sat, 13 Oct 2012 13:14:24 +0000 (15:14 +0200)]
[BUGFIX] Fix generation of class schema for namespaced arguments

When creating argument objects extbase tries to generate
a class schema if the argument is an object. This did
not work for namespaced classes as they have not been
recognized yet.

On the way add some test cases for the TypeHandlingService
as it is related to this.

Change-Id: Ie8ee8f4ffd4fa52814a3332e45c659e2183ee201
Fixes: #41948
Releases: 6.0
Reviewed-on: http://review.typo3.org/15554
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
Reviewed-by: Nico de Haen
Tested-by: Nico de Haen
Reviewed-by: Markus Günther
Tested-by: Markus Günther
6 years ago[BUGFIX] Query Generation creates invalid query in BE scope
Anja Leichsenring [Fri, 12 Oct 2012 07:15:31 +0000 (09:15 +0200)]
[BUGFIX] Query Generation creates invalid query in BE scope

While in Backend scope, no $GLOBALS['TSFE'] is available and there
is no check in place nor a fallback to prevent extbase from generating
incomplete or empty query contraints.

This patch adds the missing check and fallback to the sys_language_uid
constraint.

Change-Id: I2ed9eb01ba83ce0763c3e692a1e9ff05147a49e1
Fixes: #41904
Releases: 6.0
Reviewed-on: http://review.typo3.org/15517
Tested-by: Wouter Wolters
Reviewed-by: Markus Günther
Tested-by: Markus Günther
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[BUGFIX] Fix generation of class name hash
Alexander Schnitzler [Fri, 12 Oct 2012 16:44:19 +0000 (18:44 +0200)]
[BUGFIX] Fix generation of class name hash

* replaced sha1 with str_replace

Change-Id: I787123ddd4d7cc4cece94071cb0988660ce1207c
Fixes: #41933
Releases: 6.0
Reviewed-on: http://review.typo3.org/15536
Reviewed-by: Christian Mueller
Reviewed-by: Alexander Schnitzler
Tested-by: Alexander Schnitzler
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Markus Günther
Tested-by: Markus Günther
6 years ago[BUGFIX] Correct link to first page in BE paginator widget
Helmut Hummel [Thu, 11 Oct 2012 21:38:45 +0000 (23:38 +0200)]
[BUGFIX] Correct link to first page in BE paginator widget

The link to the first page in the paginator widget is incorrect if
it's used in a backend module. Unsetting the arguments must be done
by handling the arrays.
Thanks to Nicole Cordes.

Fixes: #41614
Releases: 6.0

Change-Id: I2c4b88784c808ae587e0b2d7fde34feb53de2de4
Reviewed-on: http://review.typo3.org/15339
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[BUGFIX] Respect namespaced models in the reflection service
Ingo Pfennigstorf [Sat, 8 Sep 2012 20:40:33 +0000 (22:40 +0200)]
[BUGFIX] Respect namespaced models in the reflection service

This fixes the reflection service, so that repository classes
are found for namespaced models.

Change-Id: Id7be0f2d01ea480a1db7a0b9ab41785c0a1e143b
Fixes: #40743
Releases: 6.0
Reviewed-on: http://review.typo3.org/14466
Reviewed-by: Stefan Neufeind
Reviewed-by: Aske Ertmann
Reviewed-by: Sebastian Michaelsen
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[BUGFIX] Property Validation with Namespaces
Ingo Pfennigstorf [Sat, 8 Sep 2012 20:32:46 +0000 (22:32 +0200)]
[BUGFIX] Property Validation with Namespaces

This fixes the validation of properties in namespaced TYPO3.

Change-Id: I6a69f9e2890c71c91b572a991acbfb1a6760dcf5
Fixes: #40748
Releases: 6.0
Reviewed-on: http://review.typo3.org/14463
Reviewed-by: Stefan Neufeind
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
6 years ago[TASK] Provide class alias file for extbase
Thomas Maroschik [Wed, 26 Sep 2012 14:33:59 +0000 (16:33 +0200)]
[TASK] Provide class alias file for extbase

Change-Id: I33c1a735bb4500f2e34b297a4e252edab7bfc7a0
Resolves: #41385
Relates: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/15087
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
6 years ago[TASK] Introduce base class for PHPUnit tests
Markus Klein [Fri, 21 Sep 2012 15:55:39 +0000 (17:55 +0200)]
[TASK] Introduce base class for PHPUnit tests

Resolves: #41171
Releases: 6.0

Change-Id: I7274abf41766d16eabc5f4a127a9af6ad450066e
Reviewed-on: http://review.typo3.org/14857
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[TASK] Update version number of all sysexts to 6.0.0
Markus Klein [Sat, 22 Sep 2012 17:16:47 +0000 (19:16 +0200)]
[TASK] Update version number of all sysexts to 6.0.0

Fixes: #41261
Releases: 6.0

Change-Id: I0d927427fd5acfb12dc4c75a55f582f3ff05e596
Reviewed-on: http://review.typo3.org/14931
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Remove PHP warnings in request
Ingo Pfennigstorf [Fri, 21 Sep 2012 09:21:14 +0000 (11:21 +0200)]
[BUGFIX] Remove PHP warnings in request

Fixes PHP warnings if the controllerObjectName is not a valid class.

Change-Id: I0edc3cfb30593adac97740afe0443efc1a88faed
Fixes: #27862
Releases: 6.0
Reviewed-on: http://review.typo3.org/14811
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Mueller
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[TASK] Make all classes non final
Helmut Hummel [Sat, 22 Sep 2012 09:28:45 +0000 (11:28 +0200)]
[TASK] Make all classes non final

Defining a class as final does not help and only causes troubles,
especially when creating unit tests, because a final classes
cannot be mocked.

Remove the final statement for all classes to get rid of
these problems.

Change-Id: Icbf574dacd5c3b2bf1de2333a065b0eac838ea98
Resolves: #41235
Releases: 6.0
Reviewed-on: http://review.typo3.org/14905
Reviewed-by: Georg Ringer
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[BUGFIX] Fix Exception Class Name
Helmut Hummel [Fri, 21 Sep 2012 20:00:56 +0000 (22:00 +0200)]
[BUGFIX] Fix Exception Class Name

During renaming of classes one exception class name has been forgotten.
Rename Exception\InvalidSource to Exception\InvalidSourceException

Change-Id: Ia357c25f2489ffff9fb2023d4997a2aabcc3d501
Resolves: #41210
Releases: 6.0
Reviewed-on: http://review.typo3.org/14874
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[TASK] Fix class naming and alias map after namespace change
Helmut Hummel [Fri, 21 Sep 2012 16:01:23 +0000 (18:01 +0200)]
[TASK] Fix class naming and alias map after namespace change

Change-Id: I3e0f6d9aa0e5d8680213e3afe6db58d773b54c0d
Resolves: #41131
Releases: 6.0
Reviewed-on: http://review.typo3.org/14843
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Fix translation fallback
Xavier Perseguers [Fri, 31 Aug 2012 12:37:10 +0000 (14:37 +0200)]
[BUGFIX] Fix translation fallback

If the target for the translation does not exist, we have to
fallback to the default language, which is guaranteed to have
a target.

Change-Id: I7c4055999df1211a5f88bf3eeadc98af568372ea
Fixes: #36905
Fixes: #39569
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/13039
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
6 years ago[TASK] Remove superfluous parenthesis in sysexts
Arvid Jakobsson [Mon, 17 Sep 2012 19:39:38 +0000 (21:39 +0200)]
[TASK] Remove superfluous parenthesis in sysexts

Superfluous brackets in extbase after namespaces move

Change ("a" . "b") . "c" into "a" . "b" . "c" using the lex-pass tool.

Change-Id: I0c72e4b899db7c87b2513f8546012bbb815a7220
Resolves: #41015
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14677
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
6 years ago[TASK] Adopt Extbase to the Autoloader -> ClassLoader name change
Thomas Maroschik [Tue, 11 Sep 2012 17:19:41 +0000 (19:19 +0200)]
[TASK] Adopt Extbase to the Autoloader -> ClassLoader name change

Change-Id: If464fbdacbd278d77a1e03a7df395d5a771642ea
Resolves: #40830
Related: #40095
Depends: I87da4bb2ef0420a94d1d155edde500c1aa96894a
Reviewed-on: http://review.typo3.org/14523
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
6 years ago[BUGFIX] Broken backups in BackendConfigurationManagerTest
Christian Kuhn [Mon, 10 Sep 2012 13:43:28 +0000 (15:43 +0200)]
[BUGFIX] Broken backups in BackendConfigurationManagerTest

BackendConfigurationManagerTest fiddles with several $GLOBALS but
incompletly resets to previous state in tearDown(). This has side
effects to tests executed afterwards and is fixed with the patch.

Change-Id: Id3093494fc3b08b997eddc86590d85ee3f9588c9
Resolves: #40793
Releases: 6.0
Reviewed-on: http://review.typo3.org/14497
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Incomplete mocking and backups it tests
Christian Kuhn [Sun, 9 Sep 2012 09:55:21 +0000 (11:55 +0200)]
[BUGFIX] Incomplete mocking and backups it tests

Fix two systematical warnings raised by running the unit tests:

* The DataMapperTest mocks Persistence\Generic\Mapper\DataMap which
raises warnings that the mocked class expects two constructor arguments
that are not given. The mocks are adapted to not call the constructor.

* Incomplete backups in ExtensionUtilityTest destroys
$GLOBALS['TYPO3_DB'] database handle. Fixed by using the usual
$backupGlobals and blackList code from other tests.

Change-Id: I14a22bb2e65ff2f751466e63d280d5fdf5f9be17
Resolves: #40768
Releases: 6.0
Reviewed-on: http://review.typo3.org/14474
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Declare LocalizationUtility::translateFileReference static
Christian Kuhn [Wed, 29 Aug 2012 10:59:02 +0000 (12:59 +0200)]
[BUGFIX] Declare LocalizationUtility::translateFileReference static

protected translateFileReference() is not declared static, like the
rest of the class methods. This leads to strict errors.

Change-Id: I63396e69f4bb3d36c7784c1a884dea003c89ecc4
Fixes: #40377
Releases: 6.0, 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/14186
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] TypeHandlingService throws Exception for StorageObjects
Nicole Cordes [Tue, 28 Aug 2012 09:27:34 +0000 (11:27 +0200)]
[BUGFIX] TypeHandlingService throws Exception for StorageObjects

On using the old ObjectStorage class the TypehandlingService throws an
exception. This patch adds old class name to type handling again.

Change-Id: Iad841c1ba19ce8b701c549e1b2dcaca86f33a748
Fixes: #40290
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14147
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] fix Mvc/Request builds old classnames
Anja Leichsenring [Mon, 27 Aug 2012 21:35:37 +0000 (23:35 +0200)]
[BUGFIX] fix Mvc/Request builds old classnames

This bugfix builds the classname after the new namespaced schema
@vendor\@extension\@subpackage\@controller
The vendor is default set to TYPO3\CMS by now.

Change-Id: Ie834fb64ee591f7779bd587982349de96e177162
Fixes: #40243
Relates: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14145
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Fix old propertymapper checking target with namespace
Sebastian Fischer [Mon, 27 Aug 2012 04:35:11 +0000 (06:35 +0200)]
[BUGFIX] Fix old propertymapper checking target with namespace

The propertymapper checks if the target is an object by checking on
is_string and an '_' in the string. Since namespaces are in use it
needs to check on \

Change-Id: I1e664995733fa1438a4df62f0e41758b22045692
Fixes: #40242
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14124
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
6 years ago[BUGFIX] Fixed missing class mapping without TS
Alexander Schnitzler [Sun, 26 Aug 2012 17:01:55 +0000 (19:01 +0200)]
[BUGFIX] Fixed missing class mapping without TS

If no Root template is found the class mapping
of extbase is not loaded, so e.g. the
persistenceManager is not found any more.

Change-Id: I51359e9e3bb6e11c32425bb5740047d5f0403750
Releases: 6.0
Fixes: #40236
Reviewed-on: http://review.typo3.org/14118
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Fix classes without or broken namespace
Alexander Schnitzler [Sun, 26 Aug 2012 15:38:15 +0000 (17:38 +0200)]
[BUGFIX] Fix classes without or broken namespace

The update script unfortunetly didn't successfully
rename all classes in Extbase, so I renamed the
remaining ones manually.

Change-Id: Ia084593b8e9bf13ba487ab3b430eddf9b254d85e
Fixes: #40224
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14112
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[CLEANUP] General code cleanup
Alexander Schnitzler [Sun, 26 Aug 2012 11:10:21 +0000 (13:10 +0200)]
[CLEANUP] General code cleanup

* Cleaned up wrong PHPDoc
* Removed unused variables
* Added missing fields
* Fixed type incompatibility

Change-Id: I3ecc49ceb25458dda285cc4e005c5c2d44112100
Fixes: #40224
Releases: 6.0
Reviewed-on: http://review.typo3.org/14106
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Subrequests can't be resolved
Nicole Cordes [Fri, 24 Aug 2012 23:17:29 +0000 (01:17 +0200)]
[BUGFIX] Subrequests can't be resolved

This patch fixes the resolution of the controller object name when using
widget controller.

Change-Id: I003e7d6c7893b3519252f69b097375b741c5cf73
Fixes: #40157
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14059
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Make Cli\Command Namespace aware
Thomas Maroschik [Sun, 26 Aug 2012 00:08:37 +0000 (02:08 +0200)]
[BUGFIX] Make Cli\Command Namespace aware

Change-Id: I2e9247cac7c2df58637ea43447ac195628292b80
Fixes: #40219
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14101
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Unit tests after namespace switch
Christian Kuhn [Sat, 25 Aug 2012 19:07:39 +0000 (21:07 +0200)]
[BUGFIX] Unit tests after namespace switch

Change-Id: Ibb5b34bcefe68e7399ced84e756c24bfaf261248
Resolves: #40211
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14092
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Naming clash: Fix several unit test failures
Christian Kuhn [Sat, 25 Aug 2012 10:53:43 +0000 (12:53 +0200)]
[BUGFIX] Naming clash: Fix several unit test failures

The move of classes in Persistence area of extbase to subfolder 'generic'
confused the refactor script a bit. The patch fixes several fatals that
especially occur in the unit test.

Change-Id: I06ae18030e8659ce1251ef87e3d634a65ddbcec4
Resolves: #40150
Related: #40095
Related: #35876
Releases: 6.0
Reviewed-on: http://review.typo3.org/14067
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Interface Tx_Scheduler_AdditionalFieldProvider' not found
Tymoteusz Motylewski [Fri, 24 Aug 2012 22:56:27 +0000 (00:56 +0200)]
[BUGFIX] Interface Tx_Scheduler_AdditionalFieldProvider' not found

Fixes wrong class names in Extbase scheduler.

Change-Id: I5117f8caebfda9249499ac57c88019846c80886e
Related: #40095
Fixes: #40156
Release: 6.0
Reviewed-on: http://review.typo3.org/14058
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[BUGFIX] Reanimate unit tests
Christian Kuhn [Fri, 24 Aug 2012 16:33:39 +0000 (18:33 +0200)]
[BUGFIX] Reanimate unit tests

Make phpunit backend module for extbase tests load again

Change-Id: Ib3e05e343d2f34185c52727f16ede1331332b7ca
Resolves: #40135
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14046
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[TASK] Make extbase tests run again
Thomas Maroschik [Fri, 24 Aug 2012 12:02:38 +0000 (14:02 +0200)]
[TASK] Make extbase tests run again

Change-Id: Ib6475e5aed3633672c30a855edbf6c71b938510c
Resolves: #40119
Related: #40095
Releases: 6.0
Reviewed-on: http://review.typo3.org/14034
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
6 years ago[TASK] Namespace classes
Thomas Maroschik [Wed, 17 Oct 2012 20:25:57 +0000 (22:25 +0200)]
[TASK] Namespace classes

Change-Id: I403aee9d244a65e51547b21dac3b1228ffd3478e

6 years ago[TASK][WIP] Move non class code back to source files
Thomas Maroschik [Wed, 17 Oct 2012 19:05:05 +0000 (21:05 +0200)]
[TASK][WIP] Move non class code back to source files

Change-Id: I916ad5a3a24864a52e945aeb66e6f997b8e6fabd

6 years ago[TASK][WIP] Move classes to new locations
Thomas Maroschik [Wed, 17 Oct 2012 15:23:50 +0000 (17:23 +0200)]
[TASK][WIP] Move classes to new locations

Change-Id: Iaae73adcbba323ed5ca903e38f0b2f2e06f497e7

7 years ago[BUGFIX] Failing test translateForEmptyStringKeyReturnsNull()
Christian Kuhn [Mon, 20 Aug 2012 13:10:46 +0000 (15:10 +0200)]
[BUGFIX] Failing test translateForEmptyStringKeyReturnsNull()

Since the rootline refactoring a test case fails. Solution is to only
call the rootline in backend mode if page id is not 0. This additionally
saves some cycles in backend context.

Change-Id: I224ae2655b06dfb1f239b06d6ac2cbb89206a7a8
Resolves: #39997
Related: #39352
Releases: 6.0
Reviewed-on: http://review.typo3.org/13966
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[FEATURE] Integrate basic file abstraction layer models
Oliver Hader [Sat, 18 Aug 2012 12:51:18 +0000 (14:51 +0200)]
[FEATURE] Integrate basic file abstraction layer models

Warning: This feature is marked as experimental! It is a quick shot to
get a basic connection between extbase and FAL. We added the code to
see if it works out, but it is also possible that we decide to throw it
away completly and substitute it with something different later on. Be
aware of this if you use the models and type converters in your code!

Since the file abstraction layer (FAL) has been introduced during the
development of TYPO3 6.0, it is also required to have an automized and
fluent way to access those abstract files via Extbase. Since the FAL
models cannot completely and directly be used as Extbase Domain object,
simple wrapping objects are defined to access the concrete objects.

The patch adds the basic models for this. Furthermore additional type
converter classes are added for those models.

The patch contains an additional base test case that is able to create
a test database and feed it with fixture data, it is also marked as
experimental.

Change-Id: I537d32377ddd891627af2c163af252c48554d003
Resolves: #39926
Releases: 6.0
Reviewed-on: http://review.typo3.org/13885
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[BUGFIX] Property mapper: Exception not thrown but skipped
dkd-egerer Sascha Egerer [Fri, 17 Aug 2012 07:11:01 +0000 (09:11 +0200)]
[BUGFIX] Property mapper: Exception not thrown but skipped

The transformToObject function in the property mapper
checks for an existing record if an identity is given.
If no record could be found an exception should be thrown.
But the exception will never be thrown due to a wrong
condition. The condition checks for FALSE but NULL is
given.

The Exception does also not exist.

Change-Id: If6ac4d3275718cabab9c94904dad264472630c18
Fixes: #39876
Releases: 1.3, 1.4, 4.7, 6.0
Reviewed-on: http://review.typo3.org/13842
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
7 years ago[TASK] Unit test for FrontendUserGroup model
Markus Günther [Thu, 16 Aug 2012 10:14:06 +0000 (12:14 +0200)]
[TASK] Unit test for FrontendUserGroup model

To improve the test coverage we should have unit tests for the
frontend user group model in extbase.

Change-Id: I8e1005e9178161f2ba41b2277a7d993b8448eba9
Resolves: #39848
Release: 6.0
Reviewed-on: http://review.typo3.org/13809
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
7 years ago[TASK] Unit test for FrontendUser model
Markus Günther [Fri, 17 Aug 2012 08:20:36 +0000 (10:20 +0200)]
[TASK] Unit test for FrontendUser model

To improve the test coverage we should have unit tests for the
frontend user model in extbase.

Change-Id: I975db656f7e7a3dcc2704923f4878acb0505fa49
Resolves: #39849
Release: 6.0
Reviewed-on: http://review.typo3.org/13846
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
7 years ago[BUGFIX] ObjectManager dependencies in SignalSlot registration
Oliver Hader [Sun, 22 Jul 2012 15:10:23 +0000 (17:10 +0200)]
[BUGFIX] ObjectManager dependencies in SignalSlot registration

The SignalSlotDispatcher has a connect() and dispatch() method.
The connect() method usually might be used in ext_localconf.php
to register accordant slots - however, the SignalSlotDispatcher
relies on a fully initialized ObjectManager that also relies on
a fully initialized Caching Framework.

Since the Caches are not ready yet in ext_localconf.php the
whole thing will fail.

This patch removes the dependency of the ObjectManager
injecting itself to the SignalSlotDispatcher by explicitely
calling the initializeObject() method at a later point.

The SignalSlotDispatcher can then be used like this:

t3lib_div::makeInstance('Tx_Extbase_SignalSlot_Dispatcher')
  ->connect('Tx_MyClass', 'MySignal', 'Slot', 'slotMethod');

Change-Id: Ib0122a341865c334448f23a46bc8841c4817fdf7
Fixes: #39174
Releases: 4.7, 6.0
Reviewed-on: http://review.typo3.org/12989
Reviewed-by: Daniel Lorenz
Reviewed-by: Jacob Rasmussen
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[BUGFIX] Possible failure in dependency injection
Christian Kuhn [Fri, 17 Aug 2012 13:36:56 +0000 (15:36 +0200)]
[BUGFIX] Possible failure in dependency injection

Extbase reflection cache calls not existing methods. This can
happen for example if a class is refactored and an injectMethod
has been dropped.

Change-Id: I30071b53f300ef340d6c882ed40f0f67fb86c440
Fixes: #39892
Related: #39174
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/13864
Reviewed-by: Oliver Hader
Tested-by: Oliver Hader
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[BUGFIX] Web Request should map $_FILES into arguments
Kevin Ulrich Moschallski [Mon, 5 Mar 2012 10:31:43 +0000 (11:31 +0100)]
[BUGFIX] Web Request should map $_FILES into arguments

Adds content of $_FILES to the request parameters.
Use FLOW3 untangleFilesArray method to set the array, as suggested
by Bastian Waidelich.

Note that file properties must be arrays not strings.

Thanks to Kevin Ulrich Moschallski for the patch.
Thanks to Tymoteusz Motylewski for the unittest.

Change-Id: Ib851c6412afc0291520e61613ad439e34e0603bd
Fixes: #34528
Releases: 6.0
Reviewed-on: http://review.typo3.org/9379
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
Reviewed-by: Markus Günther
Tested-by: Markus Günther
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
7 years ago[FEATURE] Backend usergroup model and repository
Markus Günther [Mon, 13 Aug 2012 14:46:12 +0000 (16:46 +0200)]
[FEATURE] Backend usergroup model and repository

This patch delivers an backend usergroup model and repository.

Change-Id: Ie0da23ee0160a928f74726ceec5b243348a331ef
Resolves: #39332
Releases: 6.0
Reviewed-on: http://review.typo3.org/13626
Reviewed-by: Mattias Nilsson
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[FEATURE] File mount model and repository
Markus Günther [Thu, 2 Aug 2012 20:41:39 +0000 (22:41 +0200)]
[FEATURE] File mount model and repository

Actually we have a backend user model in extbase and a backend usergroup
is in progress. For these models we need a seperate file mount model.

This patch includes the model and the repository with the typoscript
mapping on the datebase table.

Change-Id: Id0b4a1ad168ba189940282222bf4e08b6441a3bf
Resolves: #39323
Releases: 6.0
Reviewed-on: http://review.typo3.org/13429
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[FEATURE] Handle enable fields and deleted records settings granulary
Jochen Rau [Mon, 30 Jan 2012 15:57:49 +0000 (16:57 +0100)]
[FEATURE] Handle enable fields and deleted records settings granulary

At the moment it's only possible to select either only visible
(non-hidden, matching start-/stop-time) or all (even deleted)
records.

To ensure a consistent handling in sync with TYPO3 Core behavior, it's
necessary to select disabled but not deleted records in the
backend.

This also effects findByUid() via the Typo3QuerySettings and
allows to write to disabled records in BE context.

* deprecates respectEnableFields in QuerySettingsInterface
* introduces ignoreEnableFields in QuerySettingsInterface
* introduces enableFieldsToBeIgnored in QuerySettingsInterface
* introduces includeDeleted in QuerySettingsInterface
* introduces feature flag ignoreAllEnableFieldsInBe to control default behavior
* select disabled but not deleted records in BE context

Fixes: #29501
Fixes: #8483
Change-Id: I11beb3b83589ad91d72d05116488408fff8d9e75
Releases: 6.0
Reviewed-on: http://review.typo3.org/8773
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[FEATURE] Improved translation handling for statement generation
Nicole Cordes [Thu, 5 Apr 2012 17:24:34 +0000 (19:24 +0200)]
[FEATURE] Improved translation handling for statement generation

When selecting items in a language other than default one, the
relations (e.g. for IRRE) can not be resolved correctly. This
fix adds the current language if handling is enabled for the chosen
table. Besides it corrects the ordering of items as it selects all
possible ones. For correct overlay the origin is fetched before.

Change-Id: Ibcfe83314c0f2fff54348d9ffab97cd7546779ca
Resolves: #32072
Resolves: #32216
Releases: 6.0
Reviewed-on: http://review.typo3.org/10188
Reviewed-by: Jochen Rau
Tested-by: Jochen Rau
Reviewed-by: Stefan Neufeind
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[BUGFIX] email validator
Markus Günther [Thu, 9 Aug 2012 16:33:40 +0000 (18:33 +0200)]
[BUGFIX] email validator

The actuall email validator uses a regex to validate email addresses.
The TYPO3 core offers a method in t3lib_div to validate email addresses.
This patch replace the regex with t3lib_div::validEmail()

Change-Id: I8157a61b8f056d0a60510ec3a7ba9dcb182cb0e5
Releases: 6.0, 4.7
Resolves: #6970
FLOW3 issue: #39714
Reviewed-on: http://review.typo3.org/13550
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[BUGFIX] DataMapper returns array on RELATION_HAS_ONE
Thomas Maroschik [Fri, 1 Apr 2011 12:59:43 +0000 (14:59 +0200)]
[BUGFIX] DataMapper returns array on RELATION_HAS_ONE

When your dealing with entities, that not necessarily have
their hasOne nested entities set then the DataMapper returns
an empty array instead of null. In my opinion, an empty
array makes no sense here, because there is no hasMany
relation here.

* Removed the unused $columnMap from DataMapper::fetchRelated
* Added $columnMap in DataMapper::fetchRelatedEager
* Check if the property has a RELATION_HAS_ONE and return null
  instead of an empty array then

Change-Id: I0c766d9579cbb464bbae292b194f8df7e8c4a9e9
Fixes: #25708
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/1404
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski
Reviewed-by: Stefan Neufeind
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Markus Günther
Tested-by: Markus Günther
7 years ago[Task] Make Exception for Controllerdetermination more expressive
Ingo Pfennigstorf [Fri, 20 Jul 2012 20:10:44 +0000 (22:10 +0200)]
[Task] Make Exception for Controllerdetermination more expressive

This makes exception 1316104317 more expressive and includes the
extension- and pluginname in the exception message.

Change-Id: Ia4787748487e32cd112327616992914bbf8bc736
Fixes: #33903
Releases: 6.0, 4.7, 4.6
Reviewed-on: http://review.typo3.org/12945
Reviewed-by: Tymoteusz Motylewski
Reviewed-by: Oliver Klee
Reviewed-by: Markus Günther
Tested-by: Markus Günther
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
7 years ago[TASK] Add Domain Model and Repository to Category
Fabien Udriot [Sat, 14 Jul 2012 15:03:03 +0000 (17:03 +0200)]
[TASK] Add Domain Model and Repository to Category

For extension developer's sake, it is convenient to provide a domain
model along with a repository. Both are relying on Extbase.

Change-Id: I7260a57dcc742f217f0ddfe19470673bc91532c9
Resolves: #38719
Releases: 6.0
Reviewed-on: http://review.typo3.org/12793
Reviewed-by: Oliver Klee
Tested-by: Oliver Klee
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot
Reviewed-by: Sebastian Michaelsen
Reviewed-by: Jochen Rau
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Markus Günther
Tested-by: Markus Günther
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
7 years ago[BUG] Fix lastlogin property to correct lowerCamelCase
Markus Günther [Wed, 1 Aug 2012 23:41:32 +0000 (01:41 +0200)]
[BUG] Fix lastlogin property to correct lowerCamelCase

In the new backend user model the property lastlogin was not consistently
in the spelling. Sometimes is it used as lastloginDateAndTime and in the methods
it is used in correct lowerCamelCase lastLoginDateAndTime.

This patch defines the property as lastLoginDateAndTime.

Change-Id: I00e5fd98bcd82e333a6fc9a91f3fe497f2a09d12
Fixes: #39460
Releases: 6.0
Reviewed-on: http://review.typo3.org/13422
Reviewed-by: Georg Ringer
Reviewed-by: Wouter Wolters
Reviewed-by: Mattias Nilsson
Tested-by: Mattias Nilsson
Reviewed-by: Ingo Pfennigstorf
Tested-by: Ingo Pfennigstorf
7 years ago[FEATURE] Add a BackendUser model
Markus Günther [Sat, 21 Jul 2012 16:34:24 +0000 (18:34 +0200)]
[FEATURE] Add a BackendUser model

Some extensions in the TYPO3 backend use backend users. The belog and
the beuser module are based on extbase and it will be useful if not
every extension has to implement an own backendUser model.

This patch adds a backend user model to extbase.

Change-Id: I84e8ea528c5f91151369f59db6a00acb0174544b
Resolves: #39145
Releases: 6.0
Reviewed-on: http://review.typo3.org/12981
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Oliver Klee
Tested-by: Oliver Klee
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[TASK] Small bugfix in Tx_Extbase_MVC_View_ViewInterface
Alexander Schnitzler [Mon, 30 Jul 2012 13:23:12 +0000 (15:23 +0200)]
[TASK] Small bugfix in Tx_Extbase_MVC_View_ViewInterface

Changed expected type of assign-param 'value' from
object to mixed

Change-Id: Ica8e8bd6f7971220da4a3a0fe0c8ca262560374c
Fixes: #39385
Releases: 1.3,1.4,4.7,6.0
Reviewed-on: http://review.typo3.org/13347
Reviewed-by: Marc Bastian Heinrichs
Tested-by: Marc Bastian Heinrichs
7 years ago[BUGFIX] Remove additional slashes from typolink urls if prefixing
Felix Oertel [Mon, 6 Feb 2012 11:46:36 +0000 (12:46 +0100)]
[BUGFIX] Remove additional slashes from typolink urls if prefixing

Typolink generates absolute uris with a leading slash. When prefixing
this with the base uri, we have to make sure, there is just one
slash in result. To prevent these situations we also trigger the
UriBuilder itself to generate an absolute path.

Thanks to Chetan Thapliyal.

Change-Id: Iae8755514fbdfc4eb27a5a6eab620e55144d912e
Fixes: #33788
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/8860
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Daniel Lorenz
Tested-by: Daniel Lorenz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[BUGFIX] public function configureModule should be static
Markus Günther [Fri, 20 Jul 2012 18:11:29 +0000 (20:11 +0200)]
[BUGFIX] public function configureModule should be static

In the class Tx_Extbase_Utility_Extension is the public method configureModule
and it seems that the author of the method forget the static keyword.
The method is used as a static method everywhere but it is not declared
as static.

This patch only set the method to static.

Change-Id: I4ba19f3b0ff763dffd4109a65933623b79e85b45
Fixes: #37922
Releases: 6.0, 4.7
Reviewed-on: http://review.typo3.org/12938
Reviewed-by: Tymoteusz Motylewski
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[FEATURE][Performance] Add caches for persistence layer
Daniel Pötzinger [Sat, 14 Apr 2012 19:30:56 +0000 (21:30 +0200)]
[FEATURE][Performance] Add caches for persistence layer

XDEBUG Profiler shows time saving possibilities in
Tx_Extbase_Persistence_Storage_Typo3DbBackend->addEnableFieldsStatement
(use of db->admin_get_fields) and
Tx_Extbase_Persistence_Mapper_DataMapFactory->buildDataMap

Caches should be added here. Also to be able to inject the cacheManager
the Container needs a small fix

Change-Id: I5c2defcfaa58c6454226d1abf938b6b6796b5232
Resolves: #36074
Releases: 6.0
Reviewed-on: http://review.typo3.org/10498
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Felix Oertel
Tested-by: Felix Oertel
7 years ago[TASK] use the objectManager to create empty domain objects
Markus Günther [Sat, 21 Jul 2012 12:48:28 +0000 (14:48 +0200)]
[TASK] use the objectManager to create empty domain objects

The Tx_Extbase_Persistence_Mapper_DataMapper uses the objectContainer
(Tx_Extbase_Object_Container_Container) for creating an empty object
without calling the construct.

The problem is that except the objectManager no one should use the
objectContainer. So this patch adds a wrapper class to the object
manager communicates with the objectContainer.

Change-Id: I2a2f9d68c0ac0c14a47723ea901c974b7ccc6c5e
Resolves: #13816
Release: 6.0
Reviewed-on: http://review.typo3.org/12973
Reviewed-by: Felix Oertel
Tested-by: Felix Oertel
7 years ago[BUGFIX] Container calls Cache too often
Daniel Pötzinger [Fri, 13 Apr 2012 19:13:04 +0000 (21:13 +0200)]
[BUGFIX] Container calls Cache too often

The Container Classes Cache call is very expensive - and when
using a database backend, this is even slowing down
compared to a NullBackend.

One reason is that for every cache request the cache is
called 3 times: 1 time has and 2 times get.
This can be avoided and be reduced to one get call -
which reduces request time by 10-20% for a bigger Extbase request.

Change-Id: I43a0ebf7e0bfd067f3e48c0e7c27f12660b4cb7c
Resolves: #36008
Releases: 1.3, 1.4, 4.7, 6.0
Reviewed-on: http://review.typo3.org/10438
Reviewed-by: Daniel Lorenz
Tested-by: Daniel Lorenz
Reviewed-by: Schmidt Timo
Tested-by: Schmidt Timo
Reviewed-by: Tymoteusz Motylewski
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[TASK] Update Readme to point to the current documentation location
Ingo Pfennigstorf [Fri, 20 Jul 2012 19:29:36 +0000 (21:29 +0200)]
[TASK] Update Readme to point to the current documentation location

The Extbase README file now contains links to the current documentation
and api documentation

Change-Id: I9f2d32f2d060cebc5a7865170f62d269ab8517e6
Fixes: #36020
Releases: 6.0, 4.7, 1.4
Reviewed-on: http://review.typo3.org/12943
Reviewed-by: Oliver Klee
Reviewed-by: Tymoteusz Motylewski
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[BUGFIX] Only set request for Web_Response
Tobias Liebig [Wed, 27 Jun 2012 13:49:41 +0000 (15:49 +0200)]
[BUGFIX] Only set request for Web_Response

The current request is needed in Tx_Extbase_MVC_Web_Response to
distinguish between a cached or a non-cached request in
addAdditionalHeaderData() as the PageRenderer does not support USER_INTs
currently. This works fine is the ActionController is called with a
Web_Response, but causes an fatal error if a Cli_Response is in charge.

This fix and the $request member in Web_Response should be removed,
once the PageRenderer is fixed for USER_INTs. For now, this patch fixes
a fatal error in the fluid unit tests.

Change-Id: I56fabc3a51ce2c5192ab4488c817b938ed8797ca
Fixes: #36751
Releases: 6.0
Reviewed-on: http://review.typo3.org/12401
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Daniel Lorenz
Tested-by: Daniel Lorenz
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
7 years ago[TASK] Harmonize coding style of if constructs
Ingo Pfennigstorf [Sat, 21 Jul 2012 07:51:33 +0000 (09:51 +0200)]
[TASK] Harmonize coding style of if constructs

This corrects the whitespaces in if statements for Extbase.

Change-Id: Ie2266202ca819b78d23d7e28cb6c359cf691eee0
Fixes: #37805
Releases: 6.0
Reviewed-on: http://review.typo3.org/12957
Reviewed-by: Felix Oertel
Tested-by: Felix Oertel
7 years ago[BUGFIX] CLI argument handling chokes on = use
Nicole Cordes [Fri, 20 Jul 2012 19:15:38 +0000 (21:15 +0200)]
[BUGFIX] CLI argument handling chokes on = use

This is a backport of the fix done in FLOW3.
The corresponding FLOW3 ticket is #30493

With this fix the last argument may use the equals sign (=)
again to separate between argument name and value.

Besides writing an additional test case which reproduces the issue,
the other test cases have been strengthened by replacing assertEquals()
by assertSame().

Change-Id: I7d7fa4e5f18a73308cc564db152fd31ab3c4e478
Fixes: #36745, #35207
Relates: #30493
Releases: 6.0, 4.7, 1.4
Reviewed-on: http://review.typo3.org/10919
Tested-by: Christian Kuhn
Reviewed-by: Nicole Cordes
Tested-by: Nicole Cordes
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
7 years agoMerge "[BUGFIX] Priority of CLI request handler should be lower"
Christian Kuhn [Fri, 20 Jul 2012 18:16:04 +0000 (20:16 +0200)]
Merge "[BUGFIX] Priority of CLI request handler should be lower"

7 years ago[BUGFIX] Priority of CLI request handler should be lower
Michael Klapper [Fri, 9 Mar 2012 14:18:26 +0000 (15:18 +0100)]
[BUGFIX] Priority of CLI request handler should be lower

Allow rendering of plugin content during tx_crawler call
if option "Make direct requests" is enabled.

Change-Id: I79f992d94924e1b069486715bfa20808cd84588e
Fixes: #34691
Releases: 6.0,4.7

7 years ago[BUGFIX] Return NULL instead of empty string in Localization::translate()
dkd-egerer Sascha Egerer [Fri, 13 Apr 2012 09:38:47 +0000 (11:38 +0200)]
[BUGFIX] Return NULL instead of empty string in Localization::translate()

Localization::translate() returns an empty string instead of NULL
if no translation string is found but arguments are given

Change-Id: Id21ca9bc59a59d6115dc70decf2294497d871a81
Fixes: #34874
Related: #34877
Releases: 6.0, 4.7, 1.4, 1.3

7 years ago[BUGFIX] Fix unit test for NumberRangeValidator
Tobias Liebig [Wed, 27 Jun 2012 11:19:51 +0000 (13:19 +0200)]
[BUGFIX] Fix unit test for NumberRangeValidator

While back porting changes (#35255) a unit test broke in
Validation_Validator_BeforeExtbase14_NumberRangeValidatorTest.

Change-Id: I31309474866e5edae747ea420e94e65d1638758f
Resolves: #38426
Releases: 6.0

7 years ago[BUGFIX] FLUIDTEMPLATE - Serialization of 'Closure' is not allowed
Oliver Hader [Tue, 5 Jun 2012 21:44:57 +0000 (23:44 +0200)]
[BUGFIX] FLUIDTEMPLATE - Serialization of 'Closure' is not allowed

The Fluid TemplateCompiler uses closures to store a cached
variant of the accordant Fluid node. Several calls in Fluid
use serialize() and also will process those closures, which
will end up in a PHP fatal error.

The most obvious part is the object manager which will then
try to serialize all objects - including closures - that are
available in the object container.

The problem can be circumvented by using accordant magic PHP
methods like __sleep() and __wakeup() to ignore those properties.

Change-Id: I70e78a09b2a118cc26f099063743c530f0addc72
Fixes: #32295
Related: #36820
Releases: 6.0, 4.7, 4.6

7 years ago[BUGFIX] Extbase core bootstrap not found in frontend
Christian Kuhn [Sun, 1 Jul 2012 19:21:57 +0000 (21:21 +0200)]
[BUGFIX] Extbase core bootstrap not found in frontend

The patch for issue #35866 removed all class entries from ext_autoload
and relies on the 'extbase' naming scheme autoloader to find classes.
This has the side effect that classes must be requested in upper camel
case, otherwise they are not found.

The frontend extbase plugins are called by a TypoScript userFunc.
The requested extbase core bootstrap class must therefore be used
with upper camel case as well.

Change-Id: I67f1a0d3025b945ec8788f031b676fa62439a2c3
Resolves: #38527
Related: #35866
Related: #37920
Releases: 6.0

7 years ago[BUGFIX] Fatal error in reports module
Philipp Gampe [Fri, 15 Jun 2012 18:25:03 +0000 (20:25 +0200)]
[BUGFIX] Fatal error in reports module

Change-Id: I3f0af2132bfecbe83cecdd0605e7628a2c71bc30
Fixes: #37920
Releases: 6.0

7 years agoMerge "[Task] Update changelog and version to 6.0.0-dev"
Marc Bastian Heinrichs [Mon, 21 May 2012 21:32:58 +0000 (23:32 +0200)]
Merge "[Task] Update changelog and version to 6.0.0-dev"

7 years ago[CLEANUP] Cleaned up Extbase
Alexander Schnitzler [Tue, 1 May 2012 12:04:42 +0000 (14:04 +0200)]
[CLEANUP] Cleaned up Extbase

* Uninitialized vars
* Uninitialized properties
* Undefined classes
* PHPdoc

Change-Id: I7679c8020c56883825cb7dd1bb6d6033ee38148f
Fixes: #34970
Releases: 6.0

7 years agoMerge "[TASK] Backport changes to Extbase_Error_Message"
Marc Bastian Heinrichs [Mon, 30 Apr 2012 23:46:04 +0000 (01:46 +0200)]
Merge "[TASK] Backport changes to Extbase_Error_Message"

7 years agoMerge "[TASK] Improve performance of Utility/Arrays::integerExplode"
Marc Bastian Heinrichs [Mon, 30 Apr 2012 23:35:31 +0000 (01:35 +0200)]
Merge "[TASK] Improve performance of Utility/Arrays::integerExplode"

7 years agoMerge "[BUGFIX] Fix undefined variables in Typo3DBBackend::parseOrderings"
Marc Bastian Heinrichs [Mon, 30 Apr 2012 22:51:52 +0000 (00:51 +0200)]
Merge "[BUGFIX] Fix undefined variables in Typo3DBBackend::parseOrderings"

7 years ago[BUGFIX] Fix undefined variables in Typo3DBBackend::parseOrderings
Oliver Klee [Mon, 30 Apr 2012 22:50:29 +0000 (00:50 +0200)]
[BUGFIX] Fix undefined variables in Typo3DBBackend::parseOrderings

Tx_Extbase_Persistence_Storage_Typo3DbBackend::parseOrderings
passes the potentially not defined $className and $tableName
to convertPropertyNameToColumnName.

Fixes: #34924

Change-Id: Ifd1841d899efa4d56784ba38d06bfa86bd9adf58
Branches: 6.0, 4.7, 1.4, 1.3

7 years agoMerge "[TASK] Remove trailing whitespace"
Marc Bastian Heinrichs [Mon, 30 Apr 2012 21:41:00 +0000 (23:41 +0200)]
Merge "[TASK] Remove trailing whitespace"

7 years ago[FEATURE] Allow overwriting of Bootstrap with DI
Felix Oertel [Mon, 30 Apr 2012 21:22:14 +0000 (23:22 +0200)]
[FEATURE] Allow overwriting of Bootstrap with DI

An interface is needed for the Bootstrap, which will be
used with the objectManager to make the Bootstrap
overwritable.

Resolves: #35960
Change-Id: I5cfd9ba9f00f206db46fad06e4302d808b6e1962

7 years ago[TASK] Sync persistence folder scheme with FLOW3
Felix Oertel [Wed, 11 Apr 2012 14:17:27 +0000 (16:17 +0200)]
[TASK] Sync persistence folder scheme with FLOW3

In Persistence/ only generic, abstract classes and
interfaces are allowed. Everything specific to an
implementation has to be in Persistence/[Name].

Resolves: #35876

Change-Id: I703fa4ed6df7f56a7ade404af1d11c590041e7ad

7 years ago[CLEANUP] clean up ext_autoload.php
Felix Oertel [Wed, 11 Apr 2012 14:42:13 +0000 (16:42 +0200)]
[CLEANUP] clean up ext_autoload.php

Change-Id: Ibcb6eded45f75fa372675f79bab121c97a0bb0b0
Resolves: #35866

7 years ago[Task] Update changelog and version to 6.0.0-dev
Marc Bastian Heinrichs [Thu, 26 Apr 2012 14:21:36 +0000 (16:21 +0200)]
[Task] Update changelog and version to 6.0.0-dev

Change-Id: I70c4354cbae18905680c108ff085418f06fe4f10

7 years ago[TASK] Remove trailing whitespace
dkd-egerer Sascha Egerer [Sat, 14 Apr 2012 19:53:35 +0000 (21:53 +0200)]
[TASK] Remove trailing whitespace

There must be no empty lines after the closing
PHP tag. Empty lines after closing tags break
output compression in PHP and/or result in AJAX
errors.

Change-Id: I3a9570d1505f16c0c7686127ef8909827de94f09
Resolves: #36078
Releases: 1.4, 4.7, 6.0

7 years ago[TASK] Remove deprecated methods & properties
Marc Bastian Heinrichs [Thu, 12 Apr 2012 07:41:16 +0000 (09:41 +0200)]
[TASK] Remove deprecated methods & properties

Removes deprecated methods which are annonced to
be removed in Extbase 1.5.0

Change-Id: I9268903a5cdb3bbf541b161f9e36b09b8aace268
Resolves: #35872
Releases: 6.0

7 years ago[TASK] Remove access to constant TYPO3_UseCachingFramework
Christian Kuhn [Sat, 14 Apr 2012 13:20:03 +0000 (15:20 +0200)]
[TASK] Remove access to constant TYPO3_UseCachingFramework

The caching framework is always enabled and access
to this constant is deprecated.

Change-Id: Ibb46f5ab1908cb26bc91d42d15e1e12a95156174
Resolves: #36039
Related: #36037
Releases: 6.0