Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
update.module
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2015 at 04:19 UTC
Updated:
12 Sep 2015 at 06:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
David_Rothstein commentedComment #3
David_Rothstein commentedHere is a patch. The one that should fail includes a partial revert of #2426969: Dynamic redirects are no longer possible in the batch API (breaks updating existing modules or themes with the Update Manager) to demonstrate that the tests are working as intended.
Comment #5
webchickHuh, InfoParserDynamic is quite a clever hack. :)
We desperately need test coverage for this stuff, and I don't see anything to complain about here, so RTBC. I'll commit this in a day or two if no concerns have been raised.
Comment #8
webchickRe-testing. It was green a couple mins ago.
Comment #10
David_Rothstein commentedThanks! Just needed a completely trivial reroll following #1885564: theme.maintenance.inc (authorize.php) - Convert theme_ functions to Twig, so I'm putting this straight back to RTBC.
Comment #11
andypostjust nits, also wondered DRUPAL_ROOT usage
else becomes unneeded
Comment #12
webchickSounds like that could use feedback from David. Though my inclination is to commit this anyway so we have the test coverage which we ever-so-desperately need, and then do any clean-ups in a follow-up issue.
Comment #13
David_Rothstein commentedI personally prefer the "else" there, since I think it makes it more clear that this return statement happens under opposite conditions from the first one. But I don't care that much and am willing to change it if necessary.
Regarding the DRUPAL_ROOT, that was actually there already until a little over a week ago - we just removed it as part of #2042447: Install a module user interface does not install modules (or themes) but in fact, it turns out this one instance should not have been removed. Effectively, the Update Manager has some built in assumptions (pre-dating this issue) that you can't update a module unless it's somewhere within the Drupal root directory, but I think that is not so bad :)
Comment #14
webchickThat sounds good. Back to RTBC.
Comment #15
webchickIn another episode of "things I swore I committed weeks ago.." ;)
Committed and pushed to 8.0.x. Thanks!