Problem/Motivation

Moving files between two different stream wrappers isn't always possible or ideal. For example, imagine two S3 buckets, one with the s3a:// and another with s3b:// stream wrapper scheme. Using s3a://tmp as the temporary location and s3b://file/[file:fid] as the permanent location could result in file movement errors between the two S3 buckets.

Proposed resolution

Allow temp_location config to be overridden on a per-field basis.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

robphillips created an issue. See original summary.

bobooon’s picture

Status: Active » Needs review
StatusFileSize
new3.39 KB
bobooon’s picture

StatusFileSize
new3.49 KB

Use #2 against non-patched 8.x-1.x. Use #3 if using patch from #2718783: Call to undefined method BaseFieldDefinition::getThirdPartySettings().

b_sharpe’s picture

Fixes Undefined index "temp_location" from above. Patch 4 + interdiff. Patch combined also for 2718783.

The last submitted patch, 4: 3257811-4-temp-location-override.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

The last submitted patch, 4: 3257811-4-temp-location-override.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

bobooon’s picture

Fixed undefined index warning.

bobooon’s picture

b_sharpe’s picture

voleger’s picture

Status: Needs review » Needs work

Nice feature. Please prepare a MR and add test coverage.

voleger’s picture

Priority: Normal » Major

b_sharpe changed the visibility of the branch 3257811-tmp-path to hidden.

b_sharpe’s picture

Moved to MR, still needs tests.

  • voleger committed d6a261eb on 8.x-1.x authored by b_sharpe
    feat: #3257811 Override temp_location in field configuration
    
voleger’s picture

Status: Needs work » Fixed

Added test and merged in. Thanks.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.