You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Nextcloud 25, there are hundereds to thousands of deprecation warnings in the console. It seems like they are created by the setDeprecatedProp function in core/src/globals.js and only be displayed when window.TESTING is not set.
I really do not understand why there is a need of this volley of warnings in the console in production mode.
These deprecation warnings are meant for developers. Users/admins cannot do anything about them, so they should not be displayed in regular installation (maybe even only when window.TESTINGis set!)
Some of the deprecation warnings are simply wrong. "Handlebars is deprecated: please ship your own, this will be removed in Nextcloud 20" is being displayed in Nextcloud 25, so seemingly Handlebars was not removed in version 20.
Since global methods are wrapped, the warnings are displayed every time this methods is being accessed. I did not measure this, but I could imagine that hundereds of console.warn messages do affect the performance.
Flooding the console with warnings does not make Nextcloud look very polished and stable although these are "only" deprecation warnings for future versions.
For performance and cleanness sake, the warnIfNotTesting method should also be shut up when used in production (or even be changed to warnOnlyIfTesting – but since I am not into the Nextcloud development process, I cannot comment on this).
This might be seen as duplicate for #31763, but that issue only deals with jQuery.
Steps to reproduce
Open Nextcloud
Look at the browser console
Expected behavior
I'd expect only severe warnings and errors being displayed in the browser console. Instead, the console is flooded with deprecation warnings I cannot do anything about.
Installation method
Community Docker image
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Bug description
In Nextcloud 25, there are hundereds to thousands of deprecation warnings in the console. It seems like they are created by the
setDeprecatedProp
function incore/src/globals.js
and only be displayed whenwindow.TESTING
is not set.I really do not understand why there is a need of this volley of warnings in the console in production mode.
window.TESTING
is set!)console.warn
messages do affect the performance.For performance and cleanness sake, the
warnIfNotTesting
method should also be shut up when used in production (or even be changed towarnOnlyIfTesting
– but since I am not into the Nextcloud development process, I cannot comment on this).This might be seen as duplicate for #31763, but that issue only deals with jQuery.
Steps to reproduce
Expected behavior
I'd expect only severe warnings and errors being displayed in the browser console. Instead, the console is flooded with deprecation warnings I cannot do anything about.
Installation method
Community Docker image
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
No response
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
No response
Additional info
No response
The text was updated successfully, but these errors were encountered: