-
Notifications
You must be signed in to change notification settings - Fork 28
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
URL from UI Configuration gets saved differently #169
Comments
When entering URLs in the UI, please enter it using UTF-8 characters. The UI will encode the characters properly for the URL. This is in my TODO list to update, so users can enter the URL either way, but it’s not there yet. :( |
Thanks for your fast response. I think the |
I'm seeing this as well with a URL from Proton Calendar. % is being rewritten. |
I meant to enter it as UTF-8 as opposed to entering it already URL-encoded. For your case, @bobbolous, that would mean https://<thisWasRemoved>/api/ical?street=Längestrasse&streetnr=123 There was a request (via PR #133) back in June to allow entering emojis directly instead of URL encoding them. This directly conflicts with what you're entering, and while there is a simple way around that, the simple fix might not match well with a good fix, so my current compromise is to keep the conflict until a proper fix is provided. See also TODO.md. I know it could be a while, but I really hope to get to it sooner than it took 5.0 to be released, since all of the 5.x items really, really annoy me. And the bugs that annoy me tend to get fixed faster. :) Please note if this conflict is one you don't want to deal with, look in config_flow.py, search for "safe", and change |
Thank you for the workaround - it works well. I do think asking users to reverse URL-encoding they get from their calendar services is a bit too much to ask but I understand your conflicting requests :D |
@troed I don’t disagree with you. :(. But thanks for your understanding. I greatly appreciate it. |
Thanks for the great support! |
@franc6 I have a similar issue setting up my calendar from the UI: I have this calendar URL from Google (I obfuscated the key with x below but they are only letters and numbers, not special characters). Correct URL: URL added by the plugin: you can see that the error is here username%2540 (25 gets added but it's not present in the correct url). Thanks |
@LPirro For now, you can replace %40 with @ |
Same thing happens with Proton Calendar and %3D needing to be changed to = |
…L isn't encoded. (#224) Fixes #116, #133, #169, #211 Description of change: ## Formatting, testing, and code coverage Please note your pull request won't be accepted if you haven't properly formatted your source code, and ensured the unit tests are appropriate. Please note if you are not running on Windows, you can either run the scripts via a bash installation (like git-bash). - [X] formatstyle.sh reports no errors - [X] All unit tests pass (test.sh) - [X] Code coverage has not decreased (test.sh)
I have a ICS calendar with a URL like this (removed some information)
https://<thisWasRemoved>/api/ical?street=L%C3%A4ngestrasse&streetnr=123
after entering this into the UI I get an error log, that this URL is not reachable.
https://<thisWasRemoved>/api/ical?street=L%25C3%25A4ngestrasse&streetnr=123
As you see there was a "25" added ("...L%25C..." instead of "...L%C...").
Background: originally this is a streetname that includes a german "ä".
I am running on 5.0.3.
The text was updated successfully, but these errors were encountered: