Skip to content

[4.x]: #17940

@robinbeatty

Description

@robinbeatty

What happened?

Description

If the asset filesystem defined as the user photo filesystem has an environment variable as a subfolder path, the user photo returned (in our case by a graphql query) does not resolve the environment variable.

Instead we get asset paths like: https://dnncp3lgytrag.cloudfront.net/$S3_IMAGES_SUBFOLDER/user/sjoda_pullur.png

Other uses of the same filesystem correctly resolve the path.

Craft CMS version

4.16.4

PHP version

8.2

Operating system and version

No response

Database type and version

No response

Image driver and version

No response

Installed plugins and versions

"born05/craft-assetusage": "^3.3",
"born05/craft-sentry": "3.0.0",
"carlcs/craft-uielementfields": "2.0.3",
"craftcms/aws-s3": "2.2.3",
"craftcms/cms": "4.16.4",
"craftcms/feed-me": "5.11.0",
"craftcms/mailgun": "3.1.0",
"craftcms/redactor": "3.1.0",
"doublesecretagency/craft-cpcss": "2.6.0",
"doublesecretagency/craft-cpjs": "^2.5",
"ether/simplemap": "4.0.8",
"jamesedmonston/graphql-authentication": "^2.5",
"nystudio107/craft-imageoptimize": "^4.0",
"nystudio107/craft-vite": "4.0.10",
"ostark/craft-async-queue": "3.2.1",
"putyourlightson/craft-campaign": "2.18.0",
"putyourlightson/craft-dashboard-begone": "^2.0",
"spicyweb/craft-quick-field": "2.0.8",
"symfony/mailgun-mailer": "^7.0",
"thomasvantuycom/craft-cloudinary": "1.7.2",
"verbb/field-manager": "3.0.9",
"vlucas/phpdotenv": "^5.4.0"

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions