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

Volumes can be created with invalid cache control settings #177

Open
nternetinspired opened this issue May 3, 2024 · 0 comments
Open

Volumes can be created with invalid cache control settings #177

nternetinspired opened this issue May 3, 2024 · 0 comments
Labels

Comments

@nternetinspired
Copy link

Description

When creating a volume it is possible to select a cache duration expiresPeriod with the dropdown, without entering any value, which causes image uploads and image transforms to fail.

User error? Yes, but I'd expect it to not be possible to save the dropdown duration expiresPeriod, to project.yaml, without an associated expiresAmount value.

Steps to reproduce

  1. Create an asset volume, type S3, completing required fields.
  2. Select a cache duration (e.g. seconds).
  3. Save.

Existing assets in the volume can be indexed, but Craft cannot create the transforms for control panel thumbnails and new uploads fail with the error message 'Unknown or bad format ( seconds) at position 0 (s): The timezone could not be found in the database'.

Additional info

  • Craft version: 4.9.1
  • PHP version: 8.3.6
  • Database driver & version: MySql 8.0.36
  • Plugins & versions: aws-s3 2.2.1
@nternetinspired nternetinspired changed the title S3 volumes can be created with invalid cache control settings Volumes can be created with invalid cache control settings May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant