Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TASK] Adjust mount point indexing #4195

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

dkd-friedrich
Copy link
Member

@dkd-friedrich dkd-friedrich commented Oct 16, 2024

Mount point indexing and corresponding tests have been adjusted for
TYPO3 13. Mount points are supported in general and the mounted pages
will be indexed like standard pages.

But there are some points to consider:

  • Cross-site mounts require that config.index_enable = 1 is set
    in the pagetree of the mounted page, as TYPO3 loads the
    TypoScript of the mounted page.
    This is probably a bug in the TYPO3 core and may change, due to
    changes in RootlineUtility->generateRootlineCache() the mount page
    pid isn't used any more.
  • Pages in a pagetree without a site configuration cannot be
    indexed, in fact TYPO3 currently can't mount a page from a page
    tree without a site configuration and an exeception occurs.

Test procedure in PageIndexerTest has been improved and now uses
the PageUriBuilder to build the url to index, instead of building
the url in the test itself.

Resolves: #4160


Caution: Do not squash!

@dkd-friedrich
Copy link
Member Author

dkd-friedrich commented Oct 16, 2024

Test ConnectionManagerTest::canFindSolrConnectionForMountedPageIfMountPointIsGiven is still disabled and fails.

Reason is probably a bug in RootlineUtility->generateRootlineCache(), as the pid of the mounted page is used
for the root line instead of the mount page pid like in former versions. We should investigate and discuss this
behavior.

@dkd-friedrich dkd-friedrich force-pushed the bugfix/main/4160-fix_mountpage_indexing_and_tests branch from ea65d7e to 08e5ff0 Compare October 16, 2024 13:56
Copy link
Collaborator

@dkd-kaehm dkd-kaehm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a issue in forge for trouble in RootlineUtility->generateRootlineCache()?

@dkd-friedrich
Copy link
Member Author

Is there a issue in forge for trouble in RootlineUtility->generateRootlineCache()?

Yes, I've created an issue and prepared a patch, see https://forge.typo3.org/issues/105376

@dkd-friedrich
Copy link
Member Author

I am postponing work on this problem until we receive feedback in https://forge.typo3.org/issues/105376.

Our further action depends on whether the patch is adopted.

@dkd-kaehm dkd-kaehm force-pushed the bugfix/main/4160-fix_mountpage_indexing_and_tests branch from 08e5ff0 to de98a93 Compare November 29, 2024 08:57
Fixtures of ConnectionManagerTest were not yet updated
and included basic configuration that can be provided
automatically, this commit cleans the fixtures and
enables the automatic provision.
@dkd-friedrich dkd-friedrich force-pushed the bugfix/main/4160-fix_mountpage_indexing_and_tests branch from de98a93 to da8dbf1 Compare December 2, 2024 14:58
Mount point indexing and corresponding tests have been adjusted for
TYPO3 13. Mount points are supported in general and the mounted pages
will be indexed like standard pages.

But there is a point to consider: Mounted pages from a pagetree
without a site configuration cannot be indexed, in fact TYPO3
currently can't mount a page from a page tree without a site
configuration and an exeception occurs.

Test procedure in PageIndexerTest has been improved and now uses
the PageUriBuilder to build the url to index, instead of building
the url in the test itself.

Resolves: TYPO3-Solr#4160
Updates of records or pages lead to an SiteNotFoundException if
no site is configured. This is caused by the GarbageHandler and/or
DataUpdateHandler.

This issue is fixed by adding additional checks, skipping the
monitoring is save as change are not relevant for solr if no site
is present, this includes mount pages as TYPO3 cannot mount pages
outside of a configured site.

Relates: 4160
@dkd-friedrich dkd-friedrich force-pushed the bugfix/main/4160-fix_mountpage_indexing_and_tests branch from da8dbf1 to a2fb66f Compare December 2, 2024 15:16
@dkd-friedrich
Copy link
Member Author

dkd-friedrich commented Dec 3, 2024

I am postponing work on this problem until we receive feedback in https://forge.typo3.org/issues/105376.

Bug is confirmed and patch is merged, fix will be available in upcoming TYPO3 13.4.2

I've completed the updates on this pr, test pipelines using the latest stable TYPO3 version will fail till v13.4.2 is released.

We should require v13.4.2 as soon as released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[TASK:T13] fix mount-pages issues
2 participants