Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Root path issues with S3 filesystem driver #5622

Closed
bryantgillespie opened this issue Mar 23, 2022 · 1 comment
Closed

Root path issues with S3 filesystem driver #5622

bryantgillespie opened this issue Mar 23, 2022 · 1 comment

Comments

@bryantgillespie
Copy link

Bug description

Description

Hi gents,

I've got the S3 driver setup and working ok with the bucket from S3. I'm trying to set a root folder within the bucket so that my client doesn't see or access the other folders within the bucket, but everytime I try to set the root I get an error.

ScreenShot 2022-03-23 at 09 57 53@2x

ScreenShot 2022-03-23 at 09 57 05@2x

[13:52:10] LOG.error: Undefined array key "dirname" {"userId":"f8a63412-ece2-4050-931f-2aa0992f1845","exception":{}}

Screencast

2022-03-23-BUG-S3 Driver > Root - Watch Video

How to reproduce

Configure the S3 driver for an asset container and then try to add a root path.

  'assets' => [
            'driver' => 's3',
            'root' => 'assets/', // <- issue is here
            'key' => env('AWS_ACCESS_KEY_ID'),
            'secret' => env('AWS_SECRET_ACCESS_KEY'),
            'region' => env('AWS_DEFAULT_REGION'),
            'bucket' => env('AWS_BUCKET'),
            'url' => env('AWS_URL'),
            'cache' => true,
            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
            'visibility' => 'public',
        ],

Logs

No response

Versions

Statamic 3.3.2 Pro
Laravel 9.5.1
PHP 8.0.15

Installation

Fresh statamic/statamic site via CLI

Antlers Parser

No response

Additional details

No response

@jasonvarga
Copy link
Member

Duplicate of #5535

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants