Cannot PullHotlinkedImages for some domains

Thank you for the link. Apparently it didn’t work that well:

But I indeed thought about this solution as well.

Another solution could be to replace all [img] tags with empty new lines (couldn’t figure out yet to do it, but I’m searching), but there are 40000 posts, so I prefer not to fail on this one… :sweat_smile:


edit: nope, that wouldn’t work, because the “working” broken image are inside a [URL] link, so here’s what the result would look like:
image
The images wouldn’t be displayed :confounded:


edit 2: I also tried to replace the [IMG] tags by standard HTML tags, such as <img src="https://nsm09.casimages.com/img/2019/07/23//19072308092617331416324744.jpg" />
But the problem is still the same as with the [IMG] tags, so it doesn’t work either. That’s really a bummer, especially when all the images are nicely displayed in the post preview…


Edit 3: the same phenomenon appears (sort of) in new (non-imported) posts, but not for all image links.
Also, if the automatic image display doesn’t work, the image are displayed if we use manually any tag or image formatting used by Discourse.

Rebuilding HTML won’t make the two first links display as images; They’ll be kept as they are, despite the fact that they should display directly an image.

BUT!
When the PullHotlinkedImages jobs are executed, then, the images break!

I understand less and less what’s going on and if all these issues are connected in any sort of way.

That looks like a Discourse issue… But is it?

I can’t try on an older version of Discourse, all my forums are on the latest.

(and nothing in Discourse’s logs)

5 Likes

This last issue is reproductible on try.discourse.org.

Post:

https://www.serial-kombi.com/Content/images/PRO_/PRO_211881350_1.jpg

[img]https://www.serial-kombi.com/Content/images/PRO_/PRO_211881350_1.jpg[/img]

<img src="https://www.serial-kombi.com/Content/images/PRO_/PRO_211881350_1.jpg" />

![](https://www.serial-kombi.com/Content/images/PRO_/PRO_211881350_1.jpg)

See that:

  1. the first link doesn’t display the image
  2. all image formatting correctly display the image, both in the preview and even after posting the message
  3. wait for the remote images to be downloaded; images break:

:frowning:

3 Likes

That’s a bug then, I’d think. I think it’s because after the image is downloaded it becomes upload://ddd.

3 Likes

Merci @Canapin, we’ll have a look.

3 Likes

The image fails to download because the www.serial-kombi.com webserver is misconfigured. It’s sending an incomplete certificate chain. The intermediate certificate is missing.

Most browsers probably have the “Sectigo RSA Organization Validation Secure Server CA” intermediate certificate cached from another site, so it’s not an obvious issue. The download fails, because AFAIK OpenSSL doesn’t have such a cache. It requires the server to send it.

See for yourself in the SSL Server Test for www.serial-kombi.com. It reports an incomplete certificate chain.

6 Likes

Thank you for the clarification!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.