Upgrade dependencies, fix directory download errors

Related to #106
This commit is contained in:
Bruno Bernardino
2025-10-08 14:38:31 +01:00
parent c4a5166e3b
commit 8d78e1f25c
6 changed files with 11 additions and 7 deletions

2
.dvmrc
View File

@@ -1 +1 @@
2.5.2
2.5.3

View File

@@ -1,4 +1,4 @@
FROM denoland/deno:ubuntu-2.5.2
FROM denoland/deno:ubuntu-2.5.3
EXPOSE 8000

View File

@@ -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

View File

@@ -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

View File

@@ -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'],

View File

@@ -51,7 +51,9 @@ export const handler: Handlers<Data, FreshContextState> = {
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<Data, FreshContextState> = {
});
} 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 });
}
},