TYPO3 Flow Base DistributionPackagesApplications

Bug #48652

Copying configuration fails for files in subdirectories

Added by Andreas Wolf about 2 years ago. Updated 6 months ago.

Status:Resolved Start date:2013-05-29
Priority:Should have Due date:
Assigned To:- % Done:

100%

Category:-
Target version:-

Description

When a file should be copied to a subdirectory of Configuration/*/, e.g. for a subcontext, the scp operation fails.

The (misleading) error message is scp: /var/www/.../Configuration/Production/Subcontext/: Is a directory – the real cause is that the directory does not exist and thus scp would rather copy the file to the folder path, which is pointless as the path points to a directory.

Solution would be to execute a mkdir -p ...$configurationPath before copying the file.

Associated revisions

Revision 120f29af
Added by Andreas Wolf about 1 year ago

[BUGFIX] Copying config fails for subdirectories

When a file should be copied to a subdirectory of ``Configuration/*/``,
e.g. for a subcontext, the scp operation fails.

The (misleading) error message is "scp:
/var/www/.../Configuration/Production/Subcontext/: Is a directory" – the
real cause is that the directory does not exist and thus scp would
rather copy the file to the folder path, which is pointless as the path
points to a directory (as the path ends in a slash).

Solution is to execute a ``mkdir -p ...$configurationPath`` before
copying the file.

Change-Id: If00cb0dd133ed24a511224c7092e4938ec5fc9fb
Resolves: #48652

History

#1 Updated by Gerrit Code Review over 1 year ago

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

#2 Updated by Gerrit Code Review about 1 year ago

  • Status changed from New to Under Review

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

#3 Updated by Anonymous 6 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF