-
-
Notifications
You must be signed in to change notification settings - Fork 4.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
[Bug]: File selector not working via the legacy API on NC28 #42291
Comments
At least part of the problem is that the dialog is trying to fetch the resource |
When using Nextcloud inside a subfolder, I used to set the overwritewebroot as well: https://github.com/nextcloud/server/blob/master/config/config.sample.php#L601C1-L609C1 Perhaps this already fixes the wrong URL... |
I just tested adding the |
I did some debugging on this and found out something interesting:
After this, the file selector dialog started to work as intended! So I think we have the root cause here, but I still don't know, how this should be properly fixed. But maybe someone with better understanding of the details of |
Is this not an issue with the dialog library? |
I think I know whats going on here after debugging, its a execution order issue:
So the problem is our libraries are used within the init of the global The solution would be to make our libraries independent from ❗ EDIT: But this does not cause the error, the problem is: |
Thanks! Works fine now on NC 28.0.2 RC4. |
This problem was already fixed once but now it's back in NC29-RC1. |
The base class OC\BackgroundJob\TimedJob has been removed in NC29 in favor of OCP\BackgorundJob\TimedJob. However, the new alternative is not available on ownCloud and we now need to dynamically select among these two the one which can be found. Also, marked the app now as compatible with NC29 as it seemed to work fine on NC29-RC1. Except for the Nextcloud files dialog issue nextcloud/server#42291 which has made a come-back, after being already fixed in NC28.0.2. [sigh] refs #1132
@paulijar is that the same symptoms? |
Yes, looks exactly the same, and the browser console shows that NC tries to fetch |
But what's interesting is that this problem is not present on NC29-beta3. So something has gone wrong very recently. |
Seems to be fixed when releasing a new dialogs versions, might be related to different |
This is working fine again in NC29-rc2. |
Bug description
When the Music app tries to open any file selection dialog (for example, to select the music library root path), this results in grey rectangles being shown in the dialog instead of file icons, names, and details. Errors are shown in the browser console:
Edit: It's apparently necessary for this bug to happen to have a non-empty path in the root URL of the Nextcloud instance. So the bug doesn't happen when accessing the cloud instance on URL like https://my.cloud.host but it does happen when the URL is like https://my.cloud.host/nextcloud.
The same thing happens when the similar dialog is tried to be opened from the settings view of the AudioPlayer application.
The Music app uses the legacy API to show these dialogs. The API calls happen here: https://github.com/owncloud/music/blob/75efb45397bd06fcb17ae3f98fea68a2de15eef3/js/shared/dialogs.ts#L26-L34
These dialogs used to work fine on NC 27.1.2, but the problem is present on NC 28.0.0 (and also on its RC2 and RC4, at least). Note that Music and AudioPlayer apps don't yet have compatible versions for NC28, but that shouldn't be relevant for this issue; the old versions work enough to run into this problem scenario.
Steps to reproduce
Expected behavior
The folder selection dialog opens and can be used to select a folder.
Installation method
Other Community project
Nextcloud Server version
28
Operating system
Other
PHP engine version
PHP 8.2
Web server
Apache (supported)
Database engine version
SQlite
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
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
Console output:
The text was updated successfully, but these errors were encountered: