Update Etherpad to v2.2.5

After the 2.2.4 release we upgraded to a development commit between
2.2.4 and the future (at that time non existant) 2.2.5 release to fix
integration between meetpad and etherpad. Now there is a proper 2.2.5
and we should update to get off the dev commit.

This release fixes a number of bugs, updates dependencies, and adds
proper swagger documentation for the API. The "complete" changelog can
be seen here:
  https://github.com/ether/etherpad-lite/blob/v2.2.5/CHANGELOG.md

Note that I don't believe the API has changed they are merely
documenting it properly using swagger. Our testing should confirm.
To expose the new swagger documentation we do add /api-docs/ and
/api-docs.json to our proxy exclusion list.

We also update our settings.json files to sync with upstream. This pulls
in a new `updateServer` key value pair to set the location that should
be checked by etherpad to determine if there is a newer version
available. I believe this behavior has existing for years they are just
now making it a bit more configurable. Unfortunately the way this value
is used I think we will do a local file lookup if we set the value to
"". I've stuck with the default since this shouldn't be a regression and
we can try to disable it later.

Change-Id: I73a09a0c79db18887cb1703c84f9aebae6f072eb
This commit is contained in:
Clark Boylan 2024-09-23 08:34:27 -07:00
parent 74fc128f36
commit 1fd4deb76d
5 changed files with 38 additions and 9 deletions

View File

@ -42,10 +42,7 @@ RUN export DEBIAN_FRONTEND=noninteractive; \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN npm install -g pnpm@9.0.4 RUN npm install -g pnpm@9.0.4
RUN git clone https://github.com/ether/etherpad-lite ${EP_DIR} RUN git clone https://github.com/ether/etherpad-lite ${EP_DIR}
# This is a commit after v2.2.4 and before 2.2.5. RUN git checkout v2.2.5
# We check this out to pickup a fix for embedding etherpad as
# we do with meetpad.
RUN git checkout 08f199178d2932cc0ec956aaeb3f62e8a535598a
RUN pnpm install RUN pnpm install
RUN pnpm run build:ui RUN pnpm run build:ui
@ -152,10 +149,7 @@ USER etherpad
RUN git clone https://github.com/ether/etherpad-lite ${EP_DIR} RUN git clone https://github.com/ether/etherpad-lite ${EP_DIR}
WORKDIR "${EP_DIR}" WORKDIR "${EP_DIR}"
# This is a commit after v2.2.4 and before 2.2.5. RUN git checkout v2.2.5
# We check this out to pickup a fix for embedding etherpad as
# we do with meetpad.
RUN git checkout 08f199178d2932cc0ec956aaeb3f62e8a535598a
FROM build AS development FROM build AS development
ARG ETHERPAD_PLUGINS ARG ETHERPAD_PLUGINS

View File

@ -171,6 +171,14 @@
*/ */
"showSettingsInAdminPage": "${SHOW_SETTINGS_IN_ADMIN_PAGE:true}", "showSettingsInAdminPage": "${SHOW_SETTINGS_IN_ADMIN_PAGE:true}",
/*
* Settings for cleanup of pads
*/
"cleanup": {
"enabled": false,
"keepRevisions": 5
},
/* /*
The authentication method used by the server. The authentication method used by the server.
The default value is sso The default value is sso
@ -194,6 +202,15 @@
}, },
*/ */
/*
* Enables the use of a different server. We have a different one that syncs changes from the original server.
* It is hosted on GitHub and should not be blocked by many firewalls.
* https://etherpad.org/ep_infos
*/
"updateServer": "https://etherpad.org/ep_infos",
/* /*
* The type of the database. * The type of the database.
* *

View File

@ -80,6 +80,8 @@
RewriteCond %{REQUEST_URI} !^/timeSliderBootstrap-.*\.min\.js$ RewriteCond %{REQUEST_URI} !^/timeSliderBootstrap-.*\.min\.js$
RewriteCond %{REQUEST_URI} !^/indexBootstrap-.*\.min\.js$ RewriteCond %{REQUEST_URI} !^/indexBootstrap-.*\.min\.js$
RewriteCond %{REQUEST_URI} !^/api/ RewriteCond %{REQUEST_URI} !^/api/
RewriteCond %{REQUEST_URI} !^/api-docs/
RewriteCond %{REQUEST_URI} !^/api-docs.json
RewriteCond %{REQUEST_URI} !^/ro/ RewriteCond %{REQUEST_URI} !^/ro/
RewriteCond %{REQUEST_URI} !^/error/ RewriteCond %{REQUEST_URI} !^/error/
RewriteCond %{REQUEST_URI} !^/jserror RewriteCond %{REQUEST_URI} !^/jserror

View File

@ -166,6 +166,14 @@
*/ */
"showSettingsInAdminPage": true, "showSettingsInAdminPage": true,
/*
* Settings for cleanup of pads
*/
"cleanup": {
"enabled": false,
"keepRevisions": 5
},
/* /*
* Node native SSL support * Node native SSL support
* *
@ -279,6 +287,14 @@
"pageDown": true "pageDown": true
}, },
/*
* Enables the use of a different server. We have a different one that syncs changes from the original server.
* It is hosted on GitHub and should not be blocked by many firewalls.
* https://etherpad.org/ep_infos
*/
"updateServer": "https://etherpad.org/ep_infos",
/* /*
* Should we suppress errors from being visible in the default Pad Text? * Should we suppress errors from being visible in the default Pad Text?
*/ */

View File

@ -11,7 +11,7 @@
repository: opendevorg/etherpad repository: opendevorg/etherpad
tags: tags:
- latest - latest
- v2.2.4.dev17 - v2.2.5
build_args: build_args:
- EP_GID=5001 - EP_GID=5001
files: &etherpad_files files: &etherpad_files