From 7a82cae1556547ea685a32b01ee6308d9340df69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 2 Sep 2025 17:13:28 +0200 Subject: [PATCH 1/3] Release v4.2.0 --- .changes/unreleased/Feature-20250901-094055.yaml | 6 ------ .changes/unreleased/Fixed-20250821-161902.yaml | 6 ------ .changes/unreleased/Fixed-20250828-133152.yaml | 6 ------ .changes/unreleased/Fixed-20250828-134939.yaml | 6 ------ .changes/v4.2.0.md | 9 +++++++++ CHANGELOG.md | 10 ++++++++++ 6 files changed, 19 insertions(+), 24 deletions(-) delete mode 100644 .changes/unreleased/Feature-20250901-094055.yaml delete mode 100644 .changes/unreleased/Fixed-20250821-161902.yaml delete mode 100644 .changes/unreleased/Fixed-20250828-133152.yaml delete mode 100644 .changes/unreleased/Fixed-20250828-134939.yaml create mode 100644 .changes/v4.2.0.md diff --git a/.changes/unreleased/Feature-20250901-094055.yaml b/.changes/unreleased/Feature-20250901-094055.yaml deleted file mode 100644 index b240a1bfc..000000000 --- a/.changes/unreleased/Feature-20250901-094055.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Feature -body: Add external identifier for a Person -time: 2025-09-01T09:40:55.990365093+02:00 -custom: - Issue: "64" - SchemaChange: Add columns or tables diff --git a/.changes/unreleased/Fixed-20250821-161902.yaml b/.changes/unreleased/Fixed-20250821-161902.yaml deleted file mode 100644 index 0cf43b782..000000000 --- a/.changes/unreleased/Fixed-20250821-161902.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixed -body: Fixed html layout of pages for recovering password -time: 2025-08-21T16:19:02.058348298+02:00 -custom: - Issue: "422" - SchemaChange: No schema change diff --git a/.changes/unreleased/Fixed-20250828-133152.yaml b/.changes/unreleased/Fixed-20250828-133152.yaml deleted file mode 100644 index 22d3c22d1..000000000 --- a/.changes/unreleased/Fixed-20250828-133152.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixed -body: Fix typo in 'uncheckAll' script for centers selection -time: 2025-08-28T13:31:52.002855848+02:00 -custom: - Issue: "" - SchemaChange: No schema change diff --git a/.changes/unreleased/Fixed-20250828-134939.yaml b/.changes/unreleased/Fixed-20250828-134939.yaml deleted file mode 100644 index 8a6f92514..000000000 --- a/.changes/unreleased/Fixed-20250828-134939.yaml +++ /dev/null @@ -1,6 +0,0 @@ -kind: Fixed -body: Fix incorrect parameter name in event details link -time: 2025-08-28T13:49:39.087943549+02:00 -custom: - Issue: "" - SchemaChange: No schema change diff --git a/.changes/v4.2.0.md b/.changes/v4.2.0.md new file mode 100644 index 000000000..37bf1ae13 --- /dev/null +++ b/.changes/v4.2.0.md @@ -0,0 +1,9 @@ +## v4.2.0 - 2025-09-02 +### Feature +* ([#64](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/64)) Add external identifier for a Person + + **Schema Change**: Add columns or tables +### Fixed +* ([#422](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/422)) Fixed html layout of pages for recovering password +* Fix typo in 'uncheckAll' script for centers selection +* Fix incorrect parameter name in event details link diff --git a/CHANGELOG.md b/CHANGELOG.md index de52487f2..1aaaa9f0d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,16 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html), and is generated by [Changie](https://github.com/miniscruff/changie). +## v4.2.0 - 2025-09-02 +### Feature +* ([#64](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/64)) Add external identifier for a Person + + **Schema Change**: Add columns or tables +### Fixed +* ([#422](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/422)) Fixed html layout of pages for recovering password +* Fix typo in 'uncheckAll' script for centers selection +* Fix incorrect parameter name in event details link + ## v4.1.0 - 2025-08-26 ### Feature * ([#400](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/400)) Add filter to social actions list to filter out actions where current user intervenes From 6e367713492e218da7c16b22694af6d2d07f2bf3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 2 Sep 2025 17:52:20 +0200 Subject: [PATCH 2/3] fix changelog --- .changes/v4.2.0.md | 9 +++++---- CHANGELOG.md | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.changes/v4.2.0.md b/.changes/v4.2.0.md index 37bf1ae13..6e2835ada 100644 --- a/.changes/v4.2.0.md +++ b/.changes/v4.2.0.md @@ -1,9 +1,10 @@ ## v4.2.0 - 2025-09-02 ### Feature -* ([#64](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/64)) Add external identifier for a Person +* ([#64](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/64)) Add external identifier for a Person **Schema Change**: Add columns or tables +* ([#330](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/330) Allow users to choose for which notifications they want to receive an email ### Fixed -* ([#422](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/422)) Fixed html layout of pages for recovering password -* Fix typo in 'uncheckAll' script for centers selection -* Fix incorrect parameter name in event details link +* ([#422](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/422)) Fixed html layout of pages for recovering password +* Fix typo in 'uncheckAll' script for centers selection +* Fix incorrect parameter name in event details link diff --git a/CHANGELOG.md b/CHANGELOG.md index 1aaaa9f0d..8da95d73c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,13 +8,14 @@ and is generated by [Changie](https://github.com/miniscruff/changie). ## v4.2.0 - 2025-09-02 ### Feature -* ([#64](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/64)) Add external identifier for a Person +* ([#64](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/64)) Add external identifier for a Person **Schema Change**: Add columns or tables +* ([#330](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/330) Allow users to choose for which notifications they want to receive an email ### Fixed -* ([#422](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/422)) Fixed html layout of pages for recovering password -* Fix typo in 'uncheckAll' script for centers selection -* Fix incorrect parameter name in event details link +* ([#422](https://gitlab.com/Chill-Projet/chill-bundles/-/issues/422)) Fixed html layout of pages for recovering password +* Fix typo in 'uncheckAll' script for centers selection +* Fix incorrect parameter name in event details link ## v4.1.0 - 2025-08-26 ### Feature From 8e78c4154930738f1b7ca34cf230c27c4d25179e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Tue, 2 Sep 2025 21:53:40 +0200 Subject: [PATCH 3/3] Improve error handling when saving objects to local disk by using `dumpFile` with detailed exception logging. --- .changes/unreleased/DX-20250902-215127.yaml | 7 +++++++ .../Driver/LocalStorage/StoredObjectManager.php | 14 +++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) create mode 100644 .changes/unreleased/DX-20250902-215127.yaml diff --git a/.changes/unreleased/DX-20250902-215127.yaml b/.changes/unreleased/DX-20250902-215127.yaml new file mode 100644 index 000000000..7d682d3ec --- /dev/null +++ b/.changes/unreleased/DX-20250902-215127.yaml @@ -0,0 +1,7 @@ +kind: DX +body: | + Improve error message when a stored object cannot be written on local disk +time: 2025-09-02T21:51:27.248966834+02:00 +custom: + Issue: "" + SchemaChange: No schema change diff --git a/src/Bundle/ChillDocStoreBundle/AsyncUpload/Driver/LocalStorage/StoredObjectManager.php b/src/Bundle/ChillDocStoreBundle/AsyncUpload/Driver/LocalStorage/StoredObjectManager.php index 09d277635..9174f42e6 100644 --- a/src/Bundle/ChillDocStoreBundle/AsyncUpload/Driver/LocalStorage/StoredObjectManager.php +++ b/src/Bundle/ChillDocStoreBundle/AsyncUpload/Driver/LocalStorage/StoredObjectManager.php @@ -18,6 +18,7 @@ use Chill\DocStoreBundle\Exception\StoredObjectManagerException; use Chill\DocStoreBundle\Service\Cryptography\KeyGenerator; use Chill\DocStoreBundle\Service\StoredObjectManagerInterface; use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface; +use Symfony\Component\Filesystem\Exception\IOExceptionInterface; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Filesystem\Path; @@ -147,16 +148,11 @@ class StoredObjectManager implements StoredObjectManagerInterface public function writeContent(string $filename, string $encryptedContent): void { $fullPath = $this->buildPath($filename); - $dir = Path::getDirectory($fullPath); - if (!$this->filesystem->exists($dir)) { - $this->filesystem->mkdir($dir); - } - - $result = file_put_contents($fullPath, $encryptedContent); - - if (false === $result) { - throw StoredObjectManagerException::unableToStoreDocumentOnDisk(); + try { + $this->filesystem->dumpFile($fullPath, $encryptedContent); + } catch (IOExceptionInterface $exception) { + throw StoredObjectManagerException::unableToStoreDocumentOnDisk($exception); } }