Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(occ): Add --storage-tree option to info:file to help debug storages #44829

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Apr 15, 2024

Summary

Wrapping can get kind of crazy and this helps understanding the situation

Example:

$ occ info:file --storage-tree admin/files/Folder/a.md
a.md
  fileid: 112
  mimetype: text/markdown
  modified: April 15, 2024, 8:35:11 AM UTC
  not encrypted
  size: 1 B
  etag: 9cd89c4c3071b34939c5b7f199b2dafe
  mounted at: /admin/files/Folder/
  groupfolder id: 1
  storage wrapping: OCA\Files_Trashbin\Storage (cache:OC\Files\Cache\Wrapper\CachePermissionsMask)
        > OC\Files\Storage\Wrapper\Encryption (cache:OC\Files\Cache\Wrapper\CachePermissionsMask)
        > OC\Files\Storage\Wrapper\PermissionsMask (cache:OC\Files\Cache\Wrapper\CachePermissionsMask)
        > OCA\GroupFolders\Mount\GroupFolderStorage (cache:OCA\GroupFolders\Mount\RootEntryCache)
        > OC\Files\Storage\Wrapper\Jail (cache:OC\Files\Cache\Wrapper\CacheJail)
        > OCA\Files_Trashbin\Storage (cache:OC\Files\Cache\Cache)
        > OC\Files\Storage\LocalRootStorage (cache:OC\Files\Cache\Cache)

The following users have access to the file

admin:
  /admin/files/Folder/a.md: full permissions
    groupfolder 1

Checklist

Wrapping can get kind of crazy and this helps understanding the situation

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added 3. to review Waiting for reviews feature: occ labels Apr 15, 2024
@come-nc come-nc added this to the Nextcloud 30 milestone Apr 15, 2024
@come-nc come-nc self-assigned this Apr 15, 2024
@come-nc come-nc requested review from a team, ArtificialOwl and yemkareems and removed request for a team April 15, 2024 09:38
Copy link
Contributor

@yemkareems yemkareems left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tried the --storage-tree option and got the storage wrapping as result

@come-nc come-nc merged commit f02ca82 into master Apr 30, 2024
157 checks passed
@come-nc come-nc deleted the feat/add-storage-tree-to-info-file branch April 30, 2024 12:29
@blizzz blizzz mentioned this pull request Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews feature: occ
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants