We upgraded our application from WiseJ 2.5 to 3.1
We also moved hosting the application from IIS to Linux.
The application works as expected however the PDF viewer is not displaying documents.
We have tried both methods below and both are unsuccessful on Linux but successful on Windows.
No errors are thrown, just nothing displays.
PdfViewer1.PdfSource = String.Format(“https://[our domain]/pdf/{0}”, cboDocuments.SelectedItem.ToString)
PdfViewer1.PdfStream = New FileStream(Path.Combine(Application.StartupPath, “pdf”, cboDocuments.SelectedItem.ToString), FileMode.Open)
I am experiencing issue that PDFviewer is not working when Authentication is enabled on NGINX site.
I am getting 401 on GET requests
[24/Mar/2023:14:34:20 +0000] – – 401 – GET https someurl.net “/postback.wx?sid=6959d9f4-c5c1-29b8-c39e-11f43b44b8e4&x=ewAiAGkAZAAiADoAIgBpAGQAXwA5ADAAOQAiAH0A&v=638152652604151114” [Client X.X.X.X] [Length 578] [Gzip -] [Sent-to 172.18.0.11] “Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.51” “https://mozilla.github.io/”
If authentication is disabled no error is shown and PDFViewer works as expected
I had to add CAS to NGINX site configuration.
PdfViewer1.PdfSource is now working.
Hi Chad,
I tried previewing a PDF from a Linux server and it works as expected.
We would need a reproducible test case that works on windows but fails on Linux, if you can wrap up a small sample that would be great!
Best,
Alaa
Hi Chad,
Thank you for reporting this issue, we will try to reproduce it and get back to you ASAP!
Best,
Alaa
Please login first to submit.