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

Share number in stats is not decremented when shared file/folder is deleted #20377

Closed
GillesMocellin opened this issue Apr 9, 2020 · 1 comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug

Comments

@GillesMocellin
Copy link

I have wrong numbers when trying to follow shares from my users.

I also have open an issue on the app I use to gather stats :
nextcloud/user_usage_report#32

Steps to reproduce

  1. Create a test folder and share it (via link to be quick)
  2. Use usage-report:generate from user_usage_report app, or select in oc_shares table to see the number of share for the user
  3. Delete the test folder without removing the share
  4. Use usage-report:generate from user_usage_report app, or select in oc_shares table to see the number of share for the user
  5. See that the share is still there and counted
  6. To be sure, remove the folder from the Trash and it's still there

Expected behaviour

The share should be removed, or marked deleted (to be restored with data from Trash).
The share should not be counted in the statistics.

Actual behaviour

The number of shares for that user is still the same, not decremented.

Server configuration

Nextcloud version: 17.0.5 from 17.0.5-fpm docker image

Updated from an older Nextcloud/ownCloud or fresh install: No

List of activated apps:
user_usage_report

Are you using external storage, if yes which one: No

Are you using encryption: yes

Are you using an external user-backend, if yes which one: No

@GillesMocellin GillesMocellin added 0. Needs triage Pending check for reproducibility or if it fits our roadmap bug labels Apr 9, 2020
@szaimen
Copy link
Contributor

szaimen commented May 31, 2021

Duplicate of nextcloud/user_usage_report#32

@szaimen szaimen marked this as a duplicate of nextcloud/user_usage_report#32 May 31, 2021
@szaimen szaimen closed this as completed May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage Pending check for reproducibility or if it fits our roadmap bug
Projects
None yet
Development

No branches or pull requests

2 participants