Upgrade to Nextcloud 17
Note
Critical changes were collected on GitHub. See the original ticket for links to the pull requests and tickets.
Front-end changes
Deprecated global variables
initCore: don’t use this internal function.oc_appconfig: useOC.appConfiginstead.oc_appswebroots: useOC.appswebrootsinstead.oc_capabilities: useOC.getCapabilities()instead.oc_config: useOC.configinstead.oc_current_user: useOC.getCurrentUser().uidinstead.oc_debug: useOC.debuginstead.oc_isadmin: useOC.isUserAdmin()instead.oc_requesttoken: useOC.requestTokeninstead.oc_webroot: useOC.getRootPath()instead.OCDialogs: useOC.dialogsinstead.OC._capabilities: useOC.getCapabilities()instead.OC.addTranslations: use OC.L10N.load instead.OC.coreApps: internal use only, no replacement.OC.getHost: use the usewindow.location.hostdirectly.OC.getHostName: use the usewindow.location.hostnamedirectly.OC.getPort: use the usewindow.location.portdirectly.OC.getProtocol: use the usewindow.location.protocol.split(':')[0]directly.OC.fileIsBlacklisted: use the regexOC.config.blacklist_files_regexdirectly.OC.redirect: usewindow.locationdirectly.OC.reload: usewindow.location.reload()directly.
Removed jQuery plugins
singleselect: ship your own if you really need it.
Back-end changes
Removed from public namespace
\OCP\App::checkAppEnabled\OCP\Security\StringUtils\OCP\Util::callCheck
Deprecations
\OCP\AppFramework\Http\EmptyContentSecurityPolicy::allowEvalScript: This means apps should no longer use eval in their JavaScript. We aim to forbid this in general in a future version of Nextcloud.\OCP\AppFramework\Utility\IControllerMethodReflector::reflec: Will be removed in 18.
Behavioral changes
LDAP: default value for
ldapGroupMemberAssocAttrchanged fromuniqueMemberto unset. On scripted setups, it has to be set if LDAP groups should be used within Nextcloud.Provisioning API: creating users will return the assigned user ID as dataset, as in
['id' => $userid].