Project

General

Profile

Actions

Task #51512

closed

Epic #55070: Workpackages

Epic #54260: WP: FAL Missing Issues / Features / API

Story #54267: As an Editor I want to use a FAL withouth bugs

Unreadable directories cause exceptions

Added by Bernhard Kraft over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
File Abstraction Layer (FAL)
Target version:
Start date:
2013-08-29
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
medium
Sprint Focus:

Description

If there is an unreadable file in the fileadmin directory the tree and listing frame of fileadmin throw execptions which make the fileadmin unusable.

reproducing the error:

mkdir -p fileadmin/testDirectory/someDirectory
chown root:root fileadmin/testDirectory/someDirectory
chmod 600 fileadmin/testDirectory/someDirectory

Browse to "testDirectory" and the issues begin ...

Normally all directoreis in "fileadmin" should be readable but in the case of a network mounted directory (Windows share, SMB/CIFS, NFS, cloud storage, etc.) it could be that parts of the fileadmin directory are unreadable and that this can not get changed by the webadmin.

I am working on a patch.


Files

patch_51512.diff (1019 Bytes) patch_51512.diff Bernhard Kraft, 2013-08-29 14:29

Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Bug #59568: filelist: No context-menu for foldersClosed2014-06-13

Actions
Has duplicate TYPO3 Core - Bug #53854: Exception if a directory in storage isn't readableClosed2013-11-22

Actions
Actions #1

Updated by Philipp Gampe over 10 years ago

  • Category changed from Backend User Interface to File Abstraction Layer (FAL)
  • Status changed from New to Accepted
  • Assignee set to Bernhard Kraft
  • Complexity set to medium
Actions #3

Updated by Gerrit Code Review over 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/23460

Actions #4

Updated by Bernhard Kraft over 10 years ago

  • Status changed from Under Review to Accepted
Actions #5

Updated by Bernhard Kraft over 10 years ago

The question is:

Should the drivers of a FAL storage throw execptions in the case of an error and those exceptions should get handled by the Repository/Storage.

Or should a driver never throw an exception but catch them on the public methods available to the Storage and simply return NULL value results or empty arrays in such a case.

Actions #6

Updated by Andreas Wolf over 10 years ago

  • Is Regression set to No

Catching exceptions is the responsibility of the UI/control logic, because it knows best how to deal with them - display a message, discard them or just let the whole operation fail. Driver exceptions could be wrapped by the Storage, to have unified exceptions, but that's not strictly necessary if we limit the types of exceptions that drivers might throw for certain operations.

Actions #7

Updated by Steffen Ritter over 10 years ago

  • Assignee changed from Bernhard Kraft to Steffen Ritter
Actions #8

Updated by Steffen Ritter over 10 years ago

  • Parent task set to #54267
Actions #9

Updated by Gerrit Code Review over 10 years ago

  • Status changed from Accepted to Under Review

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26905

Actions #10

Updated by Steffen Ritter over 10 years ago

  • % Done changed from 0 to 50
Actions #11

Updated by Gerrit Code Review over 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26905

Actions #12

Updated by Gerrit Code Review about 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26905

Actions #13

Updated by Gerrit Code Review about 10 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/26905

Actions #14

Updated by Steffen Ritter about 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 50 to 100
Actions #15

Updated by Georg Ringer over 9 years ago

works now, can't reproduce in master.

Actions #16

Updated by Riccardo De Contardi over 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF