-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
add before-after share link auth events #34158
Conversation
8821b4e
to
8fc3033
Compare
Codecov Report
@@ Coverage Diff @@
## master #34158 +/- ##
=============================================
- Coverage 64.76% 48.55% -16.22%
=============================================
Files 1198 109 -1089
Lines 69467 10525 -58942
Branches 1281 1281
=============================================
- Hits 44989 5110 -39879
+ Misses 24105 5042 -19063
Partials 373 373
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #34158 +/- ##
============================================
+ Coverage 64.76% 64.77% +<.01%
Complexity 18351 18351
============================================
Files 1198 1198
Lines 69467 69471 +4
Branches 1281 1281
============================================
+ Hits 44989 44997 +8
+ Misses 24105 24101 -4
Partials 373 373
Continue to review full report at Codecov.
|
Unrelated drone CI fail. I restarted drone, and raised issue #34186 to look into why this is happening too often. |
@phil-davis it failed again. I tried to restart the build one more time with drone.io's API, but I could not. Have you any suggestion to make CI green. |
@ownclouders rebase |
Hey! I'm GitMate.io! This pull request is being rebased automatically. Please DO NOT push while rebase is in progress or your changes would be lost permanently |
8fc3033
to
4fe6d6f
Compare
Automated rebase with GitMate.io was successful! 🎉 |
I restart the drone build and it failed again. But I made a fresh PR #34187 (not this code) just to check the drone CI - that passed first time. Either this code really does make some difference to the test, or something goes wrong because the failing scenarios were only recently merged to master and this PR is a few days old. I tried a rebase, maybe that will help??? But I see that you force-pushed only 1 day ago. |
I forced pushed 1 day ago to re-trigger ci with only changing commit message. I hope rebase will work. |
Special CI magic - it passed! |
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.
Kindly have a look at my comment.
The event dispatcher injected to ShareController class as a non-mock object in here:
I can inject a mock EventDispatcher object and update my tests, but there are other events which are not related to this PR in this class. I should refactor their tests also. @sharidas both of the cases fine for me. What do you think? |
Humm there are more calls to |
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 fine to me 👍
@karakayasemi please backport to stable10 |
Backport |
Description
Adds before and after events for public share link auths.
Related Issue
The first step for:
#33542, owncloud/brute_force_protection#57
Motivation and Context
To be able to detect and interrupt public link share auth attempts.
How Has This Been Tested?
Unit test and manually.
Types of changes
Checklist:
I am not sure about the location of the events. As far as I see, adding events in
linkShareAuth
function is enough. But, if you see any missing place, please let me know.When this pr merged, I will update here: owncloud/docs#311 (comment)