From fea9ae3f9c03cde45850545594c7921297453cb4 Mon Sep 17 00:00:00 2001 From: Akhil Date: Wed, 1 Feb 2023 23:13:00 +0530 Subject: [PATCH 01/49] NC 25 + patch fixes --- Dockerfile | 19 ++- patches/003-contact-search-removal.patch | 12 +- ...04-contact-search-controller-removal.patch | 16 +-- patches/005-autocomplete-user-leak-core.patch | 122 +++++++++--------- ...05-autocomplete-user-leak-custom-app.patch | 25 ---- patches/006-recovery-email-changes.patch | 10 +- patches/009-help-links.patch | 34 +++-- 7 files changed, 105 insertions(+), 133 deletions(-) delete mode 100644 patches/005-autocomplete-user-leak-custom-app.patch diff --git a/Dockerfile b/Dockerfile index 64a024e4..50c8a727 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,10 @@ -FROM nextcloud:24.0.8-fpm AS nextcloud +FROM nextcloud:25.0.3-fpm AS nextcloud ARG BASE_DIR="/usr/src/nextcloud" ARG TMP_PATCH_DIR="/tmp/build_patches" ARG THEME_HELPER_JOB_ID="446245" -ARG NEWS_VERSION="20.0.0" +ARG NEWS_VERSION="20.0.1" ARG QUOTA_WARN_VERSION="1.15.0" -ARG NOTES_VERSION="4.5.1" +ARG NOTES_VERSION="4.6.0" ARG CONTACTS_JOB_ID="471108" ARG CALENDAR_JOB_ID="471116" ARG USER_BACKEND_RAW_SQL_VERSION="1.3.0" @@ -13,10 +13,10 @@ ARG RAINLOOP_VERSION="7.2.5" ARG RAINLOOP_COMMIT_SHA="523518ba" ARG EA_JOB_ID="445966" ARG ECLOUD_LAUNCHER_JOB_ID="458901" -ARG GOOGLE_INTEGRATION_VERSION="1.0.8" +ARG GOOGLE_INTEGRATION_VERSION="1.0.9" ARG ECLOUD_DASHBOARD_JOB_ID="485170" -RUN sed -i 's/24,0,8,2/24,0,8,7/' ${BASE_DIR}/version.php +RUN sed -i 's/25,0,3,2/25,0,3,2/' ${BASE_DIR}/version.php COPY custom_entrypoint.sh / RUN chmod +x /custom_entrypoint.sh RUN mkdir -p /var/www/skeleton/Documents && mkdir -p /var/www/skeleton/Images @@ -119,8 +119,8 @@ COPY patches/ ${TMP_PATCH_DIR}/ RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/002-login-without-domain.patch RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/006-recovery-email-changes.patch RUN patch -u ${BASE_DIR}/apps/settings/lib/Settings/Personal/ServerDevNotice.php -i ${TMP_PATCH_DIR}/007-remove-dev-notice.patch -RUN patch -u ${BASE_DIR}/lib/private/Template/IconsCacher.php -i ${TMP_PATCH_DIR}/008-icons-cacher-theme-svgs.patch -RUN patch -u ${BASE_DIR}/core/Controller/SvgController.php -i ${TMP_PATCH_DIR}/008-svg-controller-theme-svgs.patch +# RUN patch -u ${BASE_DIR}/lib/private/Template/IconsCacher.php -i ${TMP_PATCH_DIR}/008-icons-cacher-theme-svgs.patch +# RUN patch -u ${BASE_DIR}/core/Controller/SvgController.php -i ${TMP_PATCH_DIR}/008-svg-controller-theme-svgs.patch RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/009-help-links.patch RUN patch -u ${BASE_DIR}/lib/private/Updater.php -i ${TMP_PATCH_DIR}/010-disable-app-store-upgrade.patch RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/011-privacy-settings.patch @@ -164,10 +164,9 @@ COPY patches/ ${TMP_PATCH_DIR}/ RUN patch -u ${BASE_DIR}/core/templates/layout.user.php -i ${TMP_PATCH_DIR}/003-contact-search-removal.patch RUN patch -u ${BASE_DIR}/core/Controller/ContactsMenuController.php -i ${TMP_PATCH_DIR}/004-contact-search-controller-removal.patch RUN cd ${BASE_DIR} && patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-core.patch -RUN cd ${BASE_DIR}/custom_apps && patch -p0 < ${TMP_PATCH_DIR}/005-autocomplete-user-leak-custom-app.patch RUN cd ${BASE_DIR} && patch -u ${BASE_DIR}/apps/dashboard/lib/Controller/DashboardController.php -i ${TMP_PATCH_DIR}/012-remove-user-status-widget.patch -RUN patch -u ${BASE_DIR}/core/templates/layout.guest.php -i ${TMP_PATCH_DIR}/016-login-screen.patch -RUN patch -u ${BASE_DIR}/lib/private/Notification/Manager.php -i ${TMP_PATCH_DIR}/020-fairuse-notification-fix.patch +# RUN patch -u ${BASE_DIR}/core/templates/layout.guest.php -i ${TMP_PATCH_DIR}/016-login-screen.patch +# RUN patch -u ${BASE_DIR}/lib/private/Notification/Manager.php -i ${TMP_PATCH_DIR}/020-fairuse-notification-fix.patch RUN rm -rf ${TMP_PATCH_DIR} RUN curl -fsSL -o ldap_write_support.tar.gz \ diff --git a/patches/003-contact-search-removal.patch b/patches/003-contact-search-removal.patch index 6449e213..4cd68d4a 100644 --- a/patches/003-contact-search-removal.patch +++ b/patches/003-contact-search-removal.patch @@ -5,14 +5,14 @@ Subject: [PATCH] remove user search icon in header tab This patch removes the top right icon enabling the global user search function available to all in nextcloud. diff --git layout.user.php layout.user.php-new ---- layout.user.php 2021-06-22 14:06:34.786843164 +0530 -+++ layout.user.php-new 2021-06-22 14:07:45.938569109 +0530 -@@ -103,14 +103,6 @@ - +--- layout.user.php 2023-02-01 21:04:06.457790526 +0530 ++++ layout.user.php-new 2023-02-01 21:04:35.125102888 +0530 +@@ -69,14 +69,6 @@
+
-
-- @@ -21,4 +21,4 @@ diff --git layout.user.php layout.user.php-new -