diff --git a/administrator/components/com_admin/script.php b/administrator/components/com_admin/script.php
index 30931a3292157..e00592f849062 100644
--- a/administrator/components/com_admin/script.php
+++ b/administrator/components/com_admin/script.php
@@ -120,6 +120,7 @@ protected function updateDatabase()
}
$this->uninstallEosPlugin();
+ $this->removeJedUpdateserver();
}
/**
@@ -202,6 +203,49 @@ protected function uninstallEosPlugin()
$installer->uninstall('plugin', $id);
}
+ /**
+ * Remove the never used JED Updateserver
+ *
+ * @return void
+ *
+ * @since __DEPLOY_VERSION__
+ */
+ protected function removeJedUpdateserver()
+ {
+ $db = JFactory::getDbo();
+
+ try
+ {
+ // Get the update site ID of the JED Update server
+ $id = $db->setQuery(
+ $db->getQuery(true)
+ ->select('update_site_id')
+ ->from($db->quoteName('#__update_sites'))
+ ->where($db->quoteName('location') . ' = ' . $db->quote('https://update.joomla.org/jed/list.xml'))
+ )->loadResult();
+
+ // Delete from update sites
+ $result = $db->setQuery(
+ $db->getQuery(true)
+ ->delete($db->quoteName('#__update_sites'))
+ ->where($db->quoteName('update_site_id') . ' = ' . $id)
+ )->execute();
+
+ // Delete from update sites extensions
+ $result = $db->setQuery(
+ $db->getQuery(true)
+ ->delete($db->quoteName('#__update_sites_extensions'))
+ ->where($db->quoteName('update_site_id') . ' = ' . $id)
+ )->execute();
+ }
+ catch (Exception $e)
+ {
+ echo JText::sprintf('JLIB_DATABASE_ERROR_FUNCTION_FAILED', $e->getCode(), $e->getMessage()) . '
';
+
+ return;
+ }
+ }
+
/**
* Update the manifest caches
*
diff --git a/administrator/manifests/files/joomla.xml b/administrator/manifests/files/joomla.xml
index 9b84fb3a3707c..6345150a8d6c6 100644
--- a/administrator/manifests/files/joomla.xml
+++ b/administrator/manifests/files/joomla.xml
@@ -48,6 +48,5 @@
https://update.joomla.org/core/list.xml
- https://update.joomla.org/jed/list.xml
diff --git a/installation/sql/mysql/joomla.sql b/installation/sql/mysql/joomla.sql
index e32faf54078af..5d8c4d28ff8b2 100644
--- a/installation/sql/mysql/joomla.sql
+++ b/installation/sql/mysql/joomla.sql
@@ -1894,9 +1894,8 @@ CREATE TABLE IF NOT EXISTS `#__update_sites` (
INSERT INTO `#__update_sites` (`update_site_id`, `name`, `type`, `location`, `enabled`, `last_check_timestamp`) VALUES
(1, 'Joomla! Core', 'collection', 'https://update.joomla.org/core/list.xml', 1, 0),
-(2, 'Joomla! Extension Directory', 'collection', 'https://update.joomla.org/jed/list.xml', 1, 0),
-(3, 'Accredited Joomla! Translations', 'collection', 'https://update.joomla.org/language/translationlist_3.xml', 1, 0),
-(4, 'Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0);
+(2, 'Accredited Joomla! Translations', 'collection', 'https://update.joomla.org/language/translationlist_3.xml', 1, 0),
+(3, 'Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0);
-- --------------------------------------------------------
@@ -1916,9 +1915,8 @@ CREATE TABLE IF NOT EXISTS `#__update_sites_extensions` (
INSERT INTO `#__update_sites_extensions` (`update_site_id`, `extension_id`) VALUES
(1, 700),
-(2, 700),
-(3, 802),
-(4, 28);
+(2, 802),
+(3, 28);
-- --------------------------------------------------------
diff --git a/installation/sql/postgresql/joomla.sql b/installation/sql/postgresql/joomla.sql
index 03b7c99710596..309916e425ec7 100644
--- a/installation/sql/postgresql/joomla.sql
+++ b/installation/sql/postgresql/joomla.sql
@@ -1782,11 +1782,10 @@ COMMENT ON TABLE "#__update_sites" IS 'Update Sites';
--
INSERT INTO "#__update_sites" ("update_site_id", "name", "type", "location", "enabled", "last_check_timestamp") VALUES
(1, 'Joomla! Core', 'collection', 'https://update.joomla.org/core/list.xml', 1, 0),
-(2, 'Joomla! Extension Directory', 'collection', 'https://update.joomla.org/jed/list.xml', 1, 0),
-(3, 'Accredited Joomla! Translations', 'collection', 'https://update.joomla.org/language/translationlist_3.xml', 1, 0),
-(4, 'Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0);
+(2, 'Accredited Joomla! Translations', 'collection', 'https://update.joomla.org/language/translationlist_3.xml', 1, 0),
+(3, 'Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0);
-SELECT setval('#__update_sites_update_site_id_seq', 5, false);
+SELECT setval('#__update_sites_update_site_id_seq', 4, false);
--
-- Table: #__update_sites_extensions
@@ -1804,9 +1803,8 @@ COMMENT ON TABLE "#__update_sites_extensions" IS 'Links extensions to update sit
--
INSERT INTO "#__update_sites_extensions" ("update_site_id", "extension_id") VALUES
(1, 700),
-(2, 700),
-(3, 802),
-(4, 28);
+(2, 802),
+(3, 28);
--
-- Table: #__usergroups
diff --git a/installation/sql/sqlazure/joomla.sql b/installation/sql/sqlazure/joomla.sql
index be35af447da34..99596a5c5a263 100644
--- a/installation/sql/sqlazure/joomla.sql
+++ b/installation/sql/sqlazure/joomla.sql
@@ -2855,11 +2855,9 @@ SET IDENTITY_INSERT [#__update_sites] ON;
INSERT INTO [#__update_sites] ([update_site_id], [name], [type], [location], [enabled], [last_check_timestamp])
SELECT 1, 'Joomla! Core', 'collection', 'https://update.joomla.org/core/list.xml', 1, 0
UNION ALL
-SELECT 2, 'Joomla! Extension Directory', 'collection', 'https://update.joomla.org/jed/list.xml', 1, 0
+SELECT 2, 'Accredited Joomla! Translations', 'collection', 'https://update.joomla.org/language/translationlist_3.xml', 1, 0
UNION ALL
-SELECT 3, 'Accredited Joomla! Translations', 'collection', 'https://update.joomla.org/language/translationlist_3.xml', 1, 0
-UNION ALL
-SELECT 4, 'Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0;
+SELECT 3, 'Joomla! Update Component Update Site', 'extension', 'https://update.joomla.org/core/extensions/com_joomlaupdate.xml', 1, 0;
SET IDENTITY_INSERT [#__update_sites] OFF;
@@ -2879,11 +2877,9 @@ CREATE TABLE [#__update_sites_extensions](
INSERT INTO [#__update_sites_extensions] ([update_site_id], [extension_id])
SELECT 1, 700
UNION ALL
-SELECT 2, 700
-UNION ALL
-SELECT 3, 802
+SELECT 2, 802
UNION ALL
-SELECT 4, 28;
+SELECT 3, 28;
/****** Object: Table [#__updates] ******/
SET QUOTED_IDENTIFIER ON;
diff --git a/tests/unit/stubs/database/jos_update_sites.csv b/tests/unit/stubs/database/jos_update_sites.csv
index c2bbb9dcdc349..82d57da8235df 100644
--- a/tests/unit/stubs/database/jos_update_sites.csv
+++ b/tests/unit/stubs/database/jos_update_sites.csv
@@ -1,4 +1,3 @@
'update_site_id','name','type','location','enabled','last_check_timestamp'
'1','Joomla Core','collection','http://update.joomla.org/core/list.xml','1','0'
-'2','Joomla Extension Directory','collection','http://update.joomla.org/jed/list.xml','1','0'
-'3','Accredited Joomla! Translations','collection','http://update.joomla.org/language/translationlist_3.xml','1','0'
+'2','Accredited Joomla! Translations','collection','http://update.joomla.org/language/translationlist_3.xml','1','0'
diff --git a/tests/unit/stubs/database/jos_update_sites_extensions.csv b/tests/unit/stubs/database/jos_update_sites_extensions.csv
index f80af626aab70..4c8a59005c3c4 100644
--- a/tests/unit/stubs/database/jos_update_sites_extensions.csv
+++ b/tests/unit/stubs/database/jos_update_sites_extensions.csv
@@ -1,4 +1,3 @@
'update_site_id','extension_id'
'1','700'
-'2','700'
-'3','600'
+'2','600'