# HTTPS: Attachements tab empty + "Failed to retrieve image selection form" + Activity Stream empty

**URL:** <https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675>\
**Category:** Help / Discuss\
**Tags:** attachments, image, error, https\
**Created:** [June 13, 2023, 7:29pm UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675 "2023-06-13T19:29:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierre](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.xwiki.org/u/Pierre)\
**Post date:** [June 13, 2023, 7:29pm UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675/1 "2023-06-13T19:29:45Z")

</div>

Hello,

I set up an XWiki website on a Mac Mini, using Docker. _tomcat/conf_ and _/certs_ folders are mounted from outside of Docker. This allows me to modify the server.xml and web.xml accordingly, in order to run it via HTTPS.

I can access the XWiki website using HTTPS, which is nice.

The issue I get right now is that I cannot see the Attachments. The field is empty.  
Moreover, when going to the “three vertical dots” icon of a page, then clicking on Attachments, I get an error from the web browser, saying it cannot reach the server, “The server unexpectedly dropped the connection […] might be due to server busy”.

I also get the error “Failed to retrieve image selection form” when I want to upload a new attachment from a page, and the Edit image pop up window is empty with a spinning loading icon.

Last issue encountered in HTTPS, the Activity Stream of the Dashboard is now empty. Maybe this 2 issues are strongly related? If I revert to HTTP, everything works as expected.

Everything else seems to work fine, and there is definitely something I don’t understand here with the HTTPS and XWiki… If someone can help me with that, that would be appreciated!

Thanks.

---

<div class="post-metadata">

**Author:** ![Pierre](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.xwiki.org/u/Pierre)\
**Post date:** [June 13, 2023, 9:20pm UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675/2 "2023-06-13T21:20:14Z")

</div>

I tried the following too:

```auto
<Connector port="8080"
           ...
           secure="true"
           scheme="https">
</Connector>

<
Valve className="org.apache.catalina.valves.RemoteIpValve"
       remoteIpHeader="x-forwarded-for"
       protocolHeader="x-forwarded-proto">
</Valve>

```

No luck, same issue.

---

<div class="post-metadata">

**Author:** ![Pierre](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.xwiki.org/u/Pierre)\
**Post date:** [June 13, 2023, 9:35pm UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675/3 "2023-06-13T21:35:55Z")

</div>

Edit: complementary information, I wanted to set Tomcat itself for using HTTPS, as described here:

> **[Tomcat Installation (XWiki.org)](https://www.xwiki.org/xwiki/bin/view/Documentation/AdminGuide/Installation/InstallationWAR/InstallationTomcat/#Hhttps28secure29)**
>
> Enterprise wiki for sharing knowledge

Also, I access the XWiki website via a domain name, pointing to a Digital Ocean server and rerouted through WireGuard to the local Mac Mini. Although I assume the aforementioned issue is related to XWiki x HTTPS and not something else, but I might be wrong.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [June 14, 2023, 9:16am UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675/4 "2023-06-14T09:16:12Z")

</div>

I guess you could check the javascript console of your browser to look for errors and the dev tools in general to check what HTTP(s) request are made and why some are failing. It’s likely that you have some config error somewhere in your setup.

---

<div class="post-metadata">

**Author:** ![Pierre](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.xwiki.org/u/Pierre)\
**Post date:** [June 14, 2023, 4:38pm UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675/5 "2023-06-14T16:38:44Z")

</div>

Thank you for your help.  
In the javascript console, I spotted this issue, happening only with HTTPS:

_**[Error] Failed to load resource: La connexion réseau a été perdue. https://\<my\_domain\_name\>/bin/get/\<page\_path\>/WebHome?xpage=xpart&vm=attachmentsinline.vm**_

Same when calling _ **ImageSelectorService** _

Also, when loading the Dashboard:  
_**[Error] Failed to load resource: La connexion réseau a été perdue. https://\<my\_domain\_name\>/asyncrenderer/notifications/display/5ALERT\_25xwiki%253AXWiki.\<my\_name\>10\_null-728580219/locale/en/request.wiki/xwiki/user/xwiki%253AXWiki.\<my\_name\>/184?clientId=184&timeout=500&wiki=xwiki**_

Any clue?

---

<div class="post-metadata">

**Author:** ![Pierre](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.xwiki.org/u/Pierre)\
**Post date:** [June 14, 2023, 5:30pm UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675/6 "2023-06-14T17:30:26Z")

</div>

Other (maybe useful) info:

When trying several bottom page tabs, such as Information, History or Comments, from the JavaScript console (Network tab) I see that the request went fine, with code 200.  
For instance, with **WebHome vm:** _informationinline.vm_ it is a success.

However, when clicking on the Attachments tab ( **WebHome vm:** _attachmentsinline.vm_) I get nothing in _Response_, but **Aucun en-tête de réponse** ( **no response header** ).

Would this has to do with the _x-forwarded-for_ in the _server.xml_?

---

<div class="post-metadata">

**Author:** ![Pierre](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/p/d07c76/32.png) [@Pierre](https://forum.xwiki.org/u/Pierre)\
**Post date:** [June 14, 2023, 10:09pm UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675/7 "2023-06-14T22:09:15Z")

</div>

I solved the issue. It was a line in the HTTPS config. that upgraded HTTP1.1 to HTTP2. Removing it solved everything.

Thanks.

---

<div class="post-metadata">

**Author:** ![vmassol](https://forum.xwiki.org/user_avatar/forum.xwiki.org/vmassol/32/6_2.png) [@vmassol](https://forum.xwiki.org/u/vmassol)\
**Post date:** [June 15, 2023, 8:28am UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675/8 "2023-06-15T08:28:04Z")

</div>

great!

---

<div class="post-metadata">

**Author:** ![alexw](https://forum.xwiki.org/letter_avatar_proxy/v4/letter/a/b5a626/32.png) [@alexw](https://forum.xwiki.org/u/alexw)\
**Post date:** [February 13, 2024, 4:52pm UTC](https://forum.xwiki.org/t/https-attachements-tab-empty-failed-to-retrieve-image-selection-form-activity-stream-empty/12675/9 "2024-02-13T16:52:34Z")

</div>

Solution works!  
Removing the line in connector configuration section in server.xml prevents using HTTP2 protocol in tomcat. MaxThreads should be increased to compensate the HTTPS2 advantage.
