Skip to content

[Bug]: Can't transfer incoming shares from guest #31096

@PVince81

Description

@PVince81

⚠️ This issue respects the following points: ⚠️

  • This is a bug, not a question or a configuration/webserver/proxy issue.
  • This issue is not already reported on Github (I've searched it).
  • Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
  • I agree to follow Nextcloud's Code of Conduct.

Bug description

When transferring files with the occ command from a guest account to a non-guest account, the incoming shares are not processed. The command doesn't show any error but the resulting share is not there.

Steps to reproduce

  1. Enable guest app
  2. Create guest user: sudo -u www-data bash -c 'OC_PASS=test12345678 php occ guests:add --password-from-env --display-name "Guest One" --language "de_DE" admin guest1@domain.local'
  3. Create regular users "alice" and "charles"
  4. Login as "charles" to initialize storage
  5. As Alice, create a folder "share2guest"
  6. Share "share2guest" with "guest1@domain.local"
  7. Run occ files:transfer-ownership --transfer-incoming-shares=1 --move guest1@vvortex.local charles -vvv
  8. Login as Charles and check if the share was transferred

Expected behavior

Incoming share transferred

Installation method

Other

Operating system

Other

PHP engine version

No response

Web server

No response

Database engine version

No response

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

Fresh Nextcloud Server install

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

guests app from git master

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

There's a bug in path handling, fix will follow.

Strangely the transfer does work from non-guest to non-guest user.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions