[BUGFIX] Enable BE search for multiple mountpoints

Backend search now allows search from all mounts of an editor.
If the root page is selected it will search in all mounts of the
backend user.

Change-Id: Ic462725bb4cba8100c5eeca5f7f47b5711ab2869
Resolves: #35073
Releases: 6.2, 6.1, 6.0
Reviewed-on: https://review.typo3.org/23895
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
[BUGFIX] Fix wrong composer type in filemetadata

The composer file of the filemetadata extension contains the
composer type typo3cms-framework instead of typo3-cms-framework.
This disables the package key translation of the package manager
and the extension is listed internally under the key
typo3.cms.filemetadata. The package manager can handle that key
and its alias filemetadata transparently but the extensionmanager
fails to do so because of its custom approach to installed extension
detection.

This patch fixes the type in the filemetadata composer file.

Fixes: #52925
Releases: 6.2
Change-Id: Id761ff9f9b169f8b559332dd1d54389e9582edf3
Reviewed-on: https://review.typo3.org/24889
Reviewed-by: Francois Suter
Tested-by: Francois Suter
Reviewed-by: Sebastian Fischer
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[TASK] Delete sys_file(_metadata) entries when a file is deleted

In order to keep sys_file and sys_file_processedfile
as much in sync with the real file system as possible
we delete the relevant sys_file and sys_file_metadata
entries as soon as a file is deleted.

Resolves: #51698
Releases: 6.2, 6.1, 6.0
Change-Id: Ifa6a565702c26dc02c01634076726ef9f2272f84
Reviewed-on: https://review.typo3.org/23671
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[BUGFIX] Minor glitches in FileIndex- and MetaDataRepositories

There are two minor issues with the Repositories for file meta
data.
The FileIndexRepository::hasIndexRecord returns false if there
is more than one entry in the database. As a result the file
can be indexed over and over again.

In addition while updating file-meta-data it is possible to
update the uid of an record since it is removed from the wrong
array.

Resolves: #52954
Releases: 6.2
Change-Id: Iee4deaa60933f5fd67a31ac70246bc1226b9007a
Reviewed-on: https://review.typo3.org/24897
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[TASK] Documentation: Update jQuery-usage

* Use central jQuery
* Get rid of not used JS-parts (tools, validation)

Change-Id: Ie64b66fd0f6cc5a73c8dc70425fb18aa74b6d8be
Resolves: #52932
Releases: 6.2
Reviewed-on: https://review.typo3.org/24879
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
[TASK] Log "validator not found" in devlog, not syslog

This change directs logging of "class not found" style errors that
happen while resolving name-convention class names of object
validators. One log message would be dispatched for each object
type for each request - which is definitely too much for a
production context.

Devlog was chosen since Validator resolve failures only apply
in a development context.

Releases: 6.2
Resolves: #52974
Change-Id: I0f0a6e2d336bc783b436e8e7b467c2ac04f2fed8
Reviewed-on: https://review.typo3.org/24905
Reviewed-by: Markus Klein
Tested-by: Markus Klein
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
[BUGFIX] Sorting of packages by dependency

Implement proper dependency handling in Flow PackageManager.
The code ensures that all framework packages are loaded first.

Releases: 6.2
Resolves: #52828
Change-Id: I6717756efae28b1f8e13fc3a251328f69f54b4d4
Reviewed-on: https://review.typo3.org/24852
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Tested-by: Anja Leichsenring
Reviewed-by: Stefan Neufeind
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
[BUGFIX] BE-Layout provider must filter deleted records

Deleted records must be filtered from the select list.

Resolves: #52983
Releases: 6.2
Change-Id: Ic98fab6d53426c92b3536a9f9ccb46c0b814f2eb
Reviewed-on: https://review.typo3.org/24910
Reviewed-by: Wouter Wolters
Reviewed-by: Jo Hasenau
Tested-by: Jo Hasenau
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
[BUGFIX] Make OpenID login work with identifier select

The OpenID protocol has an option which is called
identifier_select which let's the OpenID provider
return the unique OpenID identifier for a user.
A notable example is Google:
Their OpenID for all users is https://www.google.com/accounts/o8/id
while the actual OpenID identity is different, e.g.
https://www.google.com/accounts/o8/id?id=AItOawm2w
(for users without a google+ profile).

Because of this, we cannot verify that the OpenID URL
given by the user during login exists in our database
before starting the OpenID process.
Instead, we first need to run the OpenID process
to get the final OpenID identifier of the user and
only then check if a user with that ID exists
in our database.

This change also also introduces a new field in the
backend login form, "openid_url". The field is needed
to cleanly distinguish OpenID from normal logins,
to make full OpenID URL normalization possible
(i.e. adding http:// automatically if missing).

Resolves: #25322
Releases: 6.2
Change-Id: Id31238760fe4e58e2a823beddaeb454ba28d59be
Reviewed-on: https://review.typo3.org/21373
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Christian Weiske
Tested-by: Christian Weiske
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
[BUGFIX] Replace __DIR__ with absolute path in class cache

Since the directory constant __DIR__ is not always the same in all
environments (web, command line) we only allow absolute paths in the
class cache.

This requires the class cache to be cleared after the TYPO3 instance
was moved to another directory.

Resolves: #52885
Releases: 6.2
Change-Id: I0fc4c13d2977883e6881b5d7dda189813f97ae36
Reviewed-on: https://review.typo3.org/24840
Tested-by: Sebastian Fischer
Reviewed-by: Thorsten Kahler
Tested-by: Thorsten Kahler
Reviewed-by: Jigal van Hemert
Reviewed-by: Thomas Maroschik
Tested-by: Thomas Maroschik