-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(federation): auto-accept shares from trusted servers #49973
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
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
ff6f6e6 to
5d4c7b7
Compare
e29a165 to
c78d1fe
Compare
1d4cadb to
a710e0c
Compare
0ba688c to
9e36462
Compare
provokateurin
left a comment
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.
Some things that could be improved over the old code, if you're already migrating it anyway 🙈
…cates` Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
Signed-off-by: skjnldsv <[email protected]>
6bf6515 to
968be50
Compare
…dleware Signed-off-by: skjnldsv <[email protected]>
968be50 to
669e6ca
Compare
ChristophWurst
left a comment
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.
Looks sane, didn't test
| margin-top: 20px; | ||
| } | ||
| .settings-subsection__name { |
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.
nit: use scss and move this into .settings-subsection?
| $servers = $this->trustedServers->getServers(); | ||
|
|
||
| // obfuscate the shared secret | ||
| $servers = array_map(function ($server) { |
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.
nit: introduce a new variable instead of repurposing the old one.
| $servers = array_map(function ($server) { | |
| $redactedServers = array_map(function ($server) { |
| try { | ||
| $this->trustedServers->getServer($id); | ||
| } catch (\Exception $e) { | ||
| throw new OCSNotFoundException($this->l->t('No server found with ID: %s', [$id])); |
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.
It could be something else as well, other than server not found. Log the exception at debug level.
|
I did not expect the fast merge :x |
Needs #49974
Fix #34550