-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ignore unknown keys in appservice registration files #1567
Comments
This comment was originally posted by @claudemuller at matrix-org/dendrite#1567 (comment). Hey @bodqhrohro - mind if I take a swing? |
This comment was originally posted by @bodqhrohro at matrix-org/dendrite#1567 (comment). You're welcome :) |
This comment was originally posted by @tichnas at matrix-org/dendrite#1567 (comment). Hi @claudemuller, are you still working on the issue? |
This comment was originally posted by @bodqhrohro at matrix-org/dendrite#1567 (comment). I don't assign anyone. Feel free to make a PR, then reviewers will decide whose solution is better ;) |
This comment was originally posted by @MadLittleMods at matrix-org/dendrite#1567 (comment). Related to matrix-org/matrix-appservice-node#33 (fixed via matrix-org/matrix-appservice-node#34) which is now fixed so Might be good to fix this up so future |
This comment was originally posted by @irth at matrix-org/dendrite#1567 (comment). Hi, the error originates here, when the registration file is unmarshaled: The only difference between Replacing this However, this brings another issue into mind - do we want to verify that the keys that we require are actually present? Or, are we doing that somewhere else? |
This comment was originally posted by @keremgocen at matrix-org/dendrite#1567 (comment). @irth was there a conclusion about your comment? I'm happy to send a PR with that small change if that's still the solution you guys think is the best. |
This comment was originally posted by @alam0rt at matrix-org/dendrite#1567 (comment). I was going to write up a simple PR to "fix" this, but personally |
This comment was originally posted by @irth at matrix-org/dendrite#1567 (comment). Perhaps we might need to Unmarshal it to something less typed - map[string]interface{}, and then do the verification and fill the struct manually. |
This issue was originally created by @bodqhrohro at matrix-org/dendrite#1567.
Background information
go version
: 1.15Description
Steps to reproduce
Which results in an error:
because the parser doesn't ignore unknown keys.
The text was updated successfully, but these errors were encountered: