Closed joshuabaker closed 3 years ago
Might the following condition be the issue?
The SCENARIO_REPLACE
scenario isn’t considered here, but it’s used in Craft’s replaceAssetFile
method.
That's an interesting notion @joshuabaker -- are you able to quickly change it to:
if ($isNew || $scenario === Asset::SCENARIO_FILEOPS || $scenario === Asset::SCENARIO_REPLACE) {
To see if that fixes this in your case?
@joshuabaker ? Have you tried applying the above?
@khalwat I haven’t, no. We’ve moved to next/image
for this particular site.
Okay. I've been unable to reproduce, so I will close it. Feel free to re-open if you revisit it.
Description
When renaming an asset on an S3 volume the underlying file replacement fails causing broken asset links.
Stack trace
Versions
This is possibly a variant or duplicate of #253.