If an entity references a file at the root of a stream wrapper ( for example public://foo.jpg ), then handlePhysicalFiles incorrectly calculates the directory uri (makes it public:/ ). At that point, file_prepare_directory will refuse to prepare the directory_uri, and the user is presented with an error message.

CommentFileSizeAuthor
#2 2908955-2-streamwrapper-dirname.patch926 bytesDeFr

Comments

DeFr created an issue. See original summary.

DeFr’s picture

Status: Active » Needs review
StatusFileSize
new926 bytes

Let's use the stream wrapper dirname instead of exploding / imploding.

  • DeFr authored c2af0ac on 8.x-1.x
    Issue #2908955 by DeFr, Grimreaper: Files directly at the root of a...
grimreaper’s picture

Status: Needs review » Fixed

Hello,

Thanks for the patch. I have been able to reproduce the bug and the patch fixes it.

I will release a new version of the module.

Status: Fixed » Closed (fixed)

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