-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Disable 'Allow users on this server to send shares to other servers' option has not a right behaviour #16439
Comments
The first thought I had was to delete the existing shares whenever the admin disables "allow users to send shares". But the problem is that they might be link shares (which are still allowed). The second option which is probably better and quicker to fix is to fix the 500 to actually be a 404. The second server should find out that the shares do not exist any more (even though they might still in the database on server A) |
Hmm looks like the other option "allow users to receive shares" also does not remove the mount points. |
We have a checkbox in the admin page called "Allow users on this server to send shares to other servers". I think we have some kind of conflict here. Now remote sharing is even more complicated because it has two ways:
In an ideal case, disabling "Allow users on this server to send shares to other servers" should block both cases. But we cannot just block the WebDAV part of the link share but still allow the web UI to work, this is inconsistent. We need to think about better ways. Remote share mount points also uses "shareinfo.php", maybe we could only block on that ? But it means that if people got the idea of mounting public.php/webdav using other tools, they would still have access. Yet another idea would be to delete the remote shares (but not the link shares!) whenever the admin disables sending remote shares. But that doesn't seem to prevent public.php/webdav access. @oparoz @DeepDiver1975 @schiesbn @icewind1991 any ideas ? |
Here is a short term fix #16465, but this is only to prevent the 500 error on the connecting server and have it detect that the share is not available any more. |
If an admin wants to really avoid remote mounting, they should disable both "public link" and "allow sharing with remote users". |
@PVince81 Can this be closed now? |
Ok, then let's continue the discussion here: #16464 (that tickets illustrates better what is wrong with our API) |
Steps to reproduce
Expected behaviour
The file in server B should not appear
Actual behaviour
File in server B still appearing and if you click on it, nothing seems to happen, but 500 internal Server error occurs
Server configuration
Operating system: ubuntu 14.04
Web server: apache 2.4.7
Database: mysql
PHP version: 5.5.9
ownCloud version: version":"8.1.0.5","versionstring":"8.1 beta 1","edition":"Enterprise"
Updated from an older ownCloud or fresh install: Fresh install
List of activated apps:
Enabled:
Are you using external storage, if yes which one: no
Are you using encryption: yes
Are you using an external user-backend, if yes which one: ActiveDirectory
Client configuration
Browser: Internet Explorer 9 & Firefox
The text was updated successfully, but these errors were encountered: