Bug #65983
closedClipboard does not work between two filestorages
100%
Description
- Create a new filestorage and filemount
- Copy one or multiple folder(s) from existing filestorage (add them to clipboard)
- Click to new filemount
Then this error appears (backtrace, attached to this ticket):
#1422709241: Given folder "/the_first_folder_you/copied/" is not part of this storage!So it is currently impossible to change the filestorage of files (without doing database voodoo).
Files
Updated by Markus Klein over 9 years ago
- Status changed from New to Accepted
Happens with folders only.
Updated by Gerrit Code Review over 9 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38125
Updated by Markus Klein over 9 years ago
\TYPO3\CMS\Core\Resource\ResourceStorage::isWithinFolder()
public function isWithinFolder(Folder $folder, ResourceInterface $resource) { if ($folder->getStorage() !== $this) { throw new \InvalidArgumentException('Given folder "' . $folder->getIdentifier() . '" is not part of this storage!', 1422709241); }
IMO the $folder->getStorage() !== $this
must be changed to $resource->getStorage() !== $this
.
After that the exception is gone, but still pasting the folder fails.
Moreover if you copy a folder A located in /B/ and you try to paste it again into /B/ an exception is thrown. It looks like copying folder does not work properly in most cases and only works in some cases when you're lucky.
Updated by Gerrit Code Review over 9 years ago
Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38128
Updated by Gerrit Code Review over 9 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38125
Updated by Frans Saris over 9 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 4147fd7949eb6128d5fef7aa1af63808f66748c7.
Updated by Gerrit Code Review over 9 years ago
- Status changed from Resolved to Under Review
Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38128
Updated by Frans Saris over 9 years ago
- Status changed from Under Review to Resolved
Applied in changeset 71277f9cf2f51e66c84c3b1047d5ff81604c29f6.