Issue Bug Closed

#93133Not processing images when indexing in Solr

Tomek W 12/21/20, 11:39 updated 05/11/21, 16:00

Description

TYPO3 in version 10.4.11 introduced regression by this patch https://github.com/TYPO3/TYPO3.CMS/commit/0c5439f2ce

In latest version, when indexing links to images via Solr is broken, because of deferred generation of images. Solr receives link to generate image instead of link to generated image.

Stack:
TYPO3 10.4.11
georgringer/news – 8.5
apache-solr-for-typo3/solr – 11.0.3

code to reproduce in :

In standard Solr configuration for news with code added in plugin.tx_solr.index.queue.news

image_stringM = SOLR_CONTENT
        image_stringM {
          cObject = COA
          cObject {
            10 = FILES
            10 {
              references {
                table = tx_news_domain_model_news
                uid.data = {field:uid}
                uid.insertData = 1
                uid.intval = 1
                fieldName = fal_media
              }

              maxItems = 1
              renderObj = TEXT
              renderObj {
                typolink {
                  parameter.stdWrap {
                    cObject = IMG_RESOURCE
                    cObject {
                      file.import.data = file:current:uid
                      file.treatIdAsReference = 1
                    }
                  }

                  returnLast = url
                  forceAbsoluteUrl = 1
                }
              }

            }
          }
        }

Above code should return link to processed link in Solr index,
but in 10.4.11 BEFORE frontend rendering of news with image attached return links to TYPO3 backend with token to generate image.
But when news is rendered on frontend, and then indexed, above code work as previous version.

Reviews 1