Closed micadeyeye closed 1 year ago
I reckon the general public can access the shared resources when 2FA is disabled.
It started way before NC26. Any fix yet?
Hi @micadeyeye:
Your stack trace (the log entry) is incomplete - it looks like it got cut-off. But from the looks of what was included, your issue isn't in NC but in the third-party app called "files_reader":
OCA\\Files_Reader\\Listeners\\LoadViewerListener::__construct(): Argument #3 ($userId) must be of type string, null given in file '/usr/local/www/apache24/data/nextcloud/apps/files_reader/lib/Listeners/LoadViewerListener.php' line 32
And from the looks of it, it doesn't support > NC24:
https://apps.nextcloud.com/apps/files_reader https://github.com/Yetangitu/files_reader
Oddly it's not in your list of installed apps, but that list appears to have been edited so maybe it got left out by accident?
This doesn't appear to be a bug in Nextcloud. I would suggest contacting the author of that application.
Disable the third-party (ebook) Reader app. Your problem will go away. It hasn't been updated for >NC24 from the looks of it. You'll have to contact the maintainer. It's not an NC distributed app. This isn't a bug in NC Server. Closing.
⚠️ This issue respects the following points: ⚠️
Bug description
This is most likely not a bug but worth reporting since no potential fix at sight. When a file is shared and it's URL sent, the recipient, on clicking it, sees Internal Server Error.
Steps to reproduce
1) Set up 2FA 2) Enable Verification (TOTP, I think) via Email 3) Share a file with no additional settings like permissions, expiry date, etc 4) Copy the link and sign out of NC. Perhaps, you can send the URL to another device 5) Open the link in the same browser, another browser or device 6) You will see the 'Internal.Servet Error'
Expected behavior
The resource e.g. pdf, video, etc should load in the browser.
Installation method
Official All-in-One appliance
Nextcloud Server version
26
Operating system
Other
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MySQL
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?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
Browser Error:
Internal Server Error
The server was unable to complete your request.
If this happens again, please send the technical details below to the server administrator.
More details can be found in the server log. Technical details