{"action":"created","issue":{"url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/1428","repository_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr","labels_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/1428/labels{/name}","comments_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/1428/comments","events_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/1428/events","html_url":"https://github.com/TYPO3-Solr/ext-solr/issues/1428","id":244650743,"number":1428,"title":"[BUG] Wrong record localization on SOLR_RELATION content types","user":{"login":"onigunn","id":1422447,"avatar_url":"https://avatars3.githubusercontent.com/u/1422447?v=4","gravatar_id":"","url":"https://api.github.com/users/onigunn","html_url":"https://github.com/onigunn","followers_url":"https://api.github.com/users/onigunn/followers","following_url":"https://api.github.com/users/onigunn/following{/other_user}","gists_url":"https://api.github.com/users/onigunn/gists{/gist_id}","starred_url":"https://api.github.com/users/onigunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onigunn/subscriptions","organizations_url":"https://api.github.com/users/onigunn/orgs","repos_url":"https://api.github.com/users/onigunn/repos","events_url":"https://api.github.com/users/onigunn/events{/privacy}","received_events_url":"https://api.github.com/users/onigunn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-21T12:11:31Z","updated_at":"2017-07-21T12:16:25Z","closed_at":null,"body":"Since updating to TYPO3 7.6 from 6.2 we seem to have an issue regarding indexing custom records in our multiple language setup. Each language has its own core, which is configured due TS.\r\n\r\n### Expected behavior\r\nEach core holds documents in related/configured language.\r\n\r\n### Actual behavior\r\nOn each index run, first document is correct, after this, all other documents are indexed in the last configured language. In my given example config this results that all documents after the first have french content.\r\n\r\nAfter debugging I setteled down at one point. `Relation->getTranslationOverlay` calls`$GLOBALS['TSFE']->sys_page->getRecordOverlay` to create the overlay. After the first record `$GLOBALS['TSFE']->sys_language_uid` doesn't change anymore and sits on the last language uid.\r\n\r\nI'm not quite sure if this is an core bug or a solr ext. problem. If you point to the core guys, just let me know and I'll open an issue on forge.\r\n\r\n### Example Config\r\n```\r\nplugin.tx_solr.solr.path = /solr/core-en/\r\n\r\n[globalVar = GP:L = 1]\r\n  plugin.tx_solr.solr.path = /solr/core-de/\r\n[global]\r\n\r\n[globalVar = GP:L = 2]\r\n  plugin.tx_solr.solr.path = /solr/core-fr/\r\n[global]\r\n```\r\n\r\n#### IndexQueue Config\r\n```\r\nplugin.tx_solr.index.queue {\r\n  products = 1\r\n  products {\r\n    table = tx_og_domain_model_product\r\n\r\n    fields {\r\n      title = name\r\n\r\n      content = SOLR_CONTENT\r\n      content {\r\n        cObject = COA\r\n        cObject {\r\n\r\n          10 = SOLR_RELATION\r\n          10 {\r\n            localField = details\r\n            foreignLabelField = bodytext\r\n            singleValueGlue = | |\r\n          }\r\n\r\n          20 = SOLR_RELATION\r\n          20 {\r\n            localField = dimensions\r\n            foreignLabelField = bodytext\r\n            singleValueGlue = | |\r\n          }\r\n\r\n          30 = SOLR_RELATION\r\n          30 {\r\n            localField = categories\r\n            foreignLabelField = name\r\n            singleValueGlue = | |\r\n          }\r\n\r\n        }\r\n      }\r\n\r\n    language_intS = SOLR_CONTENT\r\n        language_intS {\r\n            field = sys_language_uid\r\n        }\r\n\r\n      url = TEXT\r\n      url {\r\n        typolink.parameter = {$plugin.tx_ogp.settings.productPagePid}\r\n        typolink.additionalParams = &tx_og_ogfe[controller]=Product&tx_og_ogfe[action]=search&tx_og_ogfe[product]={field:uid}&L={field:__solr_index_language}\r\n        typolink.additionalParams.insertData = 1\r\n        typolink.useCacheHash = 0\r\n        typolink.returnLast = url\r\n      }\r\n    }\r\n\r\n  }\r\n\r\n}\r\n```\r\n\r\n\r\n### Enviorment\r\nPHP: 7.0.21-1\r\nTYPO3: 7.6.20\r\next-solr: 6.1.0\r\nSOLR Server: 6.3.0"},"comment":{"url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/comments/316985926","html_url":"https://github.com/TYPO3-Solr/ext-solr/issues/1428#issuecomment-316985926","issue_url":"https://api.github.com/repos/TYPO3-Solr/ext-solr/issues/1428","id":316985926,"user":{"login":"timohund","id":964675,"avatar_url":"https://avatars3.githubusercontent.com/u/964675?v=4","gravatar_id":"","url":"https://api.github.com/users/timohund","html_url":"https://github.com/timohund","followers_url":"https://api.github.com/users/timohund/followers","following_url":"https://api.github.com/users/timohund/following{/other_user}","gists_url":"https://api.github.com/users/timohund/gists{/gist_id}","starred_url":"https://api.github.com/users/timohund/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timohund/subscriptions","organizations_url":"https://api.github.com/users/timohund/orgs","repos_url":"https://api.github.com/users/timohund/repos","events_url":"https://api.github.com/users/timohund/events{/privacy}","received_events_url":"https://api.github.com/users/timohund/received_events","type":"User","site_admin":false},"created_at":"2017-07-21T12:16:25Z","updated_at":"2017-07-21T12:16:25Z","body":"@onigunn Can you try this with the latest EXT:solr 6.1.x release 6.1.2? This could be related to: https://github.com/TYPO3-Solr/ext-solr/pull/1418"}}
{"actor":{"display_login":"timohund"}}