Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot share with a user that has the same name as a group #29279

Closed
individual-it opened this issue Oct 18, 2017 · 3 comments
Closed

cannot share with a user that has the same name as a group #29279

individual-it opened this issue Oct 18, 2017 · 3 comments

Comments

@individual-it
Copy link
Member

Steps to reproduce

  1. create user called "test"
  2. create group called "test"
  3. share a folder with the group "test (group)"
  4. share the same folder with the user "test"

Expected behaviour

sharing should work without any problem, once with the group and then with the user (that is not member of the particular group)

Actual behaviour

second sharing does not work and a message is shown: "Path already shared with this user"

Server configuration

Operating system:
Debian
Web server:
Apache2
Database:
MySQL
PHP version:
7.1
ownCloud version: (see ownCloud admin page)
10.0.4beta1 same problem with all versions at least since 9.1
Updated from an older ownCloud or fresh install:
fresh
Where did you install ownCloud from:
https://download.owncloud.org/community/testing/owncloud-10.0.4beta1.tar.bz2

The content of config/config.php:

{
    "system": {
        "instanceid": "ocp6qwoyg4fu",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "localhost"
        ],
        "datadirectory": "\/home\/artur\/www\/owncloud-10.0.4beta1\/data",
        "overwrite.cli.url": "http:\/\/localhost\/owncloud-10.0.4beta1",
        "dbtype": "mysql",
        "version": "10.0.4.0",
        "dbname": "owncloud-10-0-4beta1",
        "dbhost": "localhost",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "logtimezone": "UTC",
        "installed": true
    }
}

List of activated apps:

Enabled:
  - comments: 0.3.0
  - configreport: 0.1.1
  - dav: 0.3.1
  - federatedfilesharing: 0.3.1
  - federation: 0.1.0
  - files: 1.5.1
  - files_external: 0.7.1
  - files_sharing: 0.10.1
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - files_videoplayer: 0.9.8
  - market: 0.2.2
  - notifications: 0.3.1
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - templateeditor: 0.1
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - external
  - files_antivirus
  - firstrunwizard
  - theme-example
  - user_external

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/...
no

Client configuration

Browser:
FF 56
Operating system:
Debian

Logs

Web server error log

::1 - - [18/Oct/2017:15:14:27 +0545] "GET /owncloud-10.0.4beta1/ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 853 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
::1 - - [18/Oct/2017:15:14:28 +0545] "GET /owncloud-10.0.4beta1/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=test&perPage=200&itemType=folder HTTP/1.1" 200 1012 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
::1 - - [18/Oct/2017:15:14:29 +0545] "GET /owncloud-10.0.4beta1/index.php/avatar/test/39 HTTP/1.1" 200 781 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
::1 - - [18/Oct/2017:15:14:30 +0545] "POST /owncloud-10.0.4beta1/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json HTTP/1.1" 200 1249 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
::1 - - [18/Oct/2017:15:14:30 +0545] "GET /owncloud-10.0.4beta1/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json&path=%2FDocuments&reshares=true HTTP/1.1" 200 1251 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
::1 - - [18/Oct/2017:15:14:38 +0545] "GET /owncloud-10.0.4beta1/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=test&perPage=200&itemType=folder HTTP/1.1" 200 1012 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
::1 - - [18/Oct/2017:15:14:39 +0545] "GET /owncloud-10.0.4beta1/index.php/avatar/test/39 HTTP/1.1" 200 781 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
::1 - - [18/Oct/2017:15:14:40 +0545] "POST /owncloud-10.0.4beta1/ocs/v2.php/apps/files_sharing/api/v1/shares?format=json HTTP/1.1" 403 823 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
::1 - - [18/Oct/2017:15:14:40 +0545] "GET /owncloud-10.0.4beta1/ocs/v1.php/apps/files_sharing/api/v1/sharees?format=json&search=test&perPage=200&itemType=folder HTTP/1.1" 200 1012 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"
::1 - - [18/Oct/2017:15:14:40 +0545] "GET /owncloud-10.0.4beta1/index.php/avatar/test/39 HTTP/1.1" 200 781 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:56.0) Gecko/20100101 Firefox/56.0"

ownCloud log (data/owncloud.log)

nothing

Browser log

image

first request (share with group) POST data:

shareType=1
shareWith=test
permissions=31
path=/Documents

second request (share with user) POST data:

shareType=0
shareWith=test
permissions=31
path=/Documents
@individual-it individual-it added this to the QA milestone Oct 18, 2017
@pmaier1 pmaier1 modified the milestones: QA, development Nov 6, 2017
@PVince81 PVince81 modified the milestones: development, triage Nov 6, 2017
@PVince81
Copy link
Contributor

PVince81 commented Nov 6, 2017

moving to planned

@PVince81 PVince81 modified the milestones: triage, planned Nov 6, 2017
@PVince81 PVince81 modified the milestones: planned, development Nov 22, 2017
@PVince81 PVince81 modified the milestones: development, planned Jan 12, 2018
@ownclouders
Copy link
Contributor

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 7 days. Feel free to reopen this issue if you deem it appropriate.

(This is an automated comment from GitMate.io.)

@karakayasemi
Copy link
Contributor

We covered fix actions in the following duplicate issue #35488. We can track rest of the actions in scope of #35488.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants