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

Secure view file cannot be open in Collabora using docker compose in web #228

Open
ScharfViktor opened this issue Feb 24, 2025 · 2 comments
Labels

Comments

@ScharfViktor
Copy link
Contributor

Describe the bug

A clear and concise description of what the bug is.
test: HEADLESS=false pnpm run test:e2e:cucumber tests/e2e/cucumber/features/app-provider/secureView.feature

Steps to reproduce

  1. run opencloud using https://github.com/opencloud-eu/web/blob/main/docker-compose.yml OC_IMAGE=opencloud-eu/opencloud:dev docker compose up -d
  2. admin creates test.odt and shares to dennis user with secure-view role
  3. dennis tries to open `test.odt

Expected behavior

file can be open

Actual behavior

user cannot open file. 500 error

POST https://host.docker.internal:9200/app/open?file_id=3239f412-7049-442d-b1ed-1a93ac308858%244215e7f7-990b-44b4-a587-00b85fb7c8ba%21503f9bf6-f989-450c-b982-0f44222b6f49&lang=en&app_name=Collabora&view_mode=view

Status Code:
500 Internal Server Error

Image

logs:
collaboration:
2025-02-24 12:57:16 {"level":"error","service":"collaboration","FileReference":"resource_id:{storage_id:\"3239f412-7049-442d-b1ed-1a93ac308858\" opaque_id:\"503f9bf6-f989-450c-b982-0f44222b6f49\" space_id:\"4215e7f7-990b-44b4-a587-00b85fb7c8ba\"} path:\".\"","ViewMode":"VIEW_MODE_VIEW_ONLY","Requester":"idp:\"https://host.docker.internal:9200\" opaque_id:\"cd88bf9a-dd7f-11ef-a609-7f78deb2345f\" type:USER_TYPE_PRIMARY","time":"2025-02-24T11:57:16Z","line":"github.com/opencloud-eu/opencloud/services/collaboration/pkg/service/grpc/v0/service.go:107","message":"OpenInApp: neither edit nor view app URL found"}

collabora:
2025-02-24 12:58:01 wsd-00001-00058 2025-02-24 11:58:01.178186 +0000 [ docbroker_004 ] ERR No write-able session with valid authorization to refresh lock with| wsd/DocumentBroker.cpp:2733

opencloud:

2025-02-24 12:58:27 2025-02-24T11:58:27Z ERR Error contacting the requested application, please use a different one or try again later error="rpc error: code = Unknown desc = gateway: error calling OpenInApp: rpc error: code = Unknown desc = neither edit nor view app URL found" pkg=rhttp request-id=3bf56f36-dc5c-47e5-ba7b-75d9a244d1f8 service=frontend traceid=e7410d820ecfe06a90b6116020402f5e
2025-02-24 12:58:27 2025-02-24T11:58:27Z ERR http end="24/Feb/2025:11:58:27 +0000" host=127.0.0.1 method=POST pkg=rhttp proto=HTTP/1.1 service=frontend size=134 start="24/Feb/2025:11:58:27 +0000" status=500 time_ns=6971125 traceid=e7410d820ecfe06a90b6116020402f5e uri=/app/open?file_id=3239f412-7049-442d-b1ed-1a93ac308858%244215e7f7-990b-44b4-a587-00b85fb7c8ba%21503f9bf6-f989-450c-b982-0f44222b6f49&lang=en&app_name=Collabora&view_mode=view url=/open?file_id=3239f412-7049-442d-b1ed-1a93ac308858%244215e7f7-990b-44b4-a587-00b85fb7c8ba%21503f9bf6-f989-450c-b982-0f44222b6f49&lang=en&app_name=Collabora&view_mode=view

Setup

note I used collabora version image: collabora/code:24.04.11.1.1 because with 24.04.12.4.1 I had problem

OC_XXX=somevalue
OC_YYY=somevalue
PROXY_XXX=somevalue

Additional context

Add any other context about the problem here.

@ScharfViktor
Copy link
Contributor Author

seems configuration issue because here https://github.com/opencloud-eu/opencloud/tree/main/deployments/examples/opencloud_full it's work

Image

@ScharfViktor ScharfViktor transferred this issue from opencloud-eu/opencloud Feb 24, 2025
@ScharfViktor ScharfViktor changed the title Secure view file cannot be open in Collabora. 500 error Secure view file cannot be open in Collabora using docker compose in web Feb 24, 2025
@ScharfViktor ScharfViktor self-assigned this Feb 24, 2025
@ScharfViktor
Copy link
Contributor Author

I couldn't find the problem. the recipient can only open the file if it is shared with the edit view

@ScharfViktor ScharfViktor removed their assignment Mar 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant