Closed (fixed)
Project:
CDN
Version:
8.x-3.4
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
6 Jan 2020 at 15:18 UTC
Updated:
2 Jul 2021 at 15:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
rahul.shindeComment #3
wim leersThanks for the report and the patch! You must have updated to version 3.4 which I tagged last week — thanks for doing that! 😀
Comment #4
rahul.shinde@Wim Leers here are the details,
PHP version: 7.3.13
Web Server: Apache/2.4.25 (Debian)
About the test, I haven't checked.
Comment #5
wim leersOhhhh wait
That is just a faulty call to
file_create_url()! Can you look at the function call trace? Which code calledfile_create_url()?Comment #6
rahul.shindeHere is the trace log,
After going throw the logs, there are function calls to file_url with empty argument. I have fixed those internally. And everything back to working.
The submitted patch is no longer needed.
Comment #7
wim leersPerfect :)
The call trace indeed shows that there is at least one Twig template which might call
file_create_url()withNULLas an argument.Glad we were able to sort that out quickly! And your code is now again slightly more robust too! 🤓🥳
Comment #9
michele bertani commentedThe patch #2 work as expected
There are downsides to stopping the hook?
Comment #10
renguer0 commented#2 working here in Php 7.4.5 in Nginx.
It have some sides effect? Maybe it can be comitted, I think that situation is critical (just broke all the URLs on the site).
Thanks for share this patch.
Comment #11
lpeabody commentedWim, while I understand your position that someone should not be sending a NULL value into file_create_url, since core allows the propagation of a NULL value here, I think its fair to say that modules should expect this case, and thus it is a bug if not properly handled. If you're going to perform an operation on something, then you should always be validating what you need to perform said operation. CDN is clearly not doing that in some cases, as can be seen here.