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

[BUGFIX] Fix indexing of access protected pages #3811

Conversation

dkd-friedrich
Copy link
Member

@dkd-friedrich dkd-friedrich commented Oct 5, 2023

What this pr does

Fixes indexing of access protected pages and/or page contents.

How to test

Configure access protected pages/page contents and check indexing, e.g.

  • access protected pages
  • access protected contents on public pages
  • mix of protected contents and hide at login contents.

Resolves: #3735


Caution: PR contains an additional cleanup/improvement commit that is no directly related, commits shouldn't be squashed!

Copy link
Collaborator

@bmack bmack left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this finally!

@dkd-friedrich dkd-friedrich force-pushed the bugfix/main/3735-fix_access_protected_page_indexing branch from 11fef4e to e6a6981 Compare October 6, 2023 14:07
@dkd-friedrich
Copy link
Member Author

I've added more tests and fixes, e.g. the test for invalid item handling.

I did some minor, not directly related cleanup and improvements additionally, thus the commits shouldn't be squashed!

Fixes indexing of access protected pages and/or page contents.

Resolves: TYPO3-Solr#3735
Cleans and optimizes the frontend helper "PageIndexer" integration
test.

Failure test for non existing pages/sites is refactored and
PageIndexer adapted, even if AfterCacheableContentIsGeneratedEvent
is not dispatched e.g. as the page is not found, the response will
always contain the pageIndexed flag.

Additionally the methods of PageIndexer that were defined as public
to simplify testing are now protected, the tests are adapted
accordingly. If you have used this methods, you have to adapt your
code. Affected methods:
- setupConfiguration
- index
- indexPage

Relates: TYPO3-Solr#3735
@dkd-kaehm dkd-kaehm force-pushed the bugfix/main/3735-fix_access_protected_page_indexing branch from e6a6981 to 9121e87 Compare October 10, 2023 06:45
@dkd-kaehm dkd-kaehm merged commit 343147f into TYPO3-Solr:main Oct 10, 2023
8 checks passed
@dkd-kaehm dkd-kaehm deleted the bugfix/main/3735-fix_access_protected_page_indexing branch October 10, 2023 07:43
@dkd-kaehm dkd-kaehm mentioned this pull request Oct 13, 2023
1 task
dkd-kaehm added a commit to dkd-kaehm/ext-solr that referenced this pull request Oct 13, 2023
dkd-kaehm added a commit to dkd-kaehm/ext-solr that referenced this pull request Oct 13, 2023
dkd-kaehm added a commit to dkd-kaehm/ext-solr that referenced this pull request Oct 13, 2023
dkd-kaehm added a commit that referenced this pull request Oct 13, 2023
@agendartobias
Copy link

We have the same problem on v11 of this extension. Is this fix only for v12?

@dkd-kaehm
Copy link
Collaborator

We have the same problem on v11 of this extension. Is this fix only for v12?

@agendartobias Which version exactly?

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.

[BUG] 12.0.0-beta-1 : indexPage and incorrect fe_groups on access protected instance
4 participants