Skip to content

When a share exists its impossible to share a renamed folder #719

Closed
owncloud/core
#38299

Description

@individual-it
  1. as einstein create folder f1
  2. as einstein create folder f2
  3. as einstein share folder f1 with richard
  4. as einstein rename folder f2 to f2-renamed
  5. as einstein share folder f2-renamed with richard

Folder cannot be shared, but sharing itself still works, because its possible to create a folder called f3 and share that.

Failed sharing response:

<?xml version="1.0" encoding="UTF-8"?>
<ocs><meta><status>error</status><statuscode>996</statuscode><message>grpc create share request failed</message></meta></ocs>

OCIS log output

2020-10-20T11:17:21+05:45 INF unary code=OK end="20/Oct/2020:11:17:21 +0545" from=tcp://127.0.0.1:46106 pkg=rgrpc service=storage start="20/Oct/2020:11:17:21 +0545" time_ns=88133 traceid=aef75bf10b157ccf7cf6f81c60a1866c uri=/cs3.storage.registry.v1beta1.RegistryAPI/GetStorageProvider user-agent=grpc-go/1.26.0
2020-10-20T11:17:21+05:45 ERR home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/services/storageprovider/storageprovider.go:740 > error setting ACL error="ocfs: error resolving reference: error: not found: f25f51e5-2c71-4747-90ee-7d3c67c4c11b" pkg=rgrpc service=storage traceid=aef75bf10b157ccf7cf6f81c60a1866c
2020-10-20T11:17:21+05:45 INF unary code=OK end="20/Oct/2020:11:17:21 +0545" from=tcp://127.0.0.1:33010 pkg=rgrpc service=storage start="20/Oct/2020:11:17:21 +0545" time_ns=373589 traceid=aef75bf10b157ccf7cf6f81c60a1866c uri=/cs3.storage.provider.v1beta1.ProviderAPI/AddGrant user-agent=grpc-go/1.26.0
2020-10-20T11:17:21+05:45 ERR home/artur/go/pkg/mod/github.com/cs3org/[email protected]/internal/grpc/services/gateway/usershareprovider.go:460 > error committing share to storage grant error="gateway: grpc failed with code CODE_INTERNAL" pkg=rgrpc service=storage traceid=aef75bf10b157ccf7cf6f81c60a1866c
2020-10-20T11:17:21+05:45 INF unary code=OK end="20/Oct/2020:11:17:21 +0545" from=tcp://127.0.0.1:46148 pkg=rgrpc service=storage start="20/Oct/2020:11:17:21 +0545" time_ns=1765773 traceid=aef75bf10b157ccf7cf6f81c60a1866c uri=/cs3.gateway.v1beta1.GatewayAPI/CreateShare user-agent=grpc-go/1.26.0
2020-10-20T11:17:21+05:45 INF http end="20/Oct/2020:11:17:21 +0545" host=127.0.0.1 method=POST pkg=rhttp proto=HTTP/1.1 service=storage size=164 start="20/Oct/2020:11:17:21 +0545" status=200 time_ns=104697473 traceid=aef75bf10b157ccf7cf6f81c60a1866c uri=/ocs/v1.php/apps/files_sharing/api/v1/shares url=/ocs/v1.php/apps/files_sharing/api/v1/shares

Activity

  1. individual-it commented on Oct 20, 2020

    @individual-it
    MemberAuthor

    the issue even happens if the share of f1 is removed again

  2. refs commented on Jan 12, 2021

    @refs
    Contributor

    not hapening any longer with the latest master. I'm assuming this was tested against the default storage at the time of the writing, which was probably the oc storage. Could we close it @individual-it ?

  3. changed the title [-]when a share exists its impossible to share a renamed folder[/-] [+]When a share exists its impossible to share a renamed folder[/+] on Jan 13, 2021
  4. individual-it commented on Jan 14, 2021

    @individual-it
    MemberAuthor

    I will reopen this to add tests (or to check if those tests already exist). Tests will run against owncloud and ocis storage proving if there is an issue in ether of them

    • ToDo QA-team: add API tests for this case
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions