-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
Steps to reproduce
- Run oc10 server
- Create a folder and upload a hidden file in it (
.myfile) - Create a folder public link
- Run ocis with policy service setup
- From web, import from webdav public link
- Try to import the hidden file
Logs
companion-1 | ::ffff:172.22.0.3 - - [09/Apr/2025:09:16:27 +0000] "POST /companion/webdav/get/%2F.lorem HTTP/1.1" 200 48 "https://host.docker.internal:9200/files/spaces/personal/admin?fileId=02227977-bff8-4633-be66-b0743479d07f%24ece9c035-1f54-4ebd-8b16-13e20ba535a7%21ece9c035-1f54-4ebd-8b16-13e20ba535a7&items-per-page=100&files-spaces-generic-view-mode=resource-table&tiles-size=2" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
companion-1 | ::ffff:172.22.0.3 - - [09/Apr/2025:09:16:27 +0000] "GET /companion/webdav/list/ HTTP/1.1" 200 801 "https://host.docker.internal:9200/files/spaces/personal/admin?fileId=02227977-bff8-4633-be66-b0743479d07f%24ece9c035-1f54-4ebd-8b16-13e20ba535a7%21ece9c035-1f54-4ebd-8b16-13e20ba535a7&items-per-page=100&files-spaces-generic-view-mode=resource-table&tiles-size=2" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
companion-1 | companion: 2025-04-09T09:16:27.937Z [info] socket.connect connection received from 05a018a2-e85d-4eaa-b504-b3973fd0eb53
companion-1 | companion: 2025-04-09T09:16:27.937Z [debug] 05a018a2 uploader.socket.wait socket connection received
companion-1 | companion: 2025-04-09T09:16:27.937Z [debug] null Socket connection received. Starting remote download/upload.
companion-1 | companion: 2025-04-09T09:16:27.939Z [debug] 05a018a2 uploader Received from client: resume
companion-1 | companion: 2025-04-09T09:16:27.945Z [error] uploader.tus.error DetailedError: tus: unexpected response while creating upload, originated from request (method: POST, url: https://host.docker.internal:9200/remote.php/dav/spaces/02227977-bff8-4633-be66-b0743479d07f$ece9c035-1f54-4ebd-8b16-13e20ba535a7, response code: 403, response text: {"error":{"code":"deniedByPolicy","message":"Operation denied due to security policies","innererror":{"date":"2025-04-09T09:16:27Z","filename":".lorem","method":"POST","path":"/remote.php/dav/spaces/02227977-bff8-4633-be66-b0743479d07f$ece9c035-1f54-4ebd-8b16-13e20ba535a7","request-id":"1eaed1ff-21e7-4575-93c3-8d363252b16b"}}}
companion-1 | , request id: 1eaed1ff-21e7-4575-93c3-8d363252b16b)
companion-1 | at Upload._emitHttpError (/app/node_modules/tus-js-client/lib.es5/upload.js:879:23)
companion-1 | at /app/node_modules/tus-js-client/lib.es5/upload.js:1003:18
companion-1 | at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
companion-1 | originalRequest: Request {
companion-1 | _method: 'POST',
...
},
companion-1 | _body: '{"error":{"code":"deniedByPolicy","message":"Operation denied due to security policies","innererror":{"date":"2025-04-09T09:16:27Z","filename":".lorem","method":"POST","path":"/remote.php/dav/spaces/02227977-bff8-4633-be66-b0743479d07f$ece9c035-1f54-4ebd-8b16-13e20ba535a7","request-id":"1eaed1ff-21e7-4575-93c3-8d363252b16b"}}}\n'
companion-1 | },
companion-1 | causingError: null
companion-1 | }
companion-1 | companion: 2025-04-09T09:16:27.946Z [debug] 05a018a2 cleanup
...
uploader.error DetailedError: tus: unexpected response while creating upload, originated from request (
method: POST,
url: https://host.docker.internal:9200/remote.php/dav/spaces/02227977-bff8-4633-be66-b0743479d07f$ece9c035-1f54-4ebd-8b16-13e20ba535a7,
response code: 403,
response text:
{"error":{"code":"deniedByPolicy","message":"Operation denied due to security policies","innererror":{"date":"2025-04-09T09:16:31Z","filename":".lorem","method":"POST","path":"/remote.php/dav/spaces/02227977-bff8-4633-be66-b0743479d07f$ece9c035-1f54-4ebd-8b16-13e20ba535a7","request-id":"28066843-282f-4c75-a672-b590a0f2e924"}}}
Expected
Upload failed dialog
Metadata
Metadata
Assignees
Labels
No labels
