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
removing invalid remote shares #23005
Comments
@icewind1991 @owncloud/sharing Thoughts? |
How did you make the server unaccessible. We do remove them depening on the returned status code I believe... @PVince81 |
Probably means the DNS won't resolve at all. |
The server was originally accessible over VPN which I don't have access to anymore. |
There is a difference between "obsolete/invalid share" and "temporary unavailable shares". The only case where we auto-delete shares is "obsolete" ones. To detect an obsolete one, it first connects to the share. If the share returns 404, then it checks whether the matching OC server is accessible by checking its "status.php". If the server is not accessible, it means the 404 was due to a "server temporarily gone" error, so the share is kept until the server becomes available again. In your case, since you changed the environment, it falls under the category "share temporarily unavailable until the server comes back". I don't think there is a good way to efficiently detect such cases without false positives (and deleting legitimate shares during a temporary outage). You'd have to write a SQL query to manually delete the shares that you as admin know aren't valid any more. |
I'd happily do the change in DB directly. Where should I remove those shares? |
@atroxix the incoming remote shares are listed in |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Steps to reproduce
Expected behaviour
It should be possible to somehow remove/un-accept/forget those invalid shares.
Actual behaviour
Remote shares are not shown as they are not accessible, but they cause OwnCloud throwing errors about those in owncloud.log.
Server configuration
Operating system: FreeBSD
Web server: Apache 2.4
Database: MariaDB 10.0
PHP version: 5.6
ownCloud version: 9.0.0
Updated from an older ownCloud or fresh install: Updated from 8.2.2 (through 9.0.0RC1)
Where did you install ownCloud from: FreeBSD ports
Are you using external storage, if yes which one: no
Are you using encryption: no
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Chromium
Operating system: Linux
ownCloud log (data/owncloud.log)
The text was updated successfully, but these errors were encountered: