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

File cannot be opened, the following error message appears #6261

Closed
tschiebel opened this issue May 9, 2023 · 3 comments
Closed

File cannot be opened, the following error message appears #6261

tschiebel opened this issue May 9, 2023 · 3 comments
Assignees
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug

Comments

@tschiebel
Copy link

tschiebel commented May 9, 2023

Error description

File cannot be opened, the following error message appears

public-link error

Steps for reproduction

Create directory
Create subdirectory
Create file in subdirectory
Share directory via quick link (here: show)
*
*
*

Expected behavior

Directory and subdirectory are accessible by link and the file located in the subdirectory can be opened

Actual behavior

File cannot be opened

Additional context

Behavior could not be constructed without subdirectory

@micbar
Copy link
Contributor

micbar commented May 9, 2023

I tried to reproduce on RC.3. This behavior could not be observed on a default ocis setup.

@micbar
Copy link
Contributor

micbar commented May 10, 2023

Was able to reproduce.

ocis log

{
    "level":"info",
    "service":"proxy",
    "proto":"HTTP/1.1",
    "request-id":"71c18a26-564c-4b23-ad27-f3d8c0b49da5",
    "remote-addr":"89.246.8.151",
    "method":"POST",
    "status":200,
    "path":"/app/open",
    "duration":45.791076,
    "bytes":2613,
    "time":"2023-05-10T07:11:10.014657602Z",
    "line":"github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/accesslog.go:28",
    "message":"access-log"
},
{
    "level":"info",
    "service":"gateway",
    "pkg":"rgrpc",
    "traceid":"00000000000000000000000000000000",
    "time":"2023-05-10T07:11:10.075854078Z",
    "line":"github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:69",
    "message":"resolving storage reference to check token scope resource_id:<storage_id:\"0dd2c554-61ce-4c46-bceb-1962ce93fac3\" opaque_id:\"c01fdee4-301e-49fd-a89e-af805c8638d1\" space_id:\"05c098a6-cbbd-4b5e-85f8-8c9f056d1fc5\" > path:\"./Doc.docx\" "
},
{
    "level":"error",
    "service":"gateway",
    "pkg":"rgrpc",
    "traceid":"00000000000000000000000000000000",
    "error":"error: permission denied: access forbidden via public link",
    "time":"2023-05-10T07:11:10.085136653Z",
    "line":"github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:87",
    "message":"error resolving reference resource_id:<storage_id:\"0dd2c554-61ce-4c46-bceb-1962ce93fac3\" opaque_id:\"c01fdee4-301e-49fd-a89e-af805c8638d1\" space_id:\"05c098a6-cbbd-4b5e-85f8-8c9f056d1fc5\" > path:\"./Doc.docx\"  under scope publicshare:bUtDLDVhzDiePIu"
},
{
    "level":"info",
    "service":"gateway",
    "pkg":"rgrpc",
    "traceid":"00000000000000000000000000000000",
    "time":"2023-05-10T07:11:10.08558757Z",
    "line":"github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:69",
    "message":"resolving storage reference to check token scope resource_id:<storage_id:\"0dd2c554-61ce-4c46-bceb-1962ce93fac3\" opaque_id:\"c01fdee4-301e-49fd-a89e-af805c8638d1\" space_id:\"05c098a6-cbbd-4b5e-85f8-8c9f056d1fc5\" > path:\"./Doc.docx\" "
},
{
    "level":"error",
    "service":"gateway",
    "pkg":"rgrpc",
    "traceid":"00000000000000000000000000000000",
    "error":"error: permission denied: access forbidden via public link",
    "time":"2023-05-10T07:11:10.093605764Z",
    "line":"github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/scope.go:87",
    "message":"error resolving reference resource_id:<storage_id:\"0dd2c554-61ce-4c46-bceb-1962ce93fac3\" opaque_id:\"c01fdee4-301e-49fd-a89e-af805c8638d1\" space_id:\"05c098a6-cbbd-4b5e-85f8-8c9f056d1fc5\" > path:\"./Doc.docx\"  under scope publicshare:bUtDLDVhzDiePIu"
},
{
    "level":"warn",
    "service":"gateway",
    "pkg":"rgrpc",
    "traceid":"00000000000000000000000000000000",
    "error":"error: permission denied: access to resource opaque:<map:<key:\"mask\" value:<decoder:\"plain\" value:\"root\" > > map:<key:\"opaque_id\" value:<decoder:\"plain\" value:\"c01fdee4-301e-49fd-a89e-af805c8638d1\" > > map:<key:\"path\" value:<decoder:\"plain\" value:\"./Doc.docx\" > > map:<key:\"space_id\" value:<decoder:\"plain\" value:\"05c098a6-cbbd-4b5e-85f8-8c9f056d1fc5\" > > map:<key:\"storage_id\" value:<decoder:\"plain\" value:\"0dd2c554-61ce-4c46-bceb-1962ce93fac3\" > > map:<key:\"unique\" value:<decoder:\"plain\" value:\"true\" > > >  not allowed within the assigned scope",
    "time":"2023-05-10T07:11:10.093805991Z",
    "line":"github.com/cs3org/reva/[email protected]/internal/grpc/interceptors/auth/auth.go:150",
    "message":"access token is invalid"
}

@micbar micbar added the Priority:p2-high Escalation, on top of current planning, release blocker label May 10, 2023
@micbar micbar moved this from Qualification to Prio 2 in Infinite Scale Team Board May 10, 2023
@kobergj kobergj self-assigned this May 10, 2023
@kobergj kobergj moved this from Prio 2 to In progress in Infinite Scale Team Board May 10, 2023
@micbar
Copy link
Contributor

micbar commented May 17, 2023

fixed in #6340

@micbar micbar closed this as completed May 17, 2023
@github-project-automation github-project-automation bot moved this from In progress to Done in Infinite Scale Team Board May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:p2-high Escalation, on top of current planning, release blocker Type:Bug
Projects
Archived in project
Development

No branches or pull requests

3 participants