nextcloud / nextcloud/server

[Bug]: Clarification of expiring Trashbin

Open
#45,418 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 27-feedback bug feature: trashbin papercut
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description

If you use the console for the trashbin, there is an option to expire the trashbin for a user:
https://github.com/nextcloud/server/blob/5a6e48e85034aa81862b1fcbd93cb4ce58165e72/apps/files_trashbin/lib/Command/ExpireTrash.php#L66

I don't know if it is just me, but what does it mean to expire a trashbin for a user, that the user cannot use the trashbin any more? Or expire all the files within, but how would that be different from just a cleanup? Or it will force-delete only the files already expired (but they are kept because the trashbin is less than 50% of the available space)?

Steps to reproduce
  1. Show list of commands with occ
Expected behavior

Clarify description in CLI command and the documentation

Installation method

None

Nextcloud Server version

27

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with apps/files_trashbin/lib/Command/ExpireTrash.php at the linked line and inspect the command's description and behavior. Check the related Nextcloud documentation entry for the trashbin console command. Done means the command and documentation clearly explain what expiring a user's trashbin does, with wording consistent with the implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
cli, documentation
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.