Closed (fixed)
Project:
Drupal core
Version:
9.3.x-dev
Component:
update.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Nov 2018 at 17:43 UTC
Updated:
14 Jul 2021 at 12:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
govind.maloo commentedComment #3
govind.maloo commentedComment #5
joachim commented> 1) Drupal\Tests\update\Functional\UpdateUploadTest::testUploadModule
Exception: Error: Call to undefined function Drupal\update\Form\file_save_upload()
It looks like file module is still needed.
Comment #6
alexpottAh I missed that. So I guess now the question becomes why are we not doing something similar to \Drupal\system\Form\ThemeSettingsForm which detects if the file module is installed. I think the update module offers functionality that's important - ie checking whether your site is up-to-date that is important without the file module.
Comment #7
Raman Starshykh commentedComment #8
Raman Starshykh commentedComment #9
mitrpaka commentedAttached patch provides upload option only if file module exists.
Comment #10
volkswagenchickTagging for upcoming contribution days.
Comment #11
volkswagenchickComment #17
tedbowThis might be an edge case but I will bring up just so it is not forgotten
Standard profile already depends on File module so it shouldn't make a difference for it but for another install profile that depended on Update module but didn't depend on or File directly or a module that depends directly this would change functionality. Because they would not be able to update load archive(though this not recommended anyways)
But most install profiles would at least have Image module enabled which also depends on File.
So it would only affect insall profiles that dependedon Update and
I would guess that would be zero install profiles but just thought I would point it out.
We should at least point this out in the change record for this issue
Comment #18
quietone commentedSetting to NW for the points in #17 as well as a reroll.
Comment #19
suresh prabhu parkala commentedJust a re-roll against 9.3.x.
Comment #20
tedbowSetting to "Needs Review" to trigger tests
Comment #23
tedbowUpdated to a Merge Request and fixed test failures in #19
Comment #25
tim.plunkettComment #26
tedbowComment #27
tim.plunkettCR written, and the patch is now good to go. Thanks @tedbow!
Comment #28
alexpottI was wondering if the change in the form array would affect contrib - looking at http://grep.xnddx.ru/search?text=%27project_upload%27&filename= I don't think so. The unsets will continue to work just fine.
Comment #29
alexpottCommitted 052816d and pushed to 9.3.x. Thanks!
Comment #31
tedbowThanks @alexpott and everyone!