Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3886269 authored by Akhil's avatar Akhil 🙂
Browse files

Merge branch 'dev/23.0.11' into 'main'

update to nextcloud 23.0.11

See merge request !139
parents ca879c91 9f5336b1
Loading
Loading
Loading
Loading
Loading
+26 −21
Original line number Diff line number Diff line
FROM nextcloud:23.0.9-fpm AS nextcloud
FROM nextcloud:23.0.11-fpm AS nextcloud
ARG BASE_DIR="/usr/src/nextcloud"
ARG TMP_PATCH_DIR="/tmp/build_patches"
ARG THEME_VERSION="22.1.5"
ARG THEME_HELPER_VERSION="1.4.4"
ARG NEWS_VERSION="18.1.1"
ARG QUOTA_WARN_VERSION="1.14.0"
ARG THEME_VERSION="23.0.3"
ARG THEME_HELPER_JOB_ID="433795"
ARG NEWS_VERSION="19.0.0"
ARG QUOTA_WARN_VERSION="1.15.0"
ARG NOTES_VERSION="4.5.1"
ARG CONTACTS_JOB_ID="400045"
ARG CALENDAR_JOB_ID="414851"
ARG CALENDAR_JOB_ID="435164"
ARG USER_BACKEND_RAW_SQL_VERSION="1.3.0"
ARG EMAIL_RECOVERY_JOB_ID="389385"
ARG EMAIL_RECOVERY_JOB_ID="433031"
ARG RAINLOOP_VERSION="7.2.5"
ARG RAINLOOP_COMMIT_SHA="523518ba"
ARG EA_TAG="2.1.1"
ARG ECLOUD_LAUNCHER_JOB_ID="389373"
ARG EA_JOB_ID="433303"
ARG ECLOUD_LAUNCHER_JOB_ID="432959"
ARG GOOGLE_INTEGRATION_VERSION="1.0.8"
ARG LDAP_WRITE_SUPPORT_VERSION="1.4.0"
ARG OIDC_LOGIN_VERSION="2.3.3"

RUN sed -i 's/23,0,9,1/23,0,9,19/' ${BASE_DIR}/version.php
RUN sed -i 's/23,0,11,1/23,0,11,6/' ${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
@@ -72,12 +72,11 @@ RUN curl -fsSL -o rainloop.tar.gz \
    mv "${BASE_DIR}/custom_apps/rainloop-nextcloud-${RAINLOOP_VERSION}-${RAINLOOP_COMMIT_SHA}" "${BASE_DIR}/custom_apps/rainloop" && \
    rm rainloop.tar.gz;


RUN curl -fsSL -o ecloud-theme-helper.tar.gz \
    "https://gitlab.e.foundation/e/infra/ecloud/nextcloud-apps/ecloud-theme-helper/-/archive/${THEME_HELPER_VERSION}/ecloud-theme-helper-${THEME_HELPER_VERSION}.tar.gz" && \
    tar -xf ecloud-theme-helper.tar.gz -C ${BASE_DIR}/custom_apps/ && \
    mv "${BASE_DIR}/custom_apps/ecloud-theme-helper-${THEME_HELPER_VERSION}" "${BASE_DIR}/custom_apps/ecloud-theme-helper" && \
    rm ecloud-theme-helper.tar.gz;
RUN curl -fsSL -o ecloud-theme-helper.zip \
    "https://gitlab.e.foundation/e/infra/ecloud/nextcloud-apps/ecloud-theme-helper/-/jobs/${THEME_HELPER_JOB_ID}/artifacts/download" && \
    unzip ecloud-theme-helper.zip && \
    mv dist/ecloud-theme-helper ${BASE_DIR}/custom_apps/ && \
    rm ecloud-theme-helper.zip;

RUN curl -fsSL -o murena_launcher.zip \
    "https://gitlab.e.foundation/e/infra/ecloud/nextcloud-apps/launcher/-/jobs/${ECLOUD_LAUNCHER_JOB_ID}/artifacts/download" && \
@@ -91,11 +90,11 @@ RUN curl -fsSL -o integration_google.tar.gz \
    chown -R www-data:www-data ${BASE_DIR}/custom_apps/integration_google && \
    rm integration_google.tar.gz;

RUN curl -fsSL -o ecloud-accounts.tar.gz \
    "https://gitlab.e.foundation/e/infra/ecloud/nextcloud-apps/ecloud-accounts/-/archive/${EA_TAG}/ecloud-accounts-${EA_TAG}.tar.gz" && \
    tar -xf ecloud-accounts.tar.gz -C ${BASE_DIR}/custom_apps/ && \
    mv "${BASE_DIR}/custom_apps/ecloud-accounts-${EA_TAG}" "${BASE_DIR}/custom_apps/ecloud-accounts" && \
    rm ecloud-accounts.tar.gz;
RUN curl -fsSL -o ecloud-accounts.zip \
    "https://gitlab.e.foundation/e/infra/ecloud/nextcloud-apps/ecloud-accounts/-/jobs/${EA_JOB_ID}/artifacts/download" && \
    unzip ecloud-accounts.zip && \
    mv dist/ecloud-accounts ${BASE_DIR}/custom_apps/ && \
    rm ecloud-accounts.zip;

RUN curl -fsSL -o ldap_write_support.tar.gz \
    "https://github.com/nextcloud-releases/ldap_write_support/releases/download/v${LDAP_WRITE_SUPPORT_VERSION}/ldap_write_support.tar.gz" && \
@@ -144,6 +143,9 @@ RUN cd ${BASE_DIR}/core/js/dist && sed -i 's/resetPassword:!1/resetPassword:!1||
# hide oidc login button
RUN sed -i 's/$context->registerAlternativeLogin(OIDCLoginOption::class);/\/\/$context->registerAlternativeLogin(OIDCLoginOption::class);/' ${BASE_DIR}/custom_apps/oidc_login/lib/AppInfo/Application.php

# change notifications icon src
RUN sed -i 's/(0,Pd.imagePath)("notifications",e)/"\/themes\/"+OC.theme.folder+"\/apps\/notifications\/img\/"+e+".svg"/' ${BASE_DIR}/apps/notifications/js/notifications-main.js

# sed version of ldap_write_support
RUN cd ${BASE_DIR}/custom_apps/ldap_write_support && sed -i 's/max-version="22"/max-version="23"/' appinfo/info.xml

@@ -168,6 +170,9 @@ RUN sed -i 's/$this->changeAvatar/\/\/ $this->changeAvatar/' ${BASE_DIR}/custom_
#replace error class in schedule response error file to fix error color
RUN sed -i 's/update/error/g' ${BASE_DIR}/apps/dav/templates/schedule-response-error.php

# Remove 'fix broken values of calendar objects' repair step
RUN sed -i '/<step>OCA\\DAV\\Migration\\CalDAVRemoveEmptyValue<\/step>/d' ${BASE_DIR}/apps/dav/appinfo/info.xml

# Custom theme
RUN curl -fsSL -o eCloud-theme.tar.gz \
    "https://gitlab.e.foundation/e/infra/ecloud/nextcloud-apps/nextcloud-theme/-/archive/${THEME_VERSION}/nextcloud-theme-${THEME_VERSION}.tar.gz" && \
+24 −34
Original line number Diff line number Diff line
--- ./apps/dav/lib/CalDAV/Schedule/IMipPlugin.php	2022-10-26 11:45:19.589156800 +0530
+++ ./apps/dav/lib/CalDAV/Schedule/iMipPluginNew.php	2022-10-26 15:28:50.269156800 +0530
@@ -151,15 +151,6 @@
 	 */
 	public function schedule(Message $iTipMessage) {
From: Avinash <avinashg@e.email>
Date: Tue, 15 Nov 2022 12:50 +0530
Subject: [PATCH] To implement custom email template design for calendar invite

-		// Not sending any emails if the system considers the update
-		// insignificant.
-		if (!$iTipMessage->significantChange) {
-			if (!$iTipMessage->scheduleStatus) {
-				$iTipMessage->scheduleStatus = '1.0;We got the message, but it\'s not significant enough to warrant an email';
-			}
-			return;
-		}
-
 		$summary = $iTipMessage->message->VEVENT->SUMMARY;
This patch is allowing to customize the email template design for invitation

 		if (parse_url($iTipMessage->sender, PHP_URL_SCHEME) !== 'mailto') {
@@ -252,7 +243,21 @@
--- ./apps/dav/lib/CalDAV/Schedule/IMipPlugin.php	2022-11-10 10:39:19.134653000 +0530
+++ ./apps/dav/lib/CalDAV/Schedule/iMipPluginNew.php	2022-11-11 12:28:15.829119700 +0530
@@ -252,7 +252,21 @@

 		$summary = ((string) $summary !== '') ? (string) $summary : $l10n->t('Untitled event');

@@ -39,7 +29,7 @@
 		$this->addBulletList($template, $l10n, $vevent);

 		// Only add response buttons to invitation requests: Fix Issue #11230
@@ -516,6 +521,7 @@
@@ -516,6 +530,7 @@
 		return $dtStart->format('Y-m-d') === $dtEnd->format('Y-m-d');
 	}

@@ -47,7 +37,7 @@
 	/**
 	 * @param IEMailTemplate $template
 	 * @param IL10N $l10n
@@ -542,24 +548,86 @@
@@ -542,24 +557,86 @@
 	/**
 	 * @param IEMailTemplate $template
 	 * @param IL10N $l10n
@@ -89,7 +79,8 @@
+				$lastmodified=$dtstampTime;
+				$selectedEvent = $currentevent;
+			}
+		}
 		}
-		$meetingWhen = $this->generateWhenString($l10n, $vevent);
+		if ($selectedEvent->SUMMARY) {
+			if (trim($selectedEvent->SUMMARY) == trim($parentevent->SUMMARY)) {
+				$template->addBodyListItem($selectedEvent->SUMMARY, $l10n->t('Title:'),
@@ -98,8 +89,7 @@
+				$template->addBodyListItemModified($selectedEvent->SUMMARY, $l10n->t('Updated Title:'),
+					$this->getAbsoluteImagePath('caldav/title.png'),'','',self::IMIP_INDENT);
+			}
 		}
-		$meetingWhen = $this->generateWhenString($l10n, $vevent);
+		}
+		$meetingWhen = $this->generateWhenString($l10n, $selectedEvent);
 		if ($meetingWhen) {
-			$template->addBodyListItem($meetingWhen, $l10n->t('Time:'),
@@ -145,7 +135,7 @@
 			$template->addBodyListItem(sprintf('<a href="%s">%s</a>',
 					htmlspecialchars($url),
 					htmlspecialchars($url)),
@@ -567,13 +635,16 @@
@@ -567,13 +644,16 @@
 				$this->getAbsoluteImagePath('caldav/link.png'),
 				$url,'',self::IMIP_INDENT);
 		}
@@ -168,7 +158,7 @@
 		}
 	}

@@ -662,7 +733,7 @@
@@ -662,7 +742,7 @@
 										Message $iTipMessage, $lastOccurrence) {
 		$token = $this->createInvitationToken($iTipMessage, $lastOccurrence);

@@ -177,7 +167,7 @@
 			$l10n->t('Accept'),
 			$this->urlGenerator->linkToRouteAbsolute('dav.invitation_response.accept', [
 				'token' => $token,
@@ -670,18 +741,10 @@
@@ -670,18 +750,10 @@
 			$l10n->t('Decline'),
 			$this->urlGenerator->linkToRouteAbsolute('dav.invitation_response.decline', [
 				'token' => $token,
+17 −0
Original line number Diff line number Diff line
From: Avinash <avinashg@e.email>
Date: Tue, 15 Nov 2022 12:50 +0530
Subject: [PATCH] To allow significant change to send mail for summary and description change

This patch is allowing to to send mail for summary and description change

--- ./3rdparty/sabre/vobject/lib/ITip/Broker.php	2022-09-06 21:39:42.985827300 +0530
+++ ./3rdparty/sabre/vobject/lib/ITip/Broker-New.php	2022-11-11 12:45:53.449119700 +0530
@@ -75,6 +75,8 @@
         'RDATE',
         'EXDATE',
         'STATUS',
+        'SUMMARY',
+        'DESCRIPTION',
     ];

     /**