-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
strange code flow for url generation #24
Comments
The reason for the http connection is the communication with local servers like raspberry pi. We do not have a better solution to distinguish between https servers and local servers. Do you have an idea? |
to desxribe the situation in more detail:
Currently we see no possibility to distinguish these use cases. We could inform the user about the case ("we got no https ... are you sure, ..."), but we believe, that this would lead to more confusion and not to more clarity. We would greatly appreciate any ideas how to solve this problem. |
The code uses The code falls back to http after any failure in the code before. Not even the error is logged. This is my main concern. The proper way would be to use URL-parsing provided by java and use On top a way should be provided to pinpoint the protocol to a desired option (like wanting http on a server in the local network that hasn't any ssl cert) or forcing ssl on localhost because it has a valid cert. Finally the exception should not change the protokoll, especially not to a less secure solution. What do you think? |
In
de/fhg/iais/roberta/connection/ServerCommunicator.java
an URL is created from hostname & port for https. In case of failure it silently (!) retries with http.I found the case because java 1.9 doesnt work here. It throws an exception in the ssl code (need to investigate that). But the error seen is that plaintext is used on https port.
The text was updated successfully, but these errors were encountered: