From ac7916fb296961342d2d94fa36d72b7306a3e093 Mon Sep 17 00:00:00 2001 From: Jakob Ackermann Date: Thu, 20 Jun 2024 16:34:13 +0200 Subject: [PATCH] Merge pull request #19023 from overleaf/jpa-issue-19016 [web] lock down legacy endpoint for creating projects from zip GitOrigin-RevId: 0c6b29d34c601d316b184d50d93e8e17f59bfcfb --- server-ce/hotfix/4.2.6/Dockerfile | 3 +++ server-ce/hotfix/5.0.6/Dockerfile | 3 +++ services/web/app/src/Features/Templates/TemplatesRouter.js | 1 + 3 files changed, 7 insertions(+) create mode 100644 server-ce/hotfix/4.2.6/Dockerfile create mode 100644 server-ce/hotfix/5.0.6/Dockerfile diff --git a/server-ce/hotfix/4.2.6/Dockerfile b/server-ce/hotfix/4.2.6/Dockerfile new file mode 100644 index 0000000000..87c3853cb4 --- /dev/null +++ b/server-ce/hotfix/4.2.6/Dockerfile @@ -0,0 +1,3 @@ +FROM sharelatex/sharelatex:4.2.5 + +# Server Pro only hotfix diff --git a/server-ce/hotfix/5.0.6/Dockerfile b/server-ce/hotfix/5.0.6/Dockerfile new file mode 100644 index 0000000000..1e993dd80e --- /dev/null +++ b/server-ce/hotfix/5.0.6/Dockerfile @@ -0,0 +1,3 @@ +FROM sharelatex/sharelatex:5.0.5 + +# Server Pro only hotfix diff --git a/services/web/app/src/Features/Templates/TemplatesRouter.js b/services/web/app/src/Features/Templates/TemplatesRouter.js index 207bd7ddec..8f66c53754 100644 --- a/services/web/app/src/Features/Templates/TemplatesRouter.js +++ b/services/web/app/src/Features/Templates/TemplatesRouter.js @@ -11,6 +11,7 @@ const rateLimiter = new RateLimiter('create-project-from-template', { }) module.exports = { + rateLimiter, apply(app) { app.get( '/project/new/template/:Template_version_id',