-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with direct link on files? #5523
Comments
I'm guessing this doesn't always work with external storage as the fileids can be different. |
This only works if it is the same storage configured in nextcloud itself. If the storage is configured by the admin and then uses the same global credentials (that are entered by the admin) this works. If this is configured per user it looks from the nextcloud point of view like 2 completely different file trees and there is no way that Nextcloud knowns that they refer to the same file on the storage. |
Could you check the database table oc_storages for entries. Maybe they are separate anyways. |
you are right. In oc_storage I have an entry for every user like smb::user1@nextcloud.local//folder// So I think it might have someting to do with my storage-configuration. To allow sharing on that storage, I have chosen to save credentials in database for the logged in user. I had to do it like that, because I have a scenario, where users are authenticated via ldap and needs to have the same permissions in nextcloud as set on the smb-files-storage. Is there an other way to have a working configuration in my scenario where I can use the nextcloud-id? |
With login credentials this will not work, because it is a different storage for every user (storage = used credentials x mount) and it would only work if all users would use the same credentials, like the admin specified global credentials above this table. So this is sadly not working how you thought and it's not that likely that it ever will be, because of the underlying architecture we use. |
Thanks for your comment. What we have is a central storage on a windows-server that users can access directly as a windows-drive. I tried s scenario to have the same conntent availabla in nextcloud using the same file- and directory-permissions that are set on the windows-server. It works as expected but as you explained, it will not be possible to have the same file-ids in nextcloud, even though it is exactly the same file on the external storage. So thats really bad... |
I am still looking for a solution for my problem. |
Steps to reproduce
Expected behaviour
Other user/users should be able to access the file by the link received from the first user
Actual behaviour
The user who receives the link has no access to this link. He gets the error message: "File could not be opened".
Server configuration
Operating system:
Ubuntu 16.04
Web server:
Apache
Database:
Postgresql
PHP version:
7
Nextcloud version: (see Nextcloud admin page)
12.0.0
Updated from an older Nextcloud/ownCloud or fresh install:
yes
Where did you install Nextcloud from:
zip
The text was updated successfully, but these errors were encountered: