nextcloud / nextcloud/circles

Deletion of files not possible.

Open
#2,088 6 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage bug
Dominant language
JavaScript
Stars
177
Forks
68
Avg merge
2d 22h
Merged PRs (30d)
60

Description

Steps to reproduce

Try to delete a file (was #1689)

Expected behavior

File is deleted

Actual behavior

Error is displayed

Server operating system

Debian

Web server

Nginx

Database engine version

PostgreSQL

PHP engine version

Other

Nextcloud version

Nextcloud Hub 8 (29.0.7)

Updated from an older installed version or fresh install

Updated from an older version

Signing status
No errors have been found.
List of activated apps
Enabled:
  - activity: 2.21.1
  - approval: 1.3.0
  - circles: 29.0.0-dev
  - cloud_federation_api: 1.12.0
  - comments: 1.19.0
  - contacts: 6.0.0
  - contactsinteraction: 1.10.0
  - dashboard: 7.9.0
  - dav: 1.30.1
  - federatedfilesharing: 1.19.0
  - federation: 1.19.0
  - files: 2.1.1
  - files_downloadlimit: 2.0.0
  - files_pdfviewer: 2.10.0
  - files_reminders: 1.2.0
  - files_sharing: 1.21.0
  - files_trashbin: 1.19.0
  - files_versions: 1.22.0
  - forms: 4.2.4
  - groupfolders: 17.0.3
  - impersonate: 1.16.0
  - logreader: 2.14.0
  - lookup_server_connector: 1.17.0
  - maps: 1.4.0
  - nextcloud_announcements: 1.18.0
  - notifications: 2.17.0
  - oauth2: 1.17.1
  - password_policy: 1.19.0
  - photos: 2.5.0
  - privacy: 1.13.0
  - provisioning_api: 1.19.0
  - quota_warning: 1.20.0
  - related_resources: 1.4.0
  - serverinfo: 1.19.0
  - settings: 1.12.0
  - sharebymail: 1.19.0
  - spreed: 19.0.9
  - survey_client: 1.17.0
  - systemtags: 1.19.0
  - text: 3.10.1
  - theming: 2.4.0
  - twofactor_backupcodes: 1.18.0
  - twofactor_nextcloud_notification: 3.10.0
  - twofactor_totp: 11.0.0-dev
  - twofactor_webauthn: 1.4.0
  - updatenotification: 1.19.1
  - user_ldap: 1.20.0
  - user_status: 1.9.0
  - viewer: 2.3.0
  - workflowengine: 2.11.0
Disabled:
  - admin_audit: 1.19.0
  - bruteforcesettings: 2.9.0 (installed 2.0.1)
  - encryption: 2.17.0
  - files_external: 1.21.0 (installed 0.5.2)
  - files_rightclick: 0.15.1 (installed 1.6.0)
  - firstrunwizard: 2.18.0 (installed 1.0)
  - polls: 7.2.3 (installed 7.2.3)
  - recommendations: 2.1.0 (installed 0.4.0)
  - richdocuments: 8.4.6 (installed 8.4.6)
  - support: 1.12.0 (installed 1.3.0)
  - suspicious_login: 7.0.0
  - twofactor_admin: 4.5.0 (installed 4.5.0)
  - weather_status: 1.9.0 (installed 1.0.0)
Nextcloud configuration
{
    "system": {
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "mmmbox.mmmgroup.com"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "skeletondirectory": "\/home\/mmmbox_skeleton",
        "tempdirectory": "\/home\/mmmbox_tmp",
        "dbtype": "mysql",
        "version": "29.0.7.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "mysql.utf8mb4": true,
        "installed": true,
        "loglevel": 2,
        "logdateformat": "d.m.Y H:i:s",
        "logtimezone": "Europe\/Berlin",
        "log_rotate_size": 10485760,
        "maintenance": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "ldapIgnoreNamingRules": false,
        "forcessl": true,
        "mail_smtpmode": "smtp",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "25",
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "ldapUserCleanupInterval": 51,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "mail_sendmailmode": "smtp",
        "overwrite.cli.url": "https:\/\/mmmbox.mmmgroup.com",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379,
            "timeout": 0
        },
        "default_language": "de",
        "default_locale": "de",
        "default_phone_region": "de",
        "trashbin_retention_obligation": "auto, 60",
        "versions_retention_obligation": "auto, 120",
        "theme": "mmmbox",
        "defaultapp": "apporder",
        "simpleSignUpLink": "false",
        "activity_expire_days": "90",
        "updater.release.channel": "stable",
        "maintenance_window_start": 1
    }
}
Browser

Edge

Client operating system

Windows

CardDAV-clients

No response

Web server error log

No response

Nextcloud log
[webdav] Error: OCA\Circles\Model\ShareWrapper::getCircle(): Return value must be of type OCA\Circles\Model\Circle, null returned
	DELETE /remote.php/dav/files/USER/Software/SOFTWARE/SOFTWARE%20Win%20x64%20Test.zip
	from 212.211.191.216 by 98a4e33e-bb0c-1033-9cd7-a7755f636c69 at 11.09.2024, 10:07:54
Browser log

No response

Browser log

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 by reproducing deletion through the WebDAV DELETE endpoint shown in the report and inspect OCA\Circles\Model\ShareWrapper::getCircle() alongside the Nextcloud log. Trace why it returns null during file deletion; done means the file can be deleted without the reported return-type error, with a regression check for this path.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.