Question about upload files through Webdav

Hi,

I would like to ask a question about uploading files through WebDAV. At the moment, I am receiving a 401 error when using basic authentication. I copied the WebDAV URL by inspecting the action section of a file uploaded via the browser to OCIS.

I assume that Basic Authentication is disabled by default, and I should set the environment variable PROXY_ENABLE_BASIC_AUTH.

Could you kindly let me know to which service this variable should be added? Below are my pods for reference.

Additionally, could you provide an example of a WebDAV URL for uploading to a specific folder?

Thank you in advance for your assistance!

[root@k8s1 opt]# kubectl get pods -n owncloud
NAME READY STATUS RESTARTS AGE
activitylog-59976cc494-sjpgj 1/1 Running 0 36h
appregistry-845cf59584-ps49v 1/1 Running 1 (36h ago) 36h
audit-796b7bcb7d-h8tbz 1/1 Running 0 36h
authmachine-7674d86c48-9xdwd 1/1 Running 2 (36h ago) 36h
authservice-545985b46c-w94vz 1/1 Running 0 35h
clientlog-7c7859cc85-kzq49 1/1 Running 0 36h
eventhistory-64b476977d-74zxg 1/1 Running 0 36h
frontend-bf6b4c44-tmlg5 1/1 Running 1 (36h ago) 36h
gateway-78d48bfc6f-76x4f 1/1 Running 1 (36h ago) 36h
graph-9476797c7-tqr8g 1/1 Running 0 36h
groups-78c7476cf-6q6qm 1/1 Running 1 (36h ago) 36h
idm-86484968bd-v6g5r 1/1 Running 0 36h
idp-84dd545c95-gdjk2 1/1 Running 1 (36h ago) 36h
nats-5ddf5f7bc9-jh8mt 1/1 Running 0 36h
ocdav-67bc9dc9b7-574h5 1/1 Running 1 (36h ago) 36h
ocs-cf44b5588-77zqq 1/1 Running 1 (36h ago) 36h
postprocessing-5dcb787957-6gpg6 1/1 Running 0 36h
proxy-58c479465d-5lxnq 1/1 Running 0 35h
search-b866957bc-xq5qr 1/1 Running 0 36h
settings-5b9ccddfd7-7q49z 1/1 Running 1 (36h ago) 36h
sharing-556c7bdbfd-7pnx4 1/1 Running 1 (36h ago) 36h
sse-578fb8c774-jdf6h 1/1 Running 0 36h
storagepubliclink-74c88cf847-pbsgl 1/1 Running 1 (36h ago) 36h
storageshares-66bfb6c8fc-n2gkm 1/1 Running 1 (36h ago) 36h
storagesystem-58647754dd-tdzns 1/1 Running 1 (36h ago) 36h
storageusers-795dd945cc-9mjxw 1/1 Running 1 (36h ago) 36h
thumbnails-5d97b65fb8-bcvf4 1/1 Running 0 36h
userlog-78986c986c-5mdq8 1/1 Running 0 36h
users-7c7955bbd7-8gxtg 1/1 Running 1 (36h ago) 36h
web-b7c778575-bzf4k 1/1 Running 0 36h
webdav-696964db49-vcvqm 1/1 Running 1 (36h ago) 36h
webfinger-84cc5b647f-fq9fd 1/1 Running 1 (36h ago) 36h

immagine

oCIS envvars following a naming pattern: The first word in the envvar is the service name. So the envvar you mentioned (PROXY_ENABLE_BASIC_AUTH) should go to the proxy service.

Webdav request should look something like this: https://localhost:9200/remote.php/dav/spaces/10eb57b5-a1cd-477d-abfa-009dc08f2d01$ff413b19-95bf-4e33-91a7-8a06e86ee9a1/testing

You can check your browser tools to see exact Header and Body examples.