You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the OCIS_URL environment variable and ending the URL with a slash, the drives endpoint returns a WebDAV URL that doesn't support PROPFINDs.
Steps to reproduce
Steps to reproduce the behavior:
Set up an instance using this docker-compose file:
---
version: "3.7"services:
ocis:
image: owncloud/ocis:latestports:
- 9200:9200
- 9215:9215environment:
OCIS_INSECURE: "true"OCIS_URL: "https://myserver:9200/"IDM_CREATE_DEMO_USERS: "true"IDM_ADMIN_PASSWORD: "admin"restart: "no"entrypoint:
- /bin/sh# run ocis init to initialize a configuration file with random secrets# it will fail on subsequent runs, because the config file already exists# therefore we ignore the error and then start the ocis servercommand: ["-c", "ocis init || true; ocis server"]
Request the drive list from /graph/v1.0/me/drives
Send a PROPFIND request to the returned webDavUrl.
Expected behavior
The server returns the requested items in response to the PROPFIND.
Actual behavior
The drives endpoint returns a URL with double slashes:
Describe the bug
When using the
OCIS_URL
environment variable and ending the URL with a slash, the drives endpoint returns a WebDAV URL that doesn't supportPROPFIND
s.Steps to reproduce
Steps to reproduce the behavior:
/graph/v1.0/me/drives
PROPFIND
request to the returnedwebDavUrl
.Expected behavior
The server returns the requested items in response to the
PROPFIND
.Actual behavior
PROPFIND
to that URL returns a405 METHOD NOT ALLOWED
response:The issue is resolved by using
(without trailing slash) in the docker compose file.
Setup
Please describe how you started the server and provide a list of relevant environment variables.
The text was updated successfully, but these errors were encountered: