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: use- OC.appConfiginstead.
- oc_appswebroots: use- OC.appswebrootsinstead.
- oc_capabilities: use- OC.getCapabilities()instead.
- oc_config: use- OC.configinstead.
- oc_current_user: use- OC.getCurrentUser().uidinstead.
- oc_debug: use- OC.debuginstead.
- oc_isadmin: use- OC.isUserAdmin()instead.
- oc_requesttoken: use- OC.requestTokeninstead.
- oc_webroot: use- OC.getRootPath()instead.
- OCDialogs: use- OC.dialogsinstead.
- OC._capabilities: use- OC.getCapabilities()instead.
- OC.addTranslations: use OC.L10N.load instead.
- OC.coreApps: internal use only, no replacement.
- OC.getHost: use the use- window.location.hostdirectly.
- OC.getHostName: use the use- window.location.hostnamedirectly.
- OC.getPort: use the use- window.location.portdirectly.
- OC.getProtocol: use the use- window.location.protocol.split(':')[0]directly.
- OC.fileIsBlacklisted: use the regex- OC.config.blacklist_files_regexdirectly.
- OC.redirect: use- window.locationdirectly.
- OC.reload: use- window.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 from- uniqueMemberto 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].