From ec4869c4ceddf46eb0caa655e2a80300fd009fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Beke?= Date: Tue, 29 Jul 2025 13:38:43 +0200 Subject: [PATCH 1/4] FIX: Add quotes to curl download command --- .../clarin-files-section/clarin-files-section.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/item-page/clarin-files-section/clarin-files-section.component.ts b/src/app/item-page/clarin-files-section/clarin-files-section.component.ts index cd7575d4d62..478036f5607 100644 --- a/src/app/item-page/clarin-files-section/clarin-files-section.component.ts +++ b/src/app/item-page/clarin-files-section/clarin-files-section.component.ts @@ -107,9 +107,8 @@ export class ClarinFilesSectionComponent implements OnInit { return file.name; }); - this.command = `curl -o allzip.zip ` + this.halService.getRootHref() + `/core/items/${this.item.id}/allzip?handleId=${this.itemHandle}`; + this.command = 'curl -o "allzip.zip" "' + this.halService.getRootHref() + '/core/items/' + this.item.id + '/allzip?handleId=' + this.itemHandle + '"'; } - loadDownloadZipConfigProperties() { this.configurationService.findByPropertyName('download.all.limit.min.file.count') .pipe( From 53076c91e6fbe93abf0007fa490f25784ee6e400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Beke?= Date: Wed, 30 Jul 2025 11:09:58 +0200 Subject: [PATCH 2/4] Refactor: Add quotes around URL as well --- .../clarin-files-section/clarin-files-section.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/item-page/clarin-files-section/clarin-files-section.component.ts b/src/app/item-page/clarin-files-section/clarin-files-section.component.ts index 478036f5607..c983995246a 100644 --- a/src/app/item-page/clarin-files-section/clarin-files-section.component.ts +++ b/src/app/item-page/clarin-files-section/clarin-files-section.component.ts @@ -106,8 +106,8 @@ export class ClarinFilesSectionComponent implements OnInit { return file.name; }); - - this.command = 'curl -o "allzip.zip" "' + this.halService.getRootHref() + '/core/items/' + this.item.id + '/allzip?handleId=' + this.itemHandle + '"'; + const url =`${this.halService.getRootHref()}/core/items/${this.item.id}/allzip?handleId=${this.itemHandle}`; + this.command = `curl -o "allzip.zip" "${url}"`; } loadDownloadZipConfigProperties() { this.configurationService.findByPropertyName('download.all.limit.min.file.count') From 1c0d6d40a11f2202ff41a38455f1cf892b0b18d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Beke?= Date: Wed, 30 Jul 2025 12:23:24 +0200 Subject: [PATCH 3/4] Refactor: Add quotes around URL as well --- .../clarin-files-section/clarin-files-section.component.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/item-page/clarin-files-section/clarin-files-section.component.ts b/src/app/item-page/clarin-files-section/clarin-files-section.component.ts index c983995246a..95609aa3771 100644 --- a/src/app/item-page/clarin-files-section/clarin-files-section.component.ts +++ b/src/app/item-page/clarin-files-section/clarin-files-section.component.ts @@ -106,9 +106,11 @@ export class ClarinFilesSectionComponent implements OnInit { return file.name; }); + const url =`${this.halService.getRootHref()}/core/items/${this.item.id}/allzip?handleId=${this.itemHandle}`; this.command = `curl -o "allzip.zip" "${url}"`; } + loadDownloadZipConfigProperties() { this.configurationService.findByPropertyName('download.all.limit.min.file.count') .pipe( From 9a316818372c3dd5872939dbf357ca8b77ddf769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mat=C3=BA=C5=A1=20Beke?= Date: Thu, 31 Jul 2025 15:49:34 +0200 Subject: [PATCH 4/4] Refactor: Add quotes around URL as well --- .../clarin-files-section/clarin-files-section.component.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/item-page/clarin-files-section/clarin-files-section.component.ts b/src/app/item-page/clarin-files-section/clarin-files-section.component.ts index 95609aa3771..15820be9f68 100644 --- a/src/app/item-page/clarin-files-section/clarin-files-section.component.ts +++ b/src/app/item-page/clarin-files-section/clarin-files-section.component.ts @@ -106,8 +106,8 @@ export class ClarinFilesSectionComponent implements OnInit { return file.name; }); - - const url =`${this.halService.getRootHref()}/core/items/${this.item.id}/allzip?handleId=${this.itemHandle}`; + + const url = `${this.halService.getRootHref()}/core/items/${this.item.id}/allzip?handleId=${this.itemHandle}`; this.command = `curl -o "allzip.zip" "${url}"`; }