-
-
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]: The preview of the personal wallpapers of the dashboard is not displayed #31224
Comments
I have found the (simple) technical reason why it doesn't work, and I think it can be fixed easily and quickly. So we have : Instead of : This displays an error when inspecting the property with the browser's development tools (invalid property). Cc : @ChristophWurst |
Could be the code at Lines 832 to 840 in 45a75c6
|
I can't find the |
Is that a production system? The front-end sources are not shipped for components that go through compilation. I'm afraid you will need a dev env to change the code, rebuild the front-end and give this a local test. |
My last tests lead me to the following conclusion: However, I don't have the skills to build a development environment. Knowing that there is (after my research) a good track for the resolution of the problem, could you ping a contributor-developer so that it can take charge of the resolution of the problem (pull request) ... and add the adequate labels to this issue? Thank you very much for your time on this issue. Best regards. |
Hi, please update to 24.0.9 or better 25.0.3 and report back if it fixes the issue. Thank you! My goal is to add a label like e.g. 25-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort! If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+ |
@szaimen I've tested it on a 25.0.3 test instance a few minutes ago and the problem remains exactly the same : the wallpapers thumbnails in the file explorer popup are not appearing a parent folder includes an apostrophe in its name. |
Also tested 25.0.3 and 25.0.4, same symptoms, though I'm seeing it on the "Insert an attachment" screen of nextcloud/collectives. The "style" attribute of the
The fact that there is a
Wrapping the contents of url() in double quotes
Or both:
"Both" is probably the best answer, but in the spirit of cleaning up any code you touch, I should point out further that the Thus, my suggested steps here are
From a glance at https://github.com/nextcloud/server/blob/master/core/templates/filepicker.html#L48, it appears to be the source that this is generated from, probably a client-side template tool. It might be that adding quotes around the URL is enough to let this work, and that I'm being overcautious above. |
After a little more looking, the template file above is indeed referenced, but for the icon itself, it is ignored in favor of this: Lines 1265 to 1280 in 7c477d4
The attribute is set in such a way that it should indeed be safe, suggesting that we just need a quote wrapper around the url() function's argument. I'll see if I can work out how to build and test the repository, and if it works, I'll make a pull request changing this. |
This ensures that the browser will expect that single-quotes in the url string are not the end of the string, but part of the url. Fixes nextcloud#31224 Signed-off-by: Colin Alworth <colin@colinalworth.com>
For your information, I've tested it again this morning and this issue still occurring in NC27. |
Fixed on 28 |
Awesome ! |
Done with the new picker for the upcoming 27.1 too yes :) |
Great !! |
Bug description
When I want to choose a background other than those proposed by default in my dashboard, I click on the button allowing me to choose among the images available in my files. When the popup that allows me to browse and select the file is displayed, I notice that no thumbnails are displayed (despite the fact that the files and folders are correctly listed and accessible).
Important : The problem occurs only when the name of the folder containing the wallpapers includes an apostrophe.
Check additional information that have been added below recently (with screenshots ...).
Steps to reproduce
Expected behavior
Each image should have a thumbnail.
Installation method
Web installer
Operating system
Ubuntu 20.04
PHP engine version
8.0.15
Web server
Apache
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
After minor update
Are you using the Nextcloud Server Encryption module?
No
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Too long - ask me if necessary
Additional info
I think I have always seen this bug as long as the dashboard has existed (since NextCloud 20).
The text was updated successfully, but these errors were encountered: