-
Notifications
You must be signed in to change notification settings - Fork 54
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
Cannot delete file from viewer if opened via "share by link" #926
Comments
Thank you for reporing this @kalsan. I looked in to this and it seems to be caused by a missing Authorisation header when the delete is invoked from the viewer in public mode. (The authorisation should be |
Pffff, I have been looking in to this a bit, and I think it might be best to call on_delete code in nextcloud/server: https://github.com/nextcloud/server/blob/6f894c8748267a7d5119c517a37c117faf142982/apps/files/js/filelist.js#L3096 |
This comment was marked as resolved.
This comment was marked as resolved.
Hello, I can confirm this issue is still present in NC25 (25.0.3). I have two separate NC instances (one on a shared host, the other on an RPI via nextcloudpi). Both are on 25.0.3. and express the same behavior. Deleting the file from the folder view works fine, but viewing the file and deleting via the context menu results in a basic authorization prompt. |
How to use GitHub
Steps to reproduce
Expected behaviour
In step 4, the picture should be deleted.
Actual behaviour
Credentials are required in step 4. Cancelling the simple auth form results in a 401.
Server configuration
**Operating system:**Latest docker image
Web server: Latest docker image
Database: Mariadb
PHP version: Latest docker image
Nextcloud version: 21.0.2
Updated from an older Nextcloud/ownCloud or fresh install: Upgraded
Where did you install Nextcloud from: Latest docker image
Signing status:
Signing status
List of activated apps:
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: no
Are you using encryption: HTTPS TLS 1.3
Are you using an external user-backend, if yes which one: no
Client configuration
Browser: Firefox
Operating system: Debian 10
Logs
See Nextcloud log below
Web server error log
No relevant log entries since behavior does not result in an Apache error
Nextcloud log (data/nextcloud.log)
Error: Request failed with status code 401
exports createError.js:16
exports settle.js:17
onreadystatechange xhr.js:62
Viewer.vue:776
The text was updated successfully, but these errors were encountered: