Skip to content

Commit

Permalink
[BUGFIX] Fix write connection
Browse files Browse the repository at this point in the history
Path of write connection is read from read scope, so different paths
couldn't be used, this is fixed by inserting the right scope.

Fixes: TYPO3-Solr#2916
  • Loading branch information
dkd-friedrich committed Feb 14, 2022
1 parent cc8cc78 commit 2455da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Domain/Site/SiteRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,8 @@ protected function buildTypo3ManagedSite(array $rootPageRecord): ?Site
'port' => (int)SiteUtility::getConnectionProperty($typo3Site, 'port', $languageUid, 'write', 8983),
// @todo: transform core to path
'path' =>
SiteUtility::getConnectionProperty($typo3Site, 'path', $languageUid, 'read', '/solr/') .
SiteUtility::getConnectionProperty($typo3Site, 'core', $languageUid, 'read', 'core_en') . '/' ,
SiteUtility::getConnectionProperty($typo3Site, 'path', $languageUid, 'write', '/solr/') .
SiteUtility::getConnectionProperty($typo3Site, 'core', $languageUid, 'write', 'core_en') . '/' ,
'username' => SiteUtility::getConnectionProperty($typo3Site, 'username', $languageUid, 'write', ''),
'password' => SiteUtility::getConnectionProperty($typo3Site, 'password', $languageUid, 'write', '')
],
Expand Down

0 comments on commit 2455da7

Please sign in to comment.