add command for getting fileinfo for debugging#37525
Conversation
There was a problem hiding this comment.
Psalm found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.
come-nc
left a comment
There was a problem hiding this comment.
Awesome tool.
Maybe instead of adding debug to the description, just remove debug mention from the command name since this may be useful in a whole number of usecase outside of debug? (like an admin wanting a list of shares of a file to check who has access)
|
2743ec1 to
c7410ff
Compare
| $bucket = array_pop($parts); | ||
| $output->writeln(" bucket: " . $bucket); | ||
| if ($node instanceof \OC\Files\Node\File) { | ||
| $output->writeln(" object id: " . $storage->getURN($node->getId())); |
Check notice
Code scanning / Psalm
PossiblyNullOperand
7858d4b to
bbb2474
Compare
1b6381a to
96f9c17
Compare
96f9c17 to
c99f3ae
Compare
c99f3ae to
579d37a
Compare
Signed-off-by: Robin Appelman <robin@icewind.nl>
Signed-off-by: Robin Appelman <robin@icewind.nl>
579d37a to
c5dfa1c
Compare
There was a problem hiding this comment.
In-place of the manual stdout formatting we could use the built-in Symfony methods https://symfony.com/doc/current/console/style.html#helper-methods ?
|
/backport to stable26 |
|
/backport to stable25 |
Attempts to provide information that might be useful when debugging issues as well as perform some sanity checks.
This hopefully allows people without knowledge of the Nextcloud internals to access debug information that is currently only accessible trough manual database querying or other convoluted steps.
Currently includes:
(Possible) future work