Skip to content
This repository has been archived by the owner on Jun 18, 2023. It is now read-only.

Unable to connect to study on HTTPS if using non-standard port #304

Closed
lrasmus opened this issue Jan 10, 2023 · 0 comments
Closed

Unable to connect to study on HTTPS if using non-standard port #304

lrasmus opened this issue Jan 10, 2023 · 0 comments

Comments

@lrasmus
Copy link
Contributor

lrasmus commented Jan 10, 2023

If your server is using SSL, but the URL has a different port than the default (443) when you attempt to join the study the UI will hang at the message "Loading study".

For example, connecting to a study at: https://aware.test.com/index.php/1/TEST works fine

Connecting to a study at: https://aware.test.com:4433/index.php/1/TEST will fail.

SSLManager.java reconstructs URLs for downloading the SSL cert:

X509Certificate certificate = retrieveRemoteCertificate(new URL(protocol+"://"+hostname));

However, this does not incorporate the port. We can use the URL class constructor to flexibly consider the port, if it is provided.

denzilferreira added a commit that referenced this issue Jan 11, 2023
Closes #304 - support HTTPS on non-standard port
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant