Repository navigation
Share2 link - #21761
Share2 link#21761
Conversation
|
By analyzing the blame information on this pull request, we identified @LukasReschke, @nickvergessen and @schiesbn to be potential reviewers |
|
We have smashbox tests for downloading a share link and selections from a share link, so I will smash this on monday |
|
Awesome, thanks! |
|
Smashbox: ✅ |
cough we need integration tests for such essential stuff cough cough |
|
I just logged the backtrace at this point: (the same link works on master just fine) |
|
@MorrisJobke mmm I tought I checked that case... But thansk for testing... will fix! |
|
@MorrisJobke please have another look |
|
Tested and works 👍 |
There was a problem hiding this comment.
any reason why you do this, instead of just using the calls in the code above?
There was a problem hiding this comment.
@rullzer This is usually used for the automatic dependency injection by TypeHint or variable name.
There was a problem hiding this comment.
It is the way the unit tests of this class are structured. They create a new application. And this is how the dependencies are injected there instead of useing the onces from $server
|
Ok cleaned up a bit. |
There was a problem hiding this comment.
we know the object, should be "'files', $fileId"
There was a problem hiding this comment.
applies to all three places
There was a problem hiding this comment.
Ah mm right... I just copied to old one :P Lets fix that indeed :P
1df9e1a to
db7fa20
Compare
Nice side effect... pure unit tests!
* Updated unit tests
👍 |
|
Tested and works 👍 |
Requires #21755
Move the sharecontroller that handles authentication/displaying/downloading of link shares over to the sharemanager instead of the old code paths.
It is actually pretty straight forward.
CC: @schiesbn @DeepDiver1975 @nickvergessen @PVince81 @LukasReschke