Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zpush-openshift
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
mail
zpush-openshift
Commits
2453ef04
Commit
2453ef04
authored
4 years ago
by
Giacomo Tenaglia
Browse files
Options
Downloads
Patches
Plain Diff
Workaround to make calendars writable (fixes
MMMMALT-1017
)
parent
759355e4
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.s2i/bin/assemble
+3
-0
3 additions, 0 deletions
.s2i/bin/assemble
Dockerfile
+3
-0
3 additions, 0 deletions
Dockerfile
patches/01_fix_caldav_events.patch
+33
-0
33 additions, 0 deletions
patches/01_fix_caldav_events.patch
with
39 additions
and
0 deletions
.s2i/bin/assemble
+
3
−
0
View file @
2453ef04
...
@@ -11,5 +11,8 @@ sed -ri \
...
@@ -11,5 +11,8 @@ sed -ri \
-e
'/The configured LOGERRORFILE can not be modified./ s/^.*$/true;/'
\
-e
'/The configured LOGERRORFILE can not be modified./ s/^.*$/true;/'
\
./lib/core/zpush.php
./lib/core/zpush.php
# Workaround to make calendars actually writable
patch
-p2
< 01_fix_caldav_events.patch
echo
"Assembling"
echo
"Assembling"
/usr/libexec/s2i/assemble
/usr/libexec/s2i/assemble
This diff is collapsed.
Click to expand it.
Dockerfile
+
3
−
0
View file @
2453ef04
...
@@ -25,5 +25,8 @@ RUN sed -ri \
...
@@ -25,5 +25,8 @@ RUN sed -ri \
RUN
rm
/etc/httpd/conf.d/welcome.conf
\
RUN
rm
/etc/httpd/conf.d/welcome.conf
\
/etc/httpd/conf.d/userdir.conf
/etc/httpd/conf.d/userdir.conf
# Add Z-Push patches
ADD
patches/01_fix_caldav_events.patch /opt/app-root/src/
# Make sure the final image runs as unprivileged user
# Make sure the final image runs as unprivileged user
USER
1001
USER
1001
This diff is collapsed.
Click to expand it.
patches/01_fix_caldav_events.patch
0 → 100644
+
33
−
0
View file @
2453ef04
From ccba9e6394ab7e388cb9b112e7e37b273d5b62b6 Mon Sep 17 00:00:00 2001
From: Giacomo Tenaglia <Giacomo.Tenaglia@cern.ch>
Date: Tue, 8 Dec 2020 14:28:26 +0100
Subject: [PATCH] CalDAV: add missing DESCRIPTION for VALARM of ACTION:DISPLAY
as per RFC 5545
---
src/backend/caldav/caldav.php | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/backend/caldav/caldav.php b/src/backend/caldav/caldav.php
index b2469c19..4b6d1e90 100644
--- a/src/backend/caldav/caldav.php
+++ b/src/backend/caldav/caldav.php
@@ -1146,6 +1146,7 @@
class BackendCalDAV extends BackendDiff {
$valarm = new iCalComponent();
$valarm->SetType("VALARM");
$valarm->AddProperty("ACTION", "DISPLAY");
+ $valarm->AddProperty("DESCRIPTION", "Default Z-Push description");
$trigger = "-PT" . $data->reminder . "M";
$valarm->AddProperty("TRIGGER", $trigger);
$vevent->AddComponent($valarm);
@@ -1520,6 +1521,7 @@
class BackendCalDAV extends BackendDiff {
$valarm = new iCalComponent();
$valarm->SetType("VALARM");
$valarm->AddProperty("ACTION", "DISPLAY");
+ $valarm->AddProperty("DESCRIPTION", "Default Z-Push description");
$valarm->AddProperty("TRIGGER;VALUE=DATE-TIME", gmdate("Ymd\THis\Z", $data->remindertime));
$vtodo->AddComponent($valarm);
}
--
2.29.2
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment