Closed MorrisJobke closed 5 years ago
Look at #13646 for a dependency, that needs to be resolved in advance.
Adding security label due to http://research.insecurelabs.org/jquery/test/
@LukasReschke 8.2? 9.0?
@LukasReschke 8.2? 9.0?
Has the potential to break a lot. We could drop it early in 9.0 and then see what happens.
Another idea was to only drop the methods, that has security problems. This would reduce the risk of broken apps/code.
Let's try to drop this with 9.0 – patching this manually is igitt ibah :smile:
Tech debt and risky => 9.1
@ChristophWurst now that we upgraded to jquery 2.2, is it the right time to get rid of jquery-migrate ? (which you apparently also upgraded in the PR)
@PVince81 when removing jquery-migrate we'd have to fix all migration issues and follow jQuery's upgrade guide. Enabling jq-migrate warning as @MorrisJobke suggested above will help detect code that needs to be changed. We should migrate to the new jQuery APIs, but I assume it will take some time to find the files/functions that need to be touched as the warning is only shown if you actually use a deprecated function. Once core is fully migrated to jQuery 2.x only, we can remove jquery-migrate. However, this will potentially break some apps.
Running js tests with the non-minified jquery-migrate version throws the following warning:
WARN: 'JQMIGRATE: jQuery.browser is deprecated'
WARN: 'JQMIGRATE: jQuery.fn.unload() is deprecated'
WARN: 'JQMIGRATE: jQuery.parseJSON requires a valid JSON string'
WARN: 'JQMIGRATE: jQuery.fn.attr('checked') might use property instead of attribute'
moving to backlog for now
cc @felixheidecke FYI
@felixheidecke
Some migration was done already, need to check the upgrade guide to find what functions to grep for through all apps.
Core works just fine without jQuery Migrate. OC.SetupChecks
doesn't return errors if the headers are missing, this needs some looking into.
Checking the Enterprise bundle 10.0.8 agains changes and deprecations in jQuery 1.9 and 2.x
.browser()
.live()
.die()
.sub()
.andSelf()
.toggle()
.add()
.after()
.before()
.replaceWith()
.appendTo()
.insertBefore()
.insertAfter()
.replaceAll()
.ajax()
.trigger()
.click()
.focus()
.data()
.parents()
.focus()
.attr()
.prop()
@felixheidecke as discussed yesterday, next steps:
jquery-2-migration
branch in corejquery-2-migration
issue & branch in corresponding app repos
See the script here: https://gist.github.com/felixheidecke/c32ab1b38f7091f5c5d18d4a24fd0024
Please use this core branch to test against https://github.com/owncloud/core/tree/jquery-2-migration
@felixheidecke I can't login with the test branch. Seems something broken in the login page, can you debug ?
Never mind, seems I had an older unsupported app "files_odfviewer" enabled which fails due to missing .live()
method and messes with the login page JS. After disabling the app it works again.
Can Sharepoint app check be assigned to someone with Sharepoint testing abilities?
@felixheidecke apart from sharepoint, are we done ? close ?
We are done indeed