Conversation
|
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes. |
4c6c090 to
e04d2b8
Compare
Codecov Report
@@ Coverage Diff @@
## master #37634 +/- ##
============================================
- Coverage 64.74% 64.71% -0.04%
- Complexity 19360 19383 +23
============================================
Files 1281 1283 +2
Lines 75622 75724 +102
Branches 1333 1333
============================================
+ Hits 48959 49001 +42
- Misses 26271 26331 +60
Partials 392 392
Continue to review full report at Codecov.
|
| $uid = $user->getUID(); | ||
| \OC_Util::setupFS($uid); | ||
| $this->currentUser = $uid; | ||
| $currentUser = $uid; |
There was a problem hiding this comment.
I don't see $currentUser being used anywhere (neither was there a $this->currentUser to begin with). Remove completely?
e04d2b8 to
6c2c952
Compare
PVince81
left a comment
There was a problem hiding this comment.
Some minor picky stuff.
Otherwise this looks good from the code perspective, I haven't tested 👍
|
|
||
| // in case the timeout has not been accepted, adjust in lock info | ||
| $lockInfo->timeout = $lock->getTimeout(); | ||
| $lockInfo->owner = $lock->getOwner(); |
| } | ||
| } | ||
|
|
||
| public function providesUrls() { |
There was a problem hiding this comment.
add cases where some of the required attrs are missing
| return $this->request->getQueryParameters(); | ||
| } | ||
|
|
||
| public function getUserId(): string { |
There was a problem hiding this comment.
rename to getUrlCredential for consistency ? everywhere you used it you always stored it in a var getUrlCredential. or alternatively rename those vars to $userId ?
6c2c952 to
db2cad6
Compare
|
codecov is nuts .... most likly because of the rebase ..... |
db2cad6 to
9377864
Compare
PVince81
left a comment
There was a problem hiding this comment.
All fine, just some minor text change 👍
| protected function configure() { | ||
| $this | ||
| ->setName('security:sign-key:create') | ||
| ->setDescription('Create and recreate a users sign key for signed urls') |
There was a problem hiding this comment.
"Create or recreate a users signing key"
"sign key" doesn't sound good, I believe it should be "signing key" as it's used for signing
| } | ||
| $signingKey = $this->config->getUserValue($uid, 'core', 'signing-key', null); | ||
| if ($signingKey !== null) { | ||
| $output->writeln('This user already has a sign key. Recreating the key will invalidate all existing signed urls.'); |
9377864 to
e32cbef
Compare
|
@DeepDiver1975 Why was this merged without a changelog? |
Description
Related Issue
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist: