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

Sharing fails in 6.4.0 #10041

Closed
d7oc opened this issue Sep 12, 2024 · 4 comments
Closed

Sharing fails in 6.4.0 #10041

d7oc opened this issue Sep 12, 2024 · 4 comments

Comments

@d7oc
Copy link
Contributor

d7oc commented Sep 12, 2024

Describe the bug

If the share dialog in oCIS is opened you only see an animation, but nothing happens:

Screen.Recording.2024-09-12.at.16.13.13.mov

The permissions call is failing with a 500:

Screenshot 2024-09-12 at 16 14 39

Proxy logs shows:

{"level":"debug","service":"proxy","claims":"marshaling error: json: unsupported type: map[interface {}]interface {}","user":{"id":{"idp":"https://ocis.kube.owncloud.test","opaque_id":"024b8111-1c82-4d29-91ad-428dd60b6f69","type":1},"username":"admin","
mail":"admin@example.org","display_name":"Admin","groups":["509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"],"opaque":{"map":{"roles":{"decoder":"json","value":"WyI3MTg4MTg4My0xNzY4LTQ2YmQtYTI0ZC1hMzU2YTJhZmRmN2YiXQ=="}}},"uid_number":99,"gid_number":99},"time":"
2024-09-12T14:04:50Z","line":"github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/account_resolver.go:179","message":"associated claims with user"}
{"level":"debug","service":"proxy","claims":"marshaling error: json: unsupported type: map[interface {}]interface {}","time":"2024-09-12T14:04:51Z","line":"github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/oidc_auth.go:70","message":"cache hit f
or userinfo"}
{"level":"debug","service":"proxy","claims":"marshaling error: json: unsupported type: map[interface {}]interface {}","user":{"id":{"idp":"https://ocis.kube.owncloud.test","opaque_id":"024b8111-1c82-4d29-91ad-428dd60b6f69","type":1},"username":"admin","
mail":"admin@example.org","display_name":"Admin","groups":["509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"],"opaque":{"map":{"roles":{"decoder":"json","value":"WyI3MTg4MTg4My0xNzY4LTQ2YmQtYTI0ZC1hMzU2YTJhZmRmN2YiXQ=="}}},"uid_number":99,"gid_number":99},"time":"
2024-09-12T14:04:51Z","line":"github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/account_resolver.go:179","message":"associated claims with user"}
{"level":"debug","service":"proxy","claims":"marshaling error: json: unsupported type: map[interface {}]interface {}","time":"2024-09-12T14:04:57Z","line":"github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/oidc_auth.go:70","message":"cache hit f
or userinfo"}
{"level":"debug","service":"proxy","claims":"marshaling error: json: unsupported type: map[interface {}]interface {}","time":"2024-09-12T14:04:57Z","line":"github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/oidc_auth.go:70","message":"cache hit f
or userinfo"}
{"level":"debug","service":"proxy","claims":"marshaling error: json: unsupported type: map[interface {}]interface {}","user":{"id":{"idp":"https://ocis.kube.owncloud.test","opaque_id":"024b8111-1c82-4d29-91ad-428dd60b6f69","type":1},"username":"admin","
mail":"admin@example.org","display_name":"Admin","groups":["509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"],"opaque":{"map":{"roles":{"decoder":"json","value":"WyI3MTg4MTg4My0xNzY4LTQ2YmQtYTI0ZC1hMzU2YTJhZmRmN2YiXQ=="}}},"uid_number":99,"gid_number":99},"time":"
2024-09-12T14:04:57Z","line":"github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/account_resolver.go:179","message":"associated claims with user"}
{"level":"debug","service":"proxy","claims":"marshaling error: json: unsupported type: map[interface {}]interface {}","user":{"id":{"idp":"https://ocis.kube.owncloud.test","opaque_id":"024b8111-1c82-4d29-91ad-428dd60b6f69","type":1},"username":"admin","
mail":"admin@example.org","display_name":"Admin","groups":["509a9dcd-bb37-4f4f-a01a-19dca27d9cfa"],"opaque":{"map":{"roles":{"decoder":"json","value":"WyI3MTg4MTg4My0xNzY4LTQ2YmQtYTI0ZC1hMzU2YTJhZmRmN2YiXQ=="}}},"uid_number":99,"gid_number":99},"time":"
2024-09-12T14:04:57Z","line":"github.com/owncloud/ocis/v2/services/proxy/pkg/middleware/account_resolver.go:179","message":"associated claims with user"}

Steps to reproduce

  1. Login
  2. Click on the share button of a folder

Expected behavior

Share dialog should open

Actual behavior

Share dialog does not open correctly

Setup

Use k9s setup from owncloud/ocis-charts#701. Just execute helmfile sync in deployments/ocm-install

Additional context

System was updated from 6.3.0

@d7oc d7oc added the Type:Bug label Sep 12, 2024
@micbar
Copy link
Contributor

micbar commented Sep 12, 2024

How can that slip through our tests? We do ugrade tests and a ton of other api tests on that endpoint.

@butonic
Copy link
Member

butonic commented Sep 13, 2024

fixed by #10050 the single binary picks up the jwt secret because other services configure it and the sharedConfig in reva is a package level singleton.

@saw-jan
Copy link
Member

saw-jan commented Sep 16, 2024

Is it a config issue? we can think of a possible test scenario if it is reproduceable using single binary setup.

@tbsbdr tbsbdr mentioned this issue Sep 24, 2024
@micbar
Copy link
Contributor

micbar commented Sep 24, 2024

This config fix has been released with ocis 6.4.0

@micbar micbar closed this as completed Sep 24, 2024
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