-
-
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
Preview of theming does not work anymore #5975
Comments
I was already working on fixing this ;-) |
Also broken on 12.0.1 RC4 🙈 |
Pull request #5429 made cached SCSS files depend on a hash of the base URL, so the "/css/core/server.css" file does no longer exist; as the file can not be loaded the "Loading preview" message is never removed and the "Saved" message is never shown. As it now depends on the hash of the base URL the file to be reloaded can no longer be hardcoded, so the DataResponse from the controller now provides the full URL to the "server.css" file that has to be reloaded (if any). Fixes #5975 Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Pull request #5429 made cached SCSS files depend on a hash of the base URL, so the "/css/core/server.css" file does no longer exist; as the file can not be loaded the "Loading preview" message is never removed and the "Saved" message is never shown. As it now depends on the hash of the base URL the file to be reloaded can no longer be hardcoded, so the DataResponse from the controller now provides the full URL to the "server.css" file that has to be reloaded (if any). Fixes #5975 Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Pull request #5429 made cached SCSS files depend on a hash of the base URL, so the "/css/core/server.css" file does no longer exist; as the file can not be loaded the "Loading preview" message is never removed and the "Saved" message is never shown. As it now depends on the hash of the base URL the file to be reloaded can no longer be hardcoded, so the DataResponse from the controller now provides the full URL to the "server.css" file that has to be reloaded (if any). Fixes #5975 Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Fix is in #5981 |
Pull request #5429 made cached SCSS files depend on a hash of the base URL, so the "/css/core/server.css" file does no longer exist; as the file can not be loaded the "Loading preview" message is never removed and the "Saved" message is never shown. As it now depends on the hash of the base URL the file to be reloaded can no longer be hardcoded, so the full URL to the "server.css" file that has to be reloaded (if any) is now got from the DataResponse provided by the controller. Fixes #5975 Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Pull request #5584 made cached SCSS files depend on a hash of the base URL, so the "/css/core/server.css" file does no longer exist; as the file can not be loaded the "Loading preview" message is never removed and the "Saved" message is never shown. As it now depends on the hash of the base URL the file to be reloaded can no longer be hardcoded, so the full URL to the "server.css" file that has to be reloaded (if any) is now got from the DataResponse provided by the controller. Fixes #5975 Signed-off-by: Daniel Calviño Sánchez <[email protected]>
I think I have the same issue and it is cause by caching. When I disable caching it works fine. |
Seems I'm hit by this in NC17, too. Standard setup of nginx/mariadb/apcu/redis on Arch. I get 404 for https://test.seyfarth.de/apps/theming/styles?reload=1570557643276. @fduraibi What do you mean by disabling cache? Redis? Not an option except for debugging :-) Edit: Just noticed that it works fine in Chrome, and that I have plenty of CSP blocked URIs in Firefox. If anyone has a hint on where to debug THAT (but that's off-topic, sorry). During my tests I also encountered that the page is missing css altogehter, I then see these error messages: Refused to apply style from 'https://cloud.domain.com/css/core/68b4-bd84-results.css?v=1f648e556779fb4921ea9f25d235efb0-93b5eae9-31' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. |
css/core/server.css
Problem: The server.css is in my instance for example served under
css/core/72408cbdff8901cd16b886aeabcc367c-server.css
- I guess thereloadStylesheets()
method needs an adjustment to fetch the current name of this an reload that css.server/apps/theming/js/settings-admin.js
Lines 44 to 65 in 3470d0a
cc @danxuliu @juliushaertl @nextcloud/theming
Valid for at least master.
The text was updated successfully, but these errors were encountered: