Feature #3560

Display meaningful error message if temporary path would be too long for OS

Added by Robert Lemke over 10 years ago. Updated almost 9 years ago.

Status:
Resolved
Priority:
Should have
Category:
Utility
Start date:
2009-06-04
Due date:
% Done:

100%

PHP Version:
Has patch:
Complexity:

Description

Certain setups (Windows ...) don't allow long path names. If FLOW3 is installed somewhere deep in the file structure, the path + file name for the caches and temp directory can become too long.

Currently this results in an exception thrown when trying to write to that directory (see #3550) but this could be checked earlier, when the temp directory is created in Utility\Environment. A meaningful error message would help to configure FLOW3 correctly.


Related issues

Related to TYPO3.Flow - Bug #3550: Uncaught FLOW3 Exception in FileBackend on Windows Closed 2009-06-03
Related to TYPO3.Flow - Task #4088: Check maximum allowed path length only when creating of cache files failed Closed 2009-07-31

Associated revisions

Revision 5310cc0c (diff)
Added by Bastian Waidelich about 10 years ago

[+FEATURE] FLOW3 (Cache): Throw exception if FileBackend tries to create a file with a path that exceeds the maximum allowed path length. Fixes #3560
[+FEATURE] FLOW3 (Environment): Create warning log entry if temporary base path is longer than (PHP_MAXPATHLEN - 230). Relates to #3560
[BUGFIX] FLOW3 (Monitor): Fixed one more file monitor test that failed on Windows. Relates to #3823

Revision 049ce6ef (diff)
Added by Bastian Waidelich about 10 years ago

[~TASK] FLOW3 (Cache): FileBackend now stores the result of $this->environment->getMaximumPathLength() to increase performance. Relates to #3560

History

#1 Updated by Robert Lemke about 10 years ago

  • Target version changed from 1.0 alpha 2 to 283

#2 Updated by Robert Lemke about 10 years ago

  • Target version changed from 283 to 1.0 alpha 3

#3 Updated by Robert Lemke about 10 years ago

  • Assignee set to Bastian Waidelich

#4 Updated by Bastian Waidelich about 10 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r2898.

Also available in: Atom PDF