[TASK] Missing signals on adding folder

There are signals for most filestorage operations performed
in the ResourceStorage, but not for adding a folder.

This patch adds the two missing signals.

Resolves: #54964
Releases: 6.2
Change-Id: Ia7e3970ea278bf5e74856008afe53083e91f0649
Reviewed-on: https://review.typo3.org/26863
Reviewed-by: Stefan Neufeind
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
[BUGFIX] Clean up category references when a file is deleted

File are categorizable by default as of TYPO3 6.2
When a BE User deletes a file, associated categories
must be removed as well.

Change-Id: I82175bbd207e68590c20de8fd536bab0de001fe3
Releases: 6.2
Resolves: #55430
Reviewed-on: https://review.typo3.org/27124
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
[CLEANUP] Cleanup code in ElementBrowser

This patch does not change functionality.
It just fixes formatting issues of the code and
corrects phpdoc.

Resolves: #53580
Releases: 6.2
Change-Id: I39a7ec757e6dfce8282053c3259a84edc2ba5588
Reviewed-on: https://review.typo3.org/25360
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
[TASK] Obsolete code in saltedpasswords

tx_saltedpasswords_autoloader was used in old install tool only
and is obsolete now.

Change-Id: If398a197a18bfda20789afd0aa0104fcd8ba5993
Resolves: #55446
Releases: 6.2
Reviewed-on: https://review.typo3.org/27138
Reviewed-by: Thomas Maroschik
Reviewed-by: Marcin Sągol
Reviewed-by: Wouter Wolters
Reviewed-by: Christian Kuhn
Tested-by: Christian Kuhn
[BUGFIX] Content Element Wizard Hook labeled wrongly

The message when having a hook for the wizard items
is still the same, although the interface has been
renamed. So the check is valid, but if the check
fails then the message is misleading.

Releases: 6.2
Resolves: #55455
Change-Id: If1b9e4285c02e8a3ab92eee562b6516f24bae9a8
Reviewed-on: https://review.typo3.org/27146
Reviewed-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Tom Ruether
Tested-by: Tom Ruether
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[TASK] Make files visible by default

For FAL, the concept of "hidden" files was introduced with the sysext
"metadata". The field is called "visible", its usage is to be
implemented by the plugin.

The default value for visible is FALSE, making it error-prone for users
uploading new files: They are hidden by default, requiring additional
work by the end-user (or the plugin/backend module doing the work) to
un-hide the files.

This commit changes the default of ``sys_file_metadata:visible`` to
``1``, making *new* files visible by default.

Change-Id: Id760ac92042e3235259ae78509187d3535cc25ca
Releases: 6.2
Resolves: #55410
Reviewed-on: https://review.typo3.org/27111
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
[TASK] ClickMenu: Set background via CSS instead of JS

Move background-style from JS to CSS. Since other skinning-
extensions might override color-settings in TBE_STYLES we need
to generate CSS dynamically and late in the process inside t3skin.

Since backend-CSS is concatenated/compressed this will be included
in the generated merged CSS-file.

Change-Id: Ib04bdf0be172081eb463bdeb9dbd846f7c32cea3
Resolves: #54286
Releases: 6.2
Reviewed-on: https://review.typo3.org/26092
Reviewed-by: Stefan Neufeind
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
[BUGFIX] DocumentTemplate class inserts inDocStyles twice

Change-Id: I252da74973c3dc4157717139c95ad0605e16fce1
Releases: 6.2, 6.1, 4.5
Resolves: #55458
Reviewed-on: https://review.typo3.org/27148
Reviewed-by: Wouter Wolters
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
[BUGFIX] Remove tca ctrl settings crdate and cruser_id for sys_file

On splitting sys_file table to extract metadata tca ctrl settings
crdate and cruser_id have been left out, but the columns were
removed. This results in a SQL error on creating sys_file records
with the datahandler.

Resolves: #55462
Related: #52726
Releases: 6.2
Change-Id: I9e856f607868c545ee4e1398a5031e47fc8c39fc
Reviewed-on: https://review.typo3.org/27151
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[TASK] Install Tool > All Configuration "Expand All" functionality

Adds toggle all functionality.

Resolves: #55453
Releases: 6.2
Change-Id: Ie798e229a8a8751f82ffc6c14d1b1ca0caf949e1
Reviewed-on: https://review.typo3.org/27147
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Reviewed-by: Wouter Wolters
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
[BUGFIX] Styling fix for Install Tool Lock Screen in Backend Mode

Resolves: #55464
Releases: 6.2
Change-Id: I1891763db8a8edc5ddb8077a1cc32c8184a7e0c1
Reviewed-on: https://review.typo3.org/27156
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
[BUGFIX] Adjust css in new content element wizard

The rendering of the plugin menu gets messed up if a plugin hasn't any
description. This patch clears floating for every list item to ensure
it is displayed on the left side.

Resolves: #53895
Releases: 6.2
Change-Id: Ib64b99865fda1359ade4b7c22d160fbfe28350c9
Reviewed-on: https://review.typo3.org/25655
Reviewed-by: Wouter Wolters
Reviewed-by: Marcin Sągol
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[TASK] Priority is not execution order in for Extractors

When the meta-data extraction services have been introduced it
silently has been assumed that the defined priority can be
used as execution order. In fact the priority just defines which
data takes precedence of another. In fact you might have an
extraction service which has highest priority for the fields it
serves but on the opposite should run as first, so other
extraction services already can use the data.

This change adds a second "priority" for that purpose and adapts
the indexing process accordingly.

Resolves: #54228
Releases: 6.2
Change-Id: I649fc8b91103ab518e5a692bf73c54851e8b70b1
Reviewed-on: https://review.typo3.org/26696
Reviewed-by: Frans Saris
Reviewed-by: Wouter Wolters
Reviewed-by: Stefan Neufeind
Reviewed-by: Ingo Schmitt
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[TASK] Fix remaining calls to FileRepository for retrieving Files

In previous efforts the calls to the FileRepository, when retrieving
File objects have been relocated to the ResourceFactory, since the
coexistence causes problems when it comes to metadata and multiple
instances of the same entity.

As findByUid is defined in the AbstractRepository it was overlooked
until now. This patch overrides the base method, deprecated it and
calls the ResourceFactory, too.
In addition all calls in core are replaced with the direct call.

Resolves: #53690
Releases: 6.2
Change-Id: I89a665211bd7d400f339e27bd2b155958fe5daf1
Reviewed-on: https://review.typo3.org/26850
Reviewed-by: Ingo Schmitt
Tested-by: Ingo Schmitt
Reviewed-by: Frans Saris
Tested-by: Frans Saris
Revert "[BUGFIX] Improve confirmation dialog in drag'n'drop fileupload"

This reverts commit 495afb59adf47818215bb702a71ec5f79dfd4359

The patch is reverted because it does not work when there is paging in 
the filelist or a file has no thumb shown.
Further the filename canonicalization done by the storage driver is 
not respected when checking the new file name.

Change-Id: I6f4b91bbf28e7b6f0cb8d7bcfb42f0cfb5eeacc6
Reviewed-on: https://review.typo3.org/27158
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[BUGFIX] Delete file with missing processed file raises alert

When a BE User deletes a file in the file module all file references
as well as processed files are removed, too. If then aprocessed files
is missing for some reason an alert is displayed in the backend module:

Could not delete file "foo.jpg". Write-permission problem?

The patch fixes the situation by adding a check whether before deleting.

Change-Id: I228624a3470340382950d3f54d8b428bfe831715
Releases: 6.2
Resolves: #55428
Reviewed-on: https://review.typo3.org/27123
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter
[TASK] Add possibility to dump file to browser

The FileAbstractionLayer currently only provides the possibility to
retrieve the contents of a file as a string. If you want to output
a file this would lead to a massive memory overhead for large files
when building some kind of download/jumpurl/access-restricted download
script.

This change adds a method "dumpFileContents" to the ResourceStorage
allowing to directly output the contents of the file including setting
correct headers.

In addition it introduces a new method (same name) in the DriverInterface
and implements it in the LocalDriver.

Resolves: #52589
Releases: 6.2
Change-Id: I050da59b136fafbf3f05ac814bd3f11f20ae2396
Reviewed-on: https://review.typo3.org/26835
Reviewed-by: Frans Saris
Reviewed-by: Philipp Gampe
Reviewed-by: Ingo Schmitt
Reviewed-by: Sebastian Fischer
Tested-by: Sebastian Fischer
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
[TASK] Add API to retrieve the parent folder of a resource

Currently if some code needs the parent directory or folder
object of some files or folders it either needs to query the
storage object for the identifier of the parent folder and then
create the folder object manually or needs to fiddle around with
the identifier manually, assuming that all identifiers are a
representation of a hierarchical path as it is for the local
driver.

The latter not only will fail for all storages having non-path
identifiers it is more overhead to create the folder objects
manually anyhow.

This patch adds "getParentFolder" to the ResourceInterface and
implements the method in AbstractFile and Folder as well as it
replaces the manual resolval in the file list module.

Releases: 6.2
Resolves: #54226
Change-Id: I651d62340186dd9ac57277b498f8f98ee160dfd2
Reviewed-on: https://review.typo3.org/26724
Reviewed-by: Alexander Opitz
Reviewed-by: Marcin Sągol
Reviewed-by: Sebastian Fischer
Tested-by: Sebastian Fischer
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
[BUGFIX] Fix fatal when processing folder does not exist

When the processing folder does not exist,
it is created on the fly in ResourceStorage.

However the returned object is at a later point
as string, leading to a fatal error in the end.

Solution is to just store the retuned object directly.

Resolves: #55471
Releases: 6.2
Change-Id: I97b4b5c7992db942812ae033fb963908a4abffde
Reviewed-on: https://review.typo3.org/27137
Reviewed-by: Steffen Ritter
Reviewed-by: Marcin Sągol
Reviewed-by: Anja Leichsenring
Tested-by: Anja Leichsenring
Reviewed-by: Helmut Hummel
Tested-by: Helmut Hummel
[TASK] Deleting currently opened folder in filelist results in error

When you have a folder opened in the filelist and then delete it
via the folder-tree the file-module shows an error after its reload.

This patch checks for existence of the folder before it is created.
If it is not existent it checks wether the parent folder exists and
is accessible. If, so the parent folder will be shown instead.

If the parent folder is not accessible the usual exception is thrown.

Releases: 6.2
Resolves: #54554
Change-Id: I7a21c76fd476ebce439489040f3b4c6786afd10a
Reviewed-on: https://review.typo3.org/27030
Reviewed-by: Marcin Sągol
Tested-by: Marcin Sągol
Reviewed-by: Marcel Wieser
Tested-by: Marcel Wieser
Reviewed-by: Steffen Ritter
Tested-by: Steffen Ritter