[Bug]: *"View" action failed*, continues to view file
ChristophWurst opened this issue · 6 comments
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
1 | 2 |
---|---|
Steps to reproduce
- Open a directory containing a BMP image
- Open the file's action menu
- Click View
Expected behavior
No error, or error and no image.
Installation method
None
Nextcloud Server version
28
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
It also happens with PDF and JPG.
Lines 922 to 937 in c5a7fb2
The error "{displayName}" action failed
is created by Files
the viewer action
viewer/src/services/FilesActionHandler.js
Line 40 in c5a7fb2
undefined
. Therefore it is assumed that the action ran into an error.
If it returns true
there would be a success toast.
If it returns null
the success and error toasts could be hidden.
cc @juliushaertl @max-nextcloud because this probably comes from the migration in #1878
Just from code reading I guess the return value of the action exec function of viewer is undefined not null.
Line 936 in c5a7fb2
viewer/src/services/FilesActionHandler.js
Lines 29 to 39 in c5a7fb2
https://github.com/nextcloud/server/blob/c2c5994d7069464b9e69a54ce2c660a1a340c711/apps/files/src/components/FileEntry/FileEntryActions.vue#L285
I totally missed your earlier replies where you concluded the same 🙈
But good we are on the same page 🤝