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

500 when public uploads file to project space #8699

Closed
ScharfViktor opened this issue Mar 20, 2024 · 1 comment · Fixed by #8702
Closed

500 when public uploads file to project space #8699

ScharfViktor opened this issue Mar 20, 2024 · 1 comment · Fixed by #8702
Assignees
Labels

Comments

@ScharfViktor
Copy link
Contributor

Version | 5.1.0-prealpha+03bd7d83f

9.0.0-alpha.2

Steps:

  • admin creates project space and create public link for space (edit permission)
  • public opens link and upload file

Actual:
image

ocis_log:

2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR rpc error: code = PermissionDenied desc = auth: core access token is invalid code=PermissionDenied end="20/Mar/2024:08:28:46 +0000" from=tcp://127.0.0.1:39022 pkg=rgrpc service=sharing start="20/Mar/2024:08:28:46 +0000" time_ns=106459 traceid=a2eea47ee507f6d36506413dba14592f uri=/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares user-agent=grpc-go/1.62.1
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR sharesstorageprovider: error calling ListReceivedSharesRequest: sharesstorageprovider: error calling ListReceivedSharesRequest: rpc error: code = PermissionDenied desc = auth: core access token is invalid code=PermissionDenied end="20/Mar/2024:08:28:46 +0000" from=tcp://127.0.0.1:58918 pkg=rgrpc service=storage-shares start="20/Mar/2024:08:28:46 +0000" time_ns=947958 traceid=a2eea47ee507f6d36506413dba14592f uri=/cs3.storage.provider.v1beta1.ProviderAPI/ListStorageSpaces user-agent=grpc-go/1.62.1
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR rpc error: code = PermissionDenied desc = auth: core access token is invalid code=PermissionDenied end="20/Mar/2024:08:28:46 +0000" from=tcp://127.0.0.1:59508 pkg=rgrpc service=ocm start="20/Mar/2024:08:28:46 +0000" time_ns=47042 traceid=a2eea47ee507f6d36506413dba14592f uri=/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares user-agent=grpc-go/1.62.1
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR gateway: error calling ListReceivedShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid code=PermissionDenied end="20/Mar/2024:08:28:46 +0000" from=tcp://192.168.0.12:52110 pkg=rgrpc service=gateway start="20/Mar/2024:08:28:46 +0000" time_ns=575500 traceid=a2eea47ee507f6d36506413dba14592f uri=/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares user-agent=grpc-go/1.62.1
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR failed to list storage spaces error="rpc error: code = PermissionDenied desc = gateway: error calling ListReceivedShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid" filters=[{"Term":{"Path":"/public/MSdlKXQZLikAmoB/Screenshot 2024-03-19 at 13.54.06.png"},"type":5},{"Term":{"SpaceType":"+mountpoint"},"type":4}] pkg=rgrpc service=ocm status={"code":15,"message":"error listing spaces","trace":"a2eea47ee507f6d36506413dba14592f"} traceid=a2eea47ee507f6d36506413dba14592f
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR rpc error: code = PermissionDenied desc = auth: core access token is invalid code=PermissionDenied end="20/Mar/2024:08:28:46 +0000" from=tcp://127.0.0.1:59508 pkg=rgrpc service=ocm start="20/Mar/2024:08:28:46 +0000" time_ns=41875 traceid=a2eea47ee507f6d36506413dba14592f uri=/cs3.sharing.ocm.v1beta1.OcmAPI/ListReceivedOCMShares user-agent=grpc-go/1.62.1
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR gateway: error calling ListReceivedShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid code=PermissionDenied end="20/Mar/2024:08:28:46 +0000" from=tcp://192.168.0.12:52110 pkg=rgrpc service=gateway start="20/Mar/2024:08:28:46 +0000" time_ns=456917 traceid=a2eea47ee507f6d36506413dba14592f uri=/cs3.gateway.v1beta1.GatewayAPI/ListReceivedOCMShares user-agent=grpc-go/1.62.1
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR failed to list storage spaces error="rpc error: code = PermissionDenied desc = gateway: error calling ListReceivedShares: rpc error: code = PermissionDenied desc = auth: core access token is invalid" filters=[{"Term":{"Path":"/public/MSdlKXQZLikAmoB/Screenshot 2024-03-19 at 13.54.06.png"},"type":5},{"Term":{"SpaceType":"+mountpoint"},"type":4}] pkg=rgrpc service=ocm status={"code":15,"message":"error listing spaces","trace":"a2eea47ee507f6d36506413dba14592f"} traceid=a2eea47ee507f6d36506413dba14592f
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR rpc error: code = PermissionDenied desc = auth: core access token is invalid code=PermissionDenied end="20/Mar/2024:08:28:46 +0000" from=tcp://127.0.0.1:39022 pkg=rgrpc service=sharing start="20/Mar/2024:08:28:46 +0000" time_ns=46333 traceid=a2eea47ee507f6d36506413dba14592f uri=/cs3.sharing.collaboration.v1beta1.CollaborationAPI/ListReceivedShares user-agent=grpc-go/1.62.1
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR sharesstorageprovider: error calling ListReceivedSharesRequest: sharesstorageprovider: error calling ListReceivedSharesRequest: rpc error: code = PermissionDenied desc = auth: core access token is invalid code=PermissionDenied end="20/Mar/2024:08:28:46 +0000" from=tcp://127.0.0.1:58918 pkg=rgrpc service=storage-shares start="20/Mar/2024:08:28:46 +0000" time_ns=385084 traceid=a2eea47ee507f6d36506413dba14592f uri=/cs3.storage.provider.v1beta1.ProviderAPI/ListStorageSpaces user-agent=grpc-go/1.62.1
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR error when calling Createhome error="gateway: grpc failed with code CODE_PERMISSION_DENIED" service=proxy
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR error resolving reference resource_id:<storage_id:"13b5b543-0239-4abf-b2fc-5b84758d183b" opaque_id:"2c35a76e-a0fc-4d35-9bd6-06a8d563880c" space_id:"8dfc1eb7-d9a0-4753-93cc-0d1a43b555ad" >  under scope publicshare:wHFaHdMgEUkdXIv error="error: permission denied: access forbidden via public link" pkg=rgrpc service=gateway traceid=a2eea47ee507f6d36506413dba14592f
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR error resolving reference resource_id:<storage_id:"13b5b543-0239-4abf-b2fc-5b84758d183b" opaque_id:"2c35a76e-a0fc-4d35-9bd6-06a8d563880c" space_id:"8dfc1eb7-d9a0-4753-93cc-0d1a43b555ad" >  under scope publicshare:wHFaHdMgEUkdXIv error="error: permission denied: access forbidden via public link" pkg=rgrpc service=gateway traceid=a2eea47ee507f6d36506413dba14592f
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR rpc error: code = PermissionDenied desc = auth: core access token is invalid code=PermissionDenied end="20/Mar/2024:08:28:46 +0000" from=tcp://192.168.0.12:53750 pkg=rgrpc service=gateway start="20/Mar/2024:08:28:46 +0000" time_ns=5148917 traceid=a2eea47ee507f6d36506413dba14592f uri=/cs3.storage.registry.v1beta1.RegistryAPI/ListStorageProviders user-agent=grpc-go/1.62.1
2024-03-20 09:28:46 2024-03-20T08:28:46Z ERR No info found for uploaded file name=com.owncloud.web.ocdav path="/public/MSdlKXQZLikAmoB/Screenshot 2024-03-19 at 13.54.06.png" request-id=52cedd47-3cac-456b-8add-8c41ac37e25a service=ocdav traceid=a2eea47ee507f6d36506413dba14592f

but after refresh page - the file exists

cc @2403905

@2403905
Copy link
Contributor

2403905 commented Mar 20, 2024

Here is a fix for this issue cs3org/reva#4589
@micbar We also have two similar tickets for v4.0.6 Should I make the backport?
#8629
#8658

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

Successfully merging a pull request may close this issue.

2 participants