# 일부 도메인에서 PullHotlinkedImages가 작동하지 않음

**URL:** https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340
**Category:** Support
**Created:** [3월 13, 2022, 4:18오후 UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340 "2022-03-13T16:18:52Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [3월 13, 2022, 4:18오후 UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340/1 "2022-03-13T16:18:52Z")

</div>

링크를 보내주셔서 감사합니다. 그런데 잘 작동하지 않는 것 같습니다:

> [@일부 링크된 이미지가 표시되지 않거나 깨진 상태로 보임](https://meta.discourse.org/t/some-linked-images-not-displaying-show-as-broken/142177/8?u=canapin):
>
> In the end this turned out not to be reliable, it would work for a few posts but not for all. I’ll have to have another go at trying to upload the images again. I had issues with this before with requests just hanging. I’m not sure if I tried the skip\_validations parameter on those requests though.

하지만 이 해결책도 생각해 보았습니다.

다른 해결책으로는 모든 `[img]` 태그를 빈 줄로 대체하는 것이 있을 수 있습니다([아직 어떻게 해야 하는지 파악하지 못했습니다](https://meta.discourse.org/t/replace-a-string-in-all-posts/48729/143?u=canapin), 하지만 검색 중입니다), 하지만 게시글이 40,000개나 되어 이 부분에서 실패하고 싶지는 않습니다… 😅

* * *

수정: 아니요, 그렇게 하면 안 됩니다. “작동하는” 깨진 이미지가 `[URL]` 링크 안에 있기 때문에, 결과가 다음과 같이 보일 것입니다:

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/3/13e52aadffc45db6f7586a53d97f09ba6f1d494e.png)  
이미지가 표시되지 않습니다 😖

* * *

수정 2: 또한 `[IMG]` 태그를 표준 HTML 태그, 예를 들어 `<img src="https://nsm09.casimages.com/img/2019/07/23//19072308092617331416324744.jpg" />`로 대체하는 것도 시도해 보았습니다.  
하지만 문제는 `[IMG]` 태그를 사용할 때와 동일하여, 이것도 작동하지 않습니다. 게시글 미리보기에서는 모든 이미지가 잘 표시되는데 정말 속상합니다…

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/4/34f141bf958f5bb18a4c8923a857645329cd7451.jpeg)

* * *

수정 3: 동일한 현상(대략적으로)이 새로 작성된(가져오지 않은) 게시글에서도 나타나지만, 모든 이미지 링크에서 그런 것은 아닙니다.  
또한, 자동 이미지 표시가 작동하지 않을 경우, Discourse에서 사용되는 수동 태그나 이미지 서식을 사용하면 이미지가 표시됩니다.

 ![image](https://global.discourse-cdn.com/meta/original/3X/e/5/e512023699369c94503cd31b8b013d1b3fb77004.jpeg)

 ![image](https://global.discourse-cdn.com/meta/original/3X/2/e/2eda10122f8ee1f9c32a5ef5de52c017ae35ce45.jpeg)

HTML을 다시 빌드해도 처음 두 링크가 이미지로 표시되지 않습니다; 이미지가 직접 표시되어야 하는데도 불구하고 그대로 유지됩니다.

하지만!  
PullHotlinkedImages 작업이 실행되면, 이미지가 깨집니다!

 ![image](https://global.discourse-cdn.com/meta/original/3X/d/4/d43c3316b9a4f00132d450b039bed01e37c9aacf.jpeg)

무슨 일이 일어나고 있는지, 그리고 이 모든 문제가 어떤 식으로든 연결되어 있는지를 점점 더 이해하지 못하고 있습니다.

**그것은 Discourse 문제처럼 _보이지만_… 실제로 그런가요?**

Discourse의 이전 버전에서 테스트할 수 없습니다. 제 모든 포럼은 최신 버전을 사용 중입니다.

(그리고 Discourse 로그에는 아무것도 없습니다)

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [3월 13, 2022, 11:24오후 UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340/2 "2022-03-13T23:24:27Z")

</div>

이 마지막 문제는 try.discourse.org에서 재현됩니다.

게시물:

```plaintext
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)

```

확인해 주세요:

1. 첫 번째 링크는 이미지를 표시하지 않습니다.
2. 모든 이미지 포맷은 미리보기와 메시지 게시 후 모두 이미지를 올바르게 표시합니다.
3. 원격 이미지가 다운로드되기를 기다리면 이미지가 깨집니다:  
 ![image](https://global.discourse-cdn.com/meta/original/3X/4/6/4621885e7e5eef0e10f192f73359bb1b305714bf.png)

☹

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [3월 14, 2022, 12:17오전 UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340/3 "2022-03-14T00:17:47Z")

</div>

그럼 버그인 것 같네요. 이미지 다운로드 후에 `upload://ddd`로 바뀌기 때문인 것 같습니다.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [3월 14, 2022, 9:47오전 UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340/6 "2022-03-14T09:47:06Z")

</div>

@Canapin 감사합니다, 확인해 보겠습니다.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [3월 16, 2022, 4:18오후 UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340/9 "2022-03-16T16:18:19Z")

</div>

[www.serial-kombi.com](http://www.serial-kombi.com) 웹 서버가 잘못 구성되어 있어 이미지가 다운로드되지 않습니다. 서버가 불완전한 인증서 체인을 전송하고 있으며, 중간 인증서가 누락되어 있습니다.

대부분의 브라우저는 다른 사이트에서 “Sectigo RSA Organization Validation Secure Server CA” 중간 인증서를 캐시하고 있을 가능성이 높으므로, 이 문제는 눈에 잘 띄지 않습니다. 다운로드가 실패하는 이유는 OpenSSL에는 이러한 캐시가 없기 때문이며(저의 지식 범위 내에서), 서버가 인증서를 전송하도록 요구하기 때문입니다.

[SSL Server Test for www.serial-kombi.com](https://www.ssllabs.com/ssltest/analyze.html?d=www.serial-kombi.com&hideResults=on)에서 직접 확인해 보세요. 불완전한 인증서 체인을 보고하고 있습니다.

---

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [3월 16, 2022, 4:39오후 UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340/10 "2022-03-16T16:39:07Z")

</div>

확인해 주셔서 감사합니다!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [4월 17, 2022, 11:51오전 UTC](https://meta.discourse.org/t/cannot-pullhotlinkedimages-for-some-domains/221340/12 "2022-04-17T11:51:29Z")

</div>

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