check public link already authenticated before checking password of link#38016
check public link already authenticated before checking password of link#38016phil-davis merged 1 commit intomasterfrom
Conversation
41ddd29 to
fd04947
Compare
fd04947 to
fe2cd0c
Compare
|
I restarted drone - in the previous run there were lots of pipelines that had 10-minute timeouts waiting for stuff. |
fe2cd0c to
3de1e10
Compare
|
It might be a better idea to let the |
|
I restarted ddrone CI - there were some silly startup fails of PHP unit test pipelines. |
|
@karakayasemi Can we merge this soon to get into 10.6? |
@mrow4a if
@jvillafanez I thought same first but there are other usages of
@micbar IMHO, PR is ready to merge after CI problems resolved. There were some unrelated CI fails, I hope this time we will see green CI. |
|
fsweb.test.owncloud.com seems to be down (or not working nicely). All core CI pipelines that test against it are failing, in all PRs currently running. |
There was a problem hiding this comment.
@karakayasemi @jvillafanez I did some research, and indeed this change is bugfix. Also, the public link code is spaghetti a little that begs for refactoring https://github.com/owncloud/core/blob/v10.5.0/apps/files_sharing/lib/Controllers/ShareController.php . Also used in public apps https://github.com/owncloud/richdocuments/blob/740bd280caf35c7e8b6e8e96f05320acd9e689b1/lib/Storage.php#L136-L141 . Considering how it is currently implemented, legit solution.
3de1e10 to
e38970b
Compare
|
Rebased to get fresh CI. |
|
Kudos, SonarCloud Quality Gate passed!
|
Description
ShareManager was checking password of already authenticated public links.
This situation has been led to wrong "share.failedpasswordcheck" events emitting in already authenticated links and led to the related issue on brute force protection app. This problem has been resolved by first checking link already authenticated.
@micbar I would like to add this PR to 10.6 if it is possible.
Related Issue
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: