-
Notifications
You must be signed in to change notification settings - Fork 42
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
Missing quotes around value in /.well-known/matrix/client? #416
Comments
Well it's one more issue linked to #356.... @rosbeef, @Gredin67, @Thatoo can you fix it. It should be a json boolean here: As documented here: https://github.com/vector-im/element-web/blob/develop/docs/e2ee.md |
Well #356 is about configuring synapse homeserver.yaml config file and, as documented here, https://matrix-org.github.io/synapse/latest/usage/configuration/config_documentation.html#encryption_enabled_by_default_for_room_type, The problem is that we use So we need to replace one of the two. |
What do you think about keeping |
And I think we should have What do you think? |
It's ok for me |
Here is my draft : master...Thatoo:synapse_ynh:Thatoo-update_config_panel_e2e What do you think? |
I need to rework my upgrade script but the rest is, I think, ok now. |
Well, personnally I just prefer to generate the settings dynamically and don't add one more settings which could be a bit confusing for users. So on all script (or in if [ "$e2e_enabled_by_default" = "all" ] || [ "$e2e_enabled_by_default" = "invite" ] ; then
e2e_enabled_by_default_in_element="true"
elif [ "$e2e_enabled_by_default" = "off" ] ; then
e2e_enabled_by_default_in_element="false"
fi |
I have updated my upgrade script and I have tested everything, install, modification in the config panel, upgrade (from a yunohost that didn't have this PR, and from a Yunohost that had already this PR). |
About
I'm not sure I understand what means "generate the settings dynamically" compare to what I'm doing.
then the However, I'm not a very experienced yunohost contributor so I assume to be wrong and I'd like to learn the best practice. |
I think I got it, maybe you meant that you don't want it to appear in config_panel.toml, is that it? master...Thatoo:synapse_ynh:Thatoo-update_config_panel_e2e_no_panel The problem with this is that the user can't choose to have this situation : With this branch, this situation is impossible. Which branch should I PR then? |
Yes, I think it's better to hide the variable
Your PR should always be based on |
I've just made a PR based on Testing |
Fixed by #426 |
Describe the bug
I was having trouble logging in to my account with a matrix client, and through the logs it seemed to be complaining that my
/.well-known/matrix/client
was not valid JSON. Sure enough, it appears to be missing some double quotes around one of the values.The well-known is served directly from the nginx config, and it too is missing the double quotes.
synapse_ynh/conf/server_name.conf
Line 11 in 6537f17
What confuses me though is that this file hasn't been modified in three years, and despite the JSON being invalid multiple other clients seem to not have any issues with it. I'm not really sure what's going on so I figured I'd open an issue instead of blindly making a PR adding the double quotes.
The text was updated successfully, but these errors were encountered: