owncloud / owncloud/ocis

Improve error log when OCIS_CORS sets wrong

Open
#9,147 0 comments 0 reactions 0 assignees View on GitHub
Type:Bug
Dominant language
Go
Stars
2.1k
Forks
274
Avg merge
2d 1h
Merged PRs (30d)
103

Description

related https://github.com/owncloud/enterprise/issues/6651

Steps:
- go to the https://github.com/owncloud/ocis/blob/master/deployments/examples/ocis_wopi/docker-compose.yml
- put `OCIS_CORS_ALLOW_ORIGINS: "https://owncloud.com"` to `ocis`->`environment` section
- docker-compose up -d
- open https://ocis.owncloud.test
- upload small file -> works correct
- upload big file (more than 20 Mb) -> 502 Error

Issue1: error log is not clear. we need improve error message

improving 2: @butonic suggestion: add the `OCIS_URL` to the allowed domains by default

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.