Prevent staging areas that nested in the active Composer project directory

Created on 22 July 2022, almost 2 years ago
Updated 18 January 2023, over 1 year ago

Problem/Motivation

found in #3277830: [DrupalCon] Automatic Updates beta test result β†’

The temporary directory write issue in the container. It seems like the automatic_updates module tried to create a directory in the /tmp directory in the container and it was not able to do that. As a workaround, I changed the temporary directory for the Drupal site in settings.php using
$settings['file_temp_path'] = 'sites/default/files/tmp';

Right now we don't prevent but I could see there being complications. Basically file_temp_path could be anything and we might want some restrictions.

But re @travisCarden Composer Stager does support staging directory under the active directory https://www.drupal.org/project/automatic_updates/issues/3277830#comment-... β†’

Proposed resolution

TBD

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States tedbow Ithaca, NY, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • Issue was unassigned.
  • Status changed to RTBC over 1 year ago
  • Status changed to Fixed over 1 year ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.69.0 2024