Improve error handling for incoming shares poll command#34992
Conversation
Codecov Report
@@ Coverage Diff @@
## master #34992 +/- ##
=============================================
- Coverage 65.37% 48.29% -17.08%
=============================================
Files 1213 109 -1104
Lines 70380 10580 -59800
Branches 1295 1295
=============================================
- Hits 46009 5110 -40899
+ Misses 23997 5096 -18901
Partials 374 374
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #34992 +/- ##
============================================
+ Coverage 65.37% 65.39% +0.01%
- Complexity 18588 18589 +1
============================================
Files 1213 1213
Lines 70380 70400 +20
Branches 1295 1295
============================================
+ Hits 46009 46035 +26
+ Misses 23997 23991 -6
Partials 374 374
Continue to review full report at Codecov.
|
|
is the share automatically deleted through polling when it becomes invalid ? what if you run the command again, does the skipped entry still appear or not ? |
| $qb->expr()->literal($relativeMountPoint) | ||
| )); | ||
| $result = $qb->execute(); | ||
| $externalShare = $result->fetch(); |
There was a problem hiding this comment.
didn't we have fetchOne() ?
There was a problem hiding this comment.
we do, in lib/private/legacy/db/statementwrapper.php
There was a problem hiding this comment.
But as you see this is a legacy class and Doctrine native method fetch does exactly the same. (fetch fetches the next row while fetchAll fetches them all)
|
@VicDeo feel free to merge and backport after clarifying |
|
@PVince81 >is the share automatically deleted through polling when it becomes invalid ? what if you run the command again, does the skipped entry still appear or not ? I tried polling only for external shares with invalid token. In this case skipped entries still appear on the next poll. |
|
Stable10: #34993 |
Description
Output more details when the share is skipped due to exception
Related Issue
How Has This Been Tested?
occ incoming-shares:pollon the recipient sideScreenshots (if appropriate):
Types of changes
Checklist:
Open tasks: