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.appConfig
instead.oc_appswebroots
: useOC.appswebroots
instead.oc_capabilities
: useOC.getCapabilities()
instead.oc_config
: useOC.config
instead.oc_current_user
: useOC.getCurrentUser().uid
instead.oc_debug
: useOC.debug
instead.oc_isadmin
: useOC.isUserAdmin()
instead.oc_requesttoken
: useOC.requestToken
instead.oc_webroot
: useOC.getRootPath()
instead.OCDialogs
: useOC.dialogs
instead.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.host
directly.OC.getHostName
: use the usewindow.location.hostname
directly.OC.getPort
: use the usewindow.location.port
directly.OC.getProtocol
: use the usewindow.location.protocol.split(':')[0]
directly.OC.fileIsBlacklisted
: use the regexOC.config.blacklist_files_regex
directly.OC.redirect
: usewindow.location
directly.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
ldapGroupMemberAssocAttr
changed fromuniqueMember
to 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]
.