Here are the specs. The master and the worker are identical and these specs apply to both:
Product and version: FileMaker Server 126.96.36.199
OS and version: Windows Server 2012 R2
Browser and version: Chrome 58.0.3029.110 (64-bit)
Hardware: AWS t.2 Medium: Dual Core 2.40 GHz, 4.0GB RAM
Description: Export Field Contents fails in WebDirect on a multi machine deployment with SSL certs installed on worker and master
How to replicate:
Setup Multi-machine deployment for FileMaker Server.
Install SSL certs on both worker and master.
Open Admin console, and go to:
Database Server -> Security
Check the box for "Use SSL for database connections"
Check the box for "Use HSTS for web clients"
Open a file in WebDirect and try to Export Field Contents. The initial prompt looks successful, but when you click the button to download the file, nothing gets downloaded.
Additionally, calling Get(LastError) after this reports a 0.
Disable these checkboxes:
"Use SSL for database connections"
"Use HSTS for web clients"
Then restart server, and have your webdirect clients connect over http.
Save Records as PDF does work as intended, and the file downloads fine.
I set up a multi machine deployment solely for the purpose of recreating this issue, and was able to reproduce immediately. Well, after setting up the multi machine deployment and the ssl certs.
Safari behaves slightly differently, there is a file that gets put into the download folder, but the file has 0 bytes. Safari actually throws an error for this saying:
The File "Filename.png" could not be opened because it is empty
With the cert installed, and HSTS disabled, this becomes easier to test. I can connect over http and successfully export the container. When I connect over https, I get no download (Chrome), or a 0-byte file (Safari)
Any help with this issue would be greatly appreciated. Please let me know if I can provide any more information.