-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
improve error reporting and move format parameter to the options #9256
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
9af3025 to
dd3f0cb
Compare
Codecov Report
@@ Coverage Diff @@
## master #9256 +/- ##
============================================
- Coverage 51.93% 31.5% -20.44%
- Complexity 25389 25402 +13
============================================
Files 1608 1608
Lines 95436 95464 +28
Branches 1394 1394
============================================
- Hits 49564 30074 -19490
- Misses 45872 65390 +19518
|
|
There is another one that resets the token:
|
|
|
||
| $this->trustedServers->addSharedSecret($url, $sharedSecret); | ||
| // reset token after the exchange of the shared secret was successful | ||
| $this->dbHandler->addToken($url, ''); |
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.
can you explain why?
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.
Because this is not needed to be reset. The code knows what is the bigger and what is the smaller token. It often confused people why one server deletes it. And also there is code wise no good reason why it should be read. On the other hand this could give insights into debugging sessions so we keep it just as it is.
MorrisJobke
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.
Makes a lot of sense 👍
rullzer
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.
Fine by me then
dd3f0cb to
178244a
Compare
|
I also fixed the tests 🙈 |
178244a to
5110983
Compare
5110983 to
5dfddce
Compare
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
5dfddce to
0e0cfa0
Compare
|
I just noticed that the |
|
@schiessle What about the backport? 🏓 😉 |
|
Backport in #9657 |
make exchange of shared secret more robust and improve error reporting.