diff --git a/.dvmrc b/.dvmrc index f225a78..aedc15b 100644 --- a/.dvmrc +++ b/.dvmrc @@ -1 +1 @@ -2.5.2 +2.5.3 diff --git a/Dockerfile b/Dockerfile index 2a0f7ed..1bfc027 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM denoland/deno:ubuntu-2.5.2 +FROM denoland/deno:ubuntu-2.5.3 EXPOSE 8000 diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index 4508456..e4fd493 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -18,7 +18,7 @@ services: # NOTE: If you don't want to use the CardDav/CalDav servers, you can comment/remove this service. radicale: - image: tomsquest/docker-radicale:3.5.6.0 + image: tomsquest/docker-radicale:3.5.7.0 ports: - 5232:5232 init: true diff --git a/docker-compose.yml b/docker-compose.yml index 24e8c1c..74be34b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,6 +1,6 @@ services: website: - image: ghcr.io/bewcloud/bewcloud:v2.6.1 + image: ghcr.io/bewcloud/bewcloud:v2.7.0 restart: always ports: - 127.0.0.1:8000:8000 @@ -32,7 +32,7 @@ services: # NOTE: If you don't want to use the CardDav/CalDav servers, you can comment/remove this service. radicale: - image: tomsquest/docker-radicale:3.5.6.0 + image: tomsquest/docker-radicale:3.5.7.0 # NOTE: uncomment below only if you need to connect to the CardDav/CalDav servers from outside the container # ports: # - 127.0.0.1:5232:5232 diff --git a/lib/config.ts b/lib/config.ts index 4b66c54..a37ef87 100644 --- a/lib/config.ts +++ b/lib/config.ts @@ -22,7 +22,7 @@ export class AppConfig { files: { rootPath: 'data-files', allowPublicSharing: false, - allowDirectoryDownloads: true, + allowDirectoryDownloads: false, }, core: { enabledApps: ['news', 'notes', 'photos', 'expenses', 'contacts', 'calendar'], diff --git a/routes/api/files/download-directory.tsx b/routes/api/files/download-directory.tsx index 8ec2c3e..ea72065 100644 --- a/routes/api/files/download-directory.tsx +++ b/routes/api/files/download-directory.tsx @@ -51,7 +51,9 @@ export const handler: Handlers = { if (code !== 0) { const errorText = new TextDecoder().decode(stderr); + console.error('Zip command failed:', errorText); + return new Response('Error creating zip archive', { status: 500 }); } @@ -65,9 +67,11 @@ export const handler: Handlers = { }); } catch (error) { console.error('Error creating directory zip:', error); - if (error.message === 'Invalid file path') { + + if ((error as Error).message === 'Invalid file path') { return new Response('Invalid directory path', { status: 400 }); } + return new Response('Error creating zip archive', { status: 500 }); } },