From 3773204ba728b03544df78a5649fd47e6ad9f1af Mon Sep 17 00:00:00 2001 From: "librecode-workflow-automation[bot]" <331658022+librecode-workflow-automation[bot]@users.noreply.github.com> Date: Thu, 26 Nov 2026 21:05:04 +0000 Subject: [PATCH 1/2] chore(deps): update submodule from source PR #173 Signed-off-by: librecode-workflow-automation[bot] <331658022+librecode-workflow-automation[bot]@users.noreply.github.com> --- 3rdparty | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3rdparty b/3rdparty index f87dc48712..03c3c48ab0 160000 --- a/3rdparty +++ b/3rdparty @@ -1 +1 @@ -Subproject commit f87dc487126897af8251c2d65eb5b51cb62430f7 +Subproject commit 03c3c48ab0dfe4bb126704109691b5f995e67780 From f68afc6cbc41dca6c297dd2814dbfe796d75ea4c Mon Sep 17 00:00:00 2001 From: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> Date: Thu, 26 Nov 2026 21:47:41 +0000 Subject: [PATCH 2/2] fix(geoip): preserve integer build epoch in database status Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com> --- lib/Service/GeoIp/GeoIpDatabaseStatusService.php | 5 ++++- .../Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/Service/GeoIp/GeoIpDatabaseStatusService.php b/lib/Service/GeoIp/GeoIpDatabaseStatusService.php index fd32a0c7d4..46a0412892 100644 --- a/lib/Service/GeoIp/GeoIpDatabaseStatusService.php +++ b/lib/Service/GeoIp/GeoIpDatabaseStatusService.php @@ -73,7 +73,10 @@ public function getStatus(): array { $metadata = $reader->metadata(); $databaseType = $metadata->databaseType; $payload['databaseType'] = $databaseType; - $payload['buildEpoch'] = $metadata->buildEpoch; + $buildEpoch = filter_var($metadata->buildEpoch, FILTER_VALIDATE_INT, ['options' => ['min_range' => 0]]); + if (is_int($buildEpoch)) { + $payload['buildEpoch'] = $buildEpoch; + } if (!$this->isSupportedDatabaseType($databaseType)) { $payload['status'] = GeoIpDatabaseStatus::UNSUPPORTED_DATABASE->value; diff --git a/tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php b/tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php index c69b28820e..996a4a8d1b 100644 --- a/tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php +++ b/tests/php/Unit/Service/GeoIp/GeoIpDatabaseStatusServiceTest.php @@ -55,7 +55,7 @@ public function testReadyWithMaxMindTestFixture(): void { $this->assertSame(GeoIpDatabaseStatus::READY->value, $status['status']); $this->assertSame($path, $status['path']); $this->assertSame('GeoIP2-City', $status['databaseType'] ?? null); - $this->assertArrayHasKey('buildEpoch', $status); + $this->assertSame(1770245369, $status['buildEpoch'] ?? null); $this->assertArrayHasKey('modifiedAt', $status); $this->assertTrue($this->getService()->isReady()); }