Remove share permission check from the file upload#35060
Conversation
|
solves the problem for me, should be covered in acceptance tests |
|
@sharidas please research with git blame to see why these checks were added in the first place. I remember a special case with share folders and conflict dialog that needed to be covered, we need to make sure that your change does not break that. |
Codecov Report
@@ Coverage Diff @@
## master #35060 +/- ##
=========================================
Coverage 65.37% 65.37%
Complexity 18622 18622
=========================================
Files 1215 1215
Lines 70510 70510
Branches 1295 1295
=========================================
Hits 46095 46095
Misses 24041 24041
Partials 374 374
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #35060 +/- ##
=========================================
Coverage 65.37% 65.37%
Complexity 18622 18622
=========================================
Files 1215 1215
Lines 70510 70510
Branches 1295 1295
=========================================
Hits 46095 46095
Misses 24041 24041
Partials 374 374
Continue to review full report at Codecov.
|
5ad29dc to
e870fc0
Compare
|
@sharidas you need to git blame further in the past. I believe Github has some buttons for this. |
|
I guess there is a confusion with respect to the PR description or heading. Looking at the history of file-upload.js file, when I try to get the state of this file before my changes were applied, the variable |
a8bf9a3 to
689bc56
Compare
Remove share permission check from the file upload js file. Signed-off-by: Sujith H <sharidasan@owncloud.com>
689bc56 to
d19644c
Compare
PVince81
left a comment
There was a problem hiding this comment.
👍 in regard of the clarification.
|
@sharidas please backport to release-10.2.0 as it fixes a bug introduced by a recent change found by QA |
|
Backport to release-10.2.0 branch #35082 |
|
The backport was merged into |

Remove share permission check from the file upload
js file.
Signed-off-by: Sujith H sharidasan@owncloud.com
Description
Remove
sharePermissionchecks from the file-upload.js file. We are no where using it and there is a problem in the code due to this. When we know its a file, we just have to check the fileinfo ( in the if condition ). The problem this PR tries to address is, when files are uploaded, the file information should be shown. Instead of this, the directory information was shown.This also fixes the cancel button problem in the conflict dialog. The cancel button clicked once cancels the conflict dialog.
Related Issue
Motivation and Context
Remove
sharePermissionchecks from the file-upload.js file. This solves 2 problems:How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: