I ran into two issues here:
- Missing intermediate certs make images from https sources non-readable. The same is probably true for invalid certs.
- If the current user (running sp) has no write permissions to the IMGCACHE dir, an „Image not found!“ error is issued.
In both cases the error messages are very misleading. Clearer messages would have saved me several hours of debugging.
In the first case, I’m not really sure why the cert error is not being displayed.
In the second case, it seems like saveFileFromUrl() doesn’t properly output the error because the path exists and leads to a dir. It’s just not writeable. Not sure if MkDirAll() returns an error, but it wouldn’t be handled anyway.
I ran into two issues here:
In both cases the error messages are very misleading. Clearer messages would have saved me several hours of debugging.
In the first case, I’m not really sure why the cert error is not being displayed.
In the second case, it seems like
saveFileFromUrl()doesn’t properly output the error because the path exists and leads to a dir. It’s just not writeable. Not sure ifMkDirAll()returns an error, but it wouldn’t be handled anyway.