From 84ad9a20ccc48bc0ef4b003b3558e0e0b5d26153 Mon Sep 17 00:00:00 2001 From: Tomas Norre Mikkelsen Date: Thu, 10 Oct 2024 09:54:51 +0200 Subject: [PATCH] BUGFIX: Typecast PageTS Crawler Configuration force_ssl to int (#1095) Resolves #1000 --- CHANGELOG.md | 1 + Classes/Controller/CrawlerController.php | 2 +- .../Index.rst | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 17e29d01d..e525a9a55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ ### Fixed * Prevent exception `Truncated incorrect DECIMAL value` in `crawler:processQueue` [@xyng](https://github.com/xyng) +* Typecast PageTS Crawler Configuration `force_ssl` to `int` ### Deprecated diff --git a/Classes/Controller/CrawlerController.php b/Classes/Controller/CrawlerController.php index 06c47ec05..818f43f13 100644 --- a/Classes/Controller/CrawlerController.php +++ b/Classes/Controller/CrawlerController.php @@ -236,7 +236,7 @@ public function urlListFromUrlArray( $pageId, $urlQuery, $vv['subCfg']['baseUrl'] ?? null, - $vv['subCfg']['force_ssl'] ?? 0 + (int) ($vv['subCfg']['force_ssl'] ?? 0) ); if (!$url instanceof UriInterface) { diff --git a/Documentation/Configuration/PageTsconfigReference(txCrawlercrawlercfg)/Index.rst b/Documentation/Configuration/PageTsconfigReference(txCrawlercrawlercfg)/Index.rst index cb02f7866..1ad6c6a3b 100644 --- a/Documentation/Configuration/PageTsconfigReference(txCrawlercrawlercfg)/Index.rst +++ b/Documentation/Configuration/PageTsconfigReference(txCrawlercrawlercfg)/Index.rst @@ -135,6 +135,19 @@ Page TSconfig Reference (tx\_crawler.crawlerCfg) Description List of Page Ids to limit this configuration to +.. container:: table-row + + Property + .. _crawler-tsconfig-paramSets-key-force_ssl: + + paramSets.[key].force_ssl + + Data type + integer + + Description + Whether https should be inforced or not. 0 = false (default), 1 = true. + .. container:: table-row @@ -183,5 +196,6 @@ Example procInstrFilter = tx_indexedsearch_reindex pidsOnly = 1,5,13,55 userGroups = 1 + force_ssl = 1 }