Can’t unshare files or directories

Nextcloud version : 25.0.2
Operating system and version : Raspbian 11
Nginx version : nginx 1.18
PHP version : 8.0.26

Hi,

Since I update Nextcloud to 25.0.2 version, is no more possible unshare files or directories : Option « unshare » is no more present

And the solution proposed in the discussion below (disable “social sharing via email”), don’t resolve this issue.

https://help.nextcloud.com/t/how-can-i-stop-sharing-a-file/45791

Is this the first time you’ve seen this error? (Y/N): Y

Regards

Could you please share some screenshots to clarify what you are seeing. Also,

Hi @thomas56,
You are missing the required support template. Please fill this form out and edit into your post.

This will give us the technical info and logs needed to help you! Thanks. It is always important to us volunteers and saves our time + adds context for anyone encountering this in the future. :heart:

Additional informations…
Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Share a file
    image
  2. Try to unshare, the « unshare » option is not present
    image

The output of your config.php file

<?php
$CONFIG = array (
  'instanceid' => 'yyyyyyyyyyyyyyyy',
  'passwordsalt' => 'xxxxxxxxxxxxxx',
  'secret' => 'wwwwwwwwwwwwwwwwwwwww',
  'trusted_domains' => 
  array (
    0 => 'x.x.x.x',
    1 => 'y.y.y.y',
    2 => 'dnsname1',
    3 => 'dnsname2',
  ),
  'default_language' => 'fr',
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '25.0.2.3',
  'overwrite.cli.url' => 'https://x.x.x.x',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_smtphost' => 'smtp.free.fr',
  'mail_sendmailmode' => 'smtp',
  'mail_smtpport' => '465',
  'mail_from_address' => 'zzzzzz,
  'mail_domain' => 'rrrrr.fr',
  'mail_smtpsecure' => 'ssl',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 'ttttt@dfsdqfsq.fr',
  'mail_smtppassword' => 'qsdfsdqfsdfsdf',
  'maintenance' => false,
  'dbname' => 'nnnnnn',
  'dbhost' => 'y.y.y.y',
  'dbuser' => 'usern',
  'dbpassword' => 'zzzzzzzzzzz’,
  'mysql.utf8mb4' => true,
  'has_rebuilt_cache' => true,
  'theme' => '',
  'loglevel' => 2,
  'encryption.legacy_format_support' => false,
  'encryption.key_storage_migrated' => false,
  'app_install_overwrite' => 
  array (
    0 => 'files_opds',
    1 => 'ocsms',
    2 => 'files_texteditor',
  ),
  'default_phone_region' => 'FR',
  'preview_max_x' => 768,
  'preview_max_y' => 768,
);

The output of your nginx log

`192.x.x.x - - [02/Jan/2023:12:45:11 +0100]
"PROPFIND /remote.php/dav/files/thomas/test.md HTTP/2.0"
207 575
"https://xxx.dnsname.xxx/apps/files/?dir=/&view=shareoverview"
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0)
Gecko/20100101 Firefox/108.0"`

`192.x.x.x
- - [02/Jan/2023:12:45:11 +0100] "REPORT
/remote.php/dav/comments/files/198671 HTTP/2.0" 207 156
"https://xxx.dnsname.xxx/apps/files/?dir=/&view=shareoverview"
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0)
Gecko/20100101 Firefox/108.0"`

`192.x.x.x
- - [02/Jan/2023:12:45:11 +0100] "GET
/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2Ftest.md&reshares=true
HTTP/2.0" 200 430
"https://xxx.dnsname.xxx/apps/files/?dir=/&view=shareoverview"
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0)
Gecko/20100101 Firefox/108.0"`

`192.x.x.x
- - [02/Jan/2023:12:45:11 +0100] "GET
/ocs/v2.php/apps/activity/api/v2/activity/filter?format=json&object_type=files&object_id=198671
HTTP/2.0" 200 455
"https://xxx.dnsname.xxx/apps/files/?dir=/&view=shareoverview"
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0)
Gecko/20100101 Firefox/108.0"`

`192.x.x.x
- - [02/Jan/2023:12:45:11 +0100] "PROPFIND
/remote.php/dav/versions/thomas/versions/198671 HTTP/2.0" 207
245 "https://xxx.dnsname.xxx/apps/files/?dir=/&view=shareoverview"
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0)
Gecko/20100101 Firefox/108.0"`

`192.x.x.x
- - [02/Jan/2023:12:45:11 +0100] "GET
/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2Ftest.md&shared_with_me=true
HTTP/2.0" 200 81
"https://xxx.dnsname.xxx/apps/files/?dir=/&view=shareoverview"
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0)
Gecko/20100101 Firefox/108.0"`

`192.x.x.x
- - [02/Jan/2023:12:45:11 +0100] "GET
/ocs/v2.php/apps/related_resources/related/files/198671?format=json
HTTP/2.0" 200 81
"https://xxx.dnsname.xxx/apps/files/?dir=/&view=shareoverview"
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0)
Gecko/20100101 Firefox/108.0"`

`192.x.x.x
- - [02/Jan/2023:12:45:11 +0100] "GET
/ocs/v2.php/apps/files_sharing/api/v1/sharees_recommended?format=json&itemType=file
HTTP/2.0" 200 124
"https://xxx.dnsname.xxx/apps/files/?dir=/&view=shareoverview"
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:108.0)
Gecko/20100101 Firefox/108.0"`

Output errors in nextcloud.log

{"reqId":"HeNFnnr4yewVuXDv0tKJ","level":3,"time":"2023-01-02T11:52:51+00:00","remoteAddr":"192.168.0.254","user":"thomas","app":"webdav","method":"POST","url":"/remote.php/dav/bulk","message":"Unknown error while seeking content","userAgent":"Mozilla/5.0 (Linux) mirall/3.4.1 (build 8597) (Nextcloud, ubuntu-5.15.0-56-generic ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"25.0.2.3","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"Unknown error while seeking content","Code":500,"Trace":[{"file":"/var/www/nextcloud/apps/dav/lib/BulkUpload/MultipartRequestParser.php","line":129,"function":"isAt","class":"OCA\\DAV\\BulkUpload\\MultipartRequestParser","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/BulkUpload/BulkUploadPlugin.php","line":71,"function":"isAtLastBoundary","class":"OCA\\DAV\\BulkUpload\\MultipartRequestParser","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPost","class":"OCA\\DAV\\BulkUpload\\BulkUploadPlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":171,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/apps/dav/lib/BulkUpload/MultipartRequestParser.php","Line":111,"message":"Unknown error while seeking content","exception":[],"CustomMessage":"Unknown error while seeking content"},"id":"63b2c7d6bd54a"}

{"reqId":"RH7PIW3qO2qDIbN4G85T","level":3,"time":"2023-01-01T16:32:31+00:00","remoteAddr":"192.168.0.254","user":"thomas","app":"webdav","method":"PUT","url":"/remote.php/dav/addressbooks/users/thomas/contacts/A983A082-5B5E-4FAC-A29A-8283CC773B30.vcf","message":"This parser can only read from strings or streams.","userAgent":"Thunderbird CardBook/83.6","version":"25.0.2.3","exception":{"Exception":"InvalidArgumentException","Message":"This parser can only read from strings or streams.","Code":0,"Trace":[{"file":"/var/www/nextcloud/3rdparty/sabre/vobject/lib/Parser/MimeDir.php","line":83,"function":"setInput","class":"Sabre\\VObject\\Parser\\MimeDir","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/vobject/lib/Reader.php","line":47,"function":"parse","class":"Sabre\\VObject\\Parser\\MimeDir","type":"->"},{"file":"/var/www/nextcloud/apps/maps/lib/Service/AddressService.php","line":223,"function":"read","class":"Sabre\\VObject\\Reader","type":"::"},{"file":"/var/www/nextcloud/apps/maps/lib/Listener/CardUpdatedListener.php","line":54,"function":"scheduleVCardForLookup","class":"OCA\\Maps\\Service\\AddressService","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php","line":87,"function":"handle","class":"OCA\\Maps\\Listener\\CardUpdatedListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":251,"function":"__invoke","class":"OC\\EventDispatcher\\ServiceEventListener","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php","line":73,"function":"callListeners","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":88,"function":"dispatch","class":"Symfony\\Component\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php","line":100,"function":"dispatch","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/CardDAV/CardDavBackend.php","line":732,"function":"dispatchTyped","class":"OC\\EventDispatcher\\EventDispatcher","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/CardDAV/Card.php","line":94,"function":"updateCard","class":"OCA\\DAV\\CardDAV\\CardDavBackend","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1137,"function":"put","class":"Sabre\\CardDAV\\Card","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":492,"function":"updateFile","class":"Sabre\\DAV\\Server","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPut","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/lib/Server.php","line":360,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/var/www/nextcloud/remote.php","line":171,"args":["/var/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/nextcloud/3rdparty/sabre/vobject/lib/Parser/MimeDir.php","Line":135,"message":"This parser can only read from strings or streams.","exception":[],"CustomMessage":"This parser can only read from strings or streams."},"id":"63b2c7d6be148"}

[PHP] Erreur: Error: Attempt to read property "uri" on array at /var/www/nextcloud/apps/maps/lib/Listener/CardUpdatedListener.php#53 at <<closure>>


0. /var/www/nextcloud/apps/maps/lib/Listener/CardUpdatedListener.php line 53

OC\Log\ErrorHandler::onError()

1. /var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php line 87

OCA\Maps\Listener\CardUpdatedListener->handle()

2. /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 251

OC\EventDispatcher\ServiceEventListener->__invoke()

3. /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php line 73

Symfony\Component\EventDispatcher\EventDispatcher->callListeners()

4. /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 88

Symfony\Component\EventDispatcher\EventDispatcher->dispatch()

5. /var/www/nextcloud/lib/private/EventDispatcher/EventDispatcher.php line 100

OC\EventDispatcher\EventDispatcher->dispatch()

6. /var/www/nextcloud/apps/dav/lib/CardDAV/CardDavBackend.php line 732

OC\EventDispatcher\EventDispatcher->dispatchTyped()

7. /var/www/nextcloud/3rdparty/sabre/dav/lib/CardDAV/Card.php line 94

OCA\DAV\CardDAV\CardDavBackend->updateCard("*** sensitive parameters replaced ***")

8. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1137

Sabre\CardDAV\Card->put()

9. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 492

Sabre\DAV\Server->updateFile("*** sensitive parameters replaced ***")

10. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89

Sabre\DAV\CorePlugin->httpPut()

11. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472

Sabre\DAV\Server->emit()

12. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253

Sabre\DAV\Server->invokeMethod()

13. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321

Sabre\DAV\Server->start()

14. /var/www/nextcloud/apps/dav/lib/Server.php line 360

Sabre\DAV\Server->exec()

15. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35

OCA\DAV\Server->exec()

16. /var/www/nextcloud/remote.php line 171

require_once("/var/www/nextcl ... p")

PUT /remote.php/dav/addressbooks/users/thomas/contacts/A983A082-5B5E-4FAC-A29A-8283CC773B30.vcf

from 192.168.0.254 by thomas at 2023-01-01T16:32:31+00:00

---------- End Additional informations
Thanks

Observed the same behavior today (could not find an option to unshare a directory), took me several minutes to figure out that popup is scrollable. More options available (including Unshare) if you scroll that popup.
Firefox 112.0b6 (64-bit), Windows 11