Repository navigation
Description
Describe the bug
I have a shared, public link on a folder with "Can edit (View, upload, edit, download, delete)" permissions, and can access and view files & directories in that folder.
I can also download files one by one, however trying to download multiple files at once returns an error 'Failed to download the selected files."
Note that as a logged-in user I have no problems downloading files.
Steps to reproduce
- Create a public link
- Open the public link, select more than one file and click the "download" button
Expected behavior
Downloading of multiple files should work.
Actual behavior
Error message 'Failed to download the selected files'.
In the backend, I can see the the following logs:
{"level":"error","service":"proxy","error":"gateway: grpc failed with code CODE_PERMISSION_DENIED","time":"2025-10-25T13:08:19Z","message":"error when calling Createhome"}
{"level":"error","service":"gateway","host.name":"opencloud-679444ff47-79d4k","pkg":"rgrpc","traceid":"77fc0a08975724beff160a095da08d7d","error":"error: permission denied: access forbidden via public link","ref":{"resource_id":{"storage_id":"9160e783-c388-4f99-9454-670a858b38f7","opaque_id":"82871925-9c76-43c0-86b9-aca5df7f96b3","space_id":"96458d93-d65f-4245-9b42-68751f04ab48"},"path":"."},"scope":"publicshare:snYnZpgdaMikAkP","time":"2025-10-25T13:08:19Z","message":"error resolving reference under scope"}
{"level":"error","service":"gateway","host.name":"opencloud-679444ff47-79d4k","pkg":"rgrpc","traceid":"77fc0a08975724beff160a095da08d7d","error":"error: permission denied: access forbidden via public link","ref":{"resource_id":{"storage_id":"9160e783-c388-4f99-9454-670a858b38f7","opaque_id":"82871925-9c76-43c0-86b9-aca5df7f96b3","space_id":"96458d93-d65f-4245-9b42-68751f04ab48"},"path":"."},"scope":"publicshare:snYnZpgdaMikAkP","time":"2025-10-25T13:08:19Z","message":"error resolving reference under scope"}
{"level":"error","service":"gateway","host.name":"opencloud-679444ff47-79d4k","pkg":"rgrpc","traceid":"77fc0a08975724beff160a095da08d7d","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/18.6 Safari/605.1.15","from":"tcp://127.0.0.1:41844","uri":"/cs3.storage.registry.v1beta1.RegistryAPI/ListStorageProviders","start":"25/Oct/2025:13:08:19 +0000","end":"25/Oct/2025:13:08:19 +0000","time_ns":4015152,"code":"PermissionDenied","time":"2025-10-25T13:08:19Z","message":"rpc error: code = PermissionDenied desc = auth: core access token is invalid"}
{"level":"error","service":"frontend","host.name":"opencloud-679444ff47-79d4k","pkg":"rhttp","time":"2025-10-25T13:08:19Z","message":"error: not found: gateway could not find space for ref=resource_id:{storage_id:\"9160e783-c388-4f99-9454-670a858b38f7\" opaque_id:\"82871925-9c76-43c0-86b9-aca5df7f96b3\" space_id:\"96458d93-d65f-4245-9b42-68751f04ab48\"} path:\".\""}Setup
Running this in k8s with a HostPath mount for the data directory, but a pretty basic / minimal setup.
Details
apiVersion: apps/v1
kind: Deployment
metadata:
name: opencloud
labels:
app: opencloud
spec:
selector:
matchLabels:
app: opencloud
replicas: 1
template:
metadata:
labels:
app: opencloud
spec:
containers:
- name: opencloud
image: opencloudeu/opencloud-rolling:latest
env:
- name: PROXY_HTTP_ADDR
value: 0.0.0.0:9200
- name: OC_URL
value: https://opencloud.mydomain.com
volumeMounts:
- name: opencloud-config
mountPath: /etc/opencloud
- name: opencloud-data
mountPath: /var/lib/opencloud
volumes:
- name: opencloud-config
persistentVolumeClaim:
claimName: opencloud-config
- name: opencloud-data
hostPath:
path: /mnt/data/opencloud/This is exposed through nginx-ingress, which I know is working because the download for logged-in users work too :-)
If there's anything else I can provide, please let me know!
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
butonic commentedon Oct 27, 2025
I cant reproduce :(
While I can see similar errors in my log:
They do not prevent me from downloading a zip of the selected files.
I absolutely admit thata we should not log this as error ...
What does the browser console say? Which request fails?
tommyknows commentedon Oct 27, 2025
Appreciate the help!
mmh okay so the logs might be a red herring 🤔
In the console I'm seeing two messages:
with the URL:
Second message:
To me that's not saying much... 😅 but I hope this helps!
JammingBen commentedon Oct 28, 2025
archive could not be fetchedindicates that creating the blob failed. We recently optimized this whole process via opencloud-eu/web#1403, it could very well be that this also fixed your issue. It will be available with the next rolling release beginning next week.2 more questions though:
tommyknows commentedon Oct 30, 2025
Thanks - I‘ll follow that and hope that it fixed the issue!
Yes - is there a way to create links without password protection? (i haven‘t really dug into this - is there a setting to allow the creation of links without passwords that I need to enable first?)
I‘ve tried with different files and sizes, but everything‘s been failing. I‘d say a few MBs.
But i don‘t think that‘s the issue - with a logged in user i was able to download a whole directory, archived, at around 200MBs without an issue….
saw-jan commentedon Oct 31, 2025
You can run the server with this env to disable the password protection
tommyknows commentedon Nov 3, 2025
Thanks! I've retried it with a link without a password and I'm getting a
download.zipfile that's 246 bytes with the contents:(this is the zip, displayed as text)
so, not really a success either 🤔
Note: behaviour generally seems different know - when downloading through a password-protected link I'm getting a file "archiver" that's 0 bytes.
This is on the rolling image / 3.7.0.
JammingBen commentedon Nov 4, 2025
Oh yeah, this I can actually reproduce with the latest version. There seems to be an issue on the web client because there is no url signing happening.
@butonic @rhafer How can the client retrieve a signing key on password-protected links? I tried using the base64-encoded password as basic auth header (just like we're doing it with e.g. webdav requests), but the server gives me a
401error. And when using the signed URL, what should be given asOC-Credentialwhen there is no username?Despite what I've written above, it should work on public links without a password. So there is another issue, which seems more related to your setup IMO 🤔
tommyknows commentedon Nov 6, 2025
I've applied my k8s manifests with slight modifications to my local docker-desktop cluster and there I also can't reproduce the issue.
I'm currently on holiday but will get back to this once I'm back - not sure what the issue is but since nobody can reproduce i don't think it's super urgent. Appreciate all the help so far and will get back to you as soon as possible!
JammingBen commentedon Nov 10, 2025
The download issue on password-protected links has been fixed via opencloud-eu/web#1523. So from my perspective, everything should work as expect now. For that reason, I'm removing the p2 label (@db-ot fyi).
rhafer commentedon Nov 20, 2025
This issue should be fixed meanwhile. Please re-open if you still see problems.
tommyknows commentedon Nov 30, 2025
Just for completeness: I finally got around to re-installing OpenCloud and restoring my data, and it seems to be working fine now. Not sure what that was, but really appreciate everyone's help and fast responses on this!