Folder shared twice with user

If have a folder which is shared with a group. For one user of the group the folder is shown twice.
This happens to all folders which are shared the same way.

Steps to reproduce
1. Share folder via web interface to single group
2. Folder appers twice in the user's file system (and in the table oc_share)

Expected behaviour
The folder should be only visible once.

Actual behaviour
The folder is shown twice, the second postfixed with (2)

Server configuration
Operating system: CentOS 7.3
Web server: Nginx 1.11
Database: MariaDB 5.5
PHP version: 5.6.29 (remi), FPM
ownCloud version (see ownCloud admin page): 9.1.3 via rpm
Updated from an older ownCloud or fresh install: updated sind 8.x
Special configuration (external storage, external authentication, reverse proxy, server-side-encryption): External authentication (IMAP)

ownCloud log (data/owncloud.log)

Please paste possible errors in the following code block, see for more info

Integrity status for oC9+

No errors have been found.

This should be fixed with 9.1.2+:

If not -> New bugreport

There's not only the string "(2)" added, even the shares were duplicated.

If the receiver havn't got the shared folder previously shared before the folder got shared to the group:

Solved it by:

  • removing the user from the group which is used for the share
  • delete the user from owncloud with occ user::delete UID
  • created the user
  • added the user to the group