Skip to content

unshare link does not work #6990

@stijnhaezebrouck

Description

@stijnhaezebrouck

When editing the sharing setting of a directory, a sharing link is automatically created, an a check is set on "share link". With Google Chrome, it is unpossible to unshare is (by clicking the check mark again to deactivate it). After less then a second, it is automatically activated again. The issue is only with Google Chrome (not with Safari i.e.) The client os seems to be unrelated.

See https://help.nextcloud.com/t/unshare-doesnt-work-falls-back-to-share/21259

Steps to reproduce

  1. use Google chrome, logon to your nexcloud as an administrator
  2. on any directory that is not shared, click the share icon -> share link automatically created
  3. try to remove the share link by unchecking the share checkmark.

Expected behaviour

The check mark should be unchecked, and the sharing link should be removed

Actual behaviour

The check mark unchecked, and the sharing link was removed. But immediately after, (.5 sec), the check mark was checked again, and a sharing link was created again

Server configuration

Operating system:
Debian linux 8

Web server:
apache 2 2.4.10-10+deb8u9
Database:
mysql 5.5.58

PHP version:
php7
Nextcloud version: (see Nextcloud admin page)
12.0.3.3
Updated from an older Nextcloud/ownCloud or fresh install:
updated
Where did you install Nextcloud from:
do not remember

Signing status:

Signing status
No errors have been found.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
$CONFIG = array (
  'instanceid' => 'ocotjy5q5ns1',
  'passwordsalt' => ''
  'secret' => '',
  'trusted_domains' => 
  array (
    0 => 'server',
    1 => 'xxxx.be',
  ),
  'datadirectory' => '/share/nextcloud',
  'overwrite.cli.url' => 'x',xx
  'dbtype' => 'mysql',
  'version' => '12.0.3.3',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => '',
  'logtimezone' => 'UTC',
  'installed' => true,
  'theme' => '',
  'loglevel' => 1,
  'maintenance' => false,
  'mail_smtpmode' => 'sendmail',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 'xxx.be',
);

Are you using external storage, if yes which one: local/smb/sftp/...
local
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
webdav

Client configuration

Browser:
Google chrome 61 and 62
Operating system:
Mac Sierra 10.12.1

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
{"reqId":"Oi9uqNbFfV3HZ7HpbVmy","level":1,"time":"2017-10-28T06:44:31+00:00","remoteAddr":"192.168.0.1","user":"stijnh","app":"admin_audit","method":"DELETE","url":"\/ocs\/v2.php\/apps\/files_sharing\/api\/v1\/shares\/79?format=json","message":"The folder \"\/Calibrebibliotheek\" with ID \"342605\" has been unshared (Share ID: 79)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/62.0.3202.75 Safari\/537.36","version":"12.0.3.3"}
{"reqId":"vLkF671cf3TvBg1pXZ90","level":1,"time":"2017-10-28T06:44:32+00:00","remoteAddr":"192.168.0.1","user":"stijnh","app":"admin_audit","method":"POST","url":"\/ocs\/v2.php\/apps\/files_sharing\/api\/v1\/shares?format=json","message":"The folder \"\/Calibrebibliotheek\" with ID \"342605\" has been shared via link with permissions \"1\" (Share ID: 80)","userAgent":"Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/62.0.3202.75 Safari\/537.36","version":"12.0.3.3"}

Browser log

Browser log
No errors in the console

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions