-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Replace the deprecated new URL()
constructor
#19159
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM siemensrds
Cool that you're doing this for all bindings. 👍 Some time ago I went binding by binding and paused/stopped my mission when I got to the http binding, which was not a 15 minute job, at least for me. 😄 |
LGTM: for miio |
Really cool.. until i discovered it wasn't a 15 minute job haha. I created a helper method to parse the string as URI.
Another topic is if the helpermethod that is now inside the http binding should be extracted to core StringUtils so it will be available to all bindings. wdyt? As i'm not german and my experience with umlauts are limited, maybe @holgerfriedrich can add something to the case? |
LGTM for venstarthermostat and openhabcloud 👍 |
Maybe @J-N-K can give some advice as i think he wrote the tests at the time for http? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM for folderwatcher
3f60ab5
to
88b71b8
Compare
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
88b71b8
to
6e99537
Compare
I removed http from this PR and will create another PR to no longer have this on hold. |
Signed-off-by: Leo Siepel <leosiepel@gmail.com>
The deprecated
new URL(String)
points toURI.create(s).toURL()
It only behaves slightly different.The URI parsing is strict RFC 3986-compliant where the old URL parsing is lenient and accepts unencoded strings.
Unfortunately i do not know if the bindings actually have the need voor encoding and if they need further adjustments. Atleast http binding does.