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

[Bug]: Search returns outdated pages #6213

Open
2 tasks done
MaiklT opened this issue Nov 20, 2024 · 0 comments
Open
2 tasks done

[Bug]: Search returns outdated pages #6213

MaiklT opened this issue Nov 20, 2024 · 0 comments

Comments

@MaiklT
Copy link
Contributor

MaiklT commented Nov 20, 2024

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

The search results contain pages where the current user (incl. unauthenticated user) gets pages that have set an end date in the past. When they click that link, they get an error message ("You don't have access to that page"), except administrators and users that have the permission to edit the page.

The scheduler task for the search crawler runs as expected, with no errors.

Steps to reproduce?

  1. Log in as an administrator and create a page. Allow View permissions to all users, and set an end date in the past.
  2. Place a module with some content on the page, e.g. a HTML module with some unique text.
  3. Wait until the "Search: Site Crawler" job has been executed by the scheduler (or run it immediately)
  4. Log out - you should not see the page in the menu now (as it has expired).
  5. Search for the text you entered above. You will see the page in the search results.

Current Behavior

Outdated/Expired pages are listed in the search results

Expected Behavior

Outdated/Expired pages should not be listed in the search results - or maybe only to users who have edit permissions for that page. Ideally it should be marked in the search results that the page is outdated for these users.

Relevant log output

No response

Anything else?

See this DNN Community forum thread

Affected Versions

9.13.5 (latest release)

What browsers are you seeing the problem on?

Firefox, Chrome, Microsoft Edge

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant