Skip to content

Don't cache wiki pages that render {labkey:tree} menus - #8397

Open
labkey-adam wants to merge 1 commit into
release26.11-SNAPSHOTfrom
26.11_fb_wiki_tree_macro_cache
Open

labkey-adam wants to merge 1 commit into
release26.11-SNAPSHOTfrom
26.11_fb_wiki_tree_macro_cache

Conversation

@labkey-adam

@labkey-adam labkey-adam commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Rationale

Wiki pages that embed {labkey:tree} menus must render them per request: once the page was cached, the menus lost their expand/collapse handlers and every viewer saw the first viewer's folder tree and admin menus.

Related Pull Requests

Changes

  • Mark wiki output containing a {labkey:tree} menu as volatile so it is never cached
  • Fix a NullPointerException when the macro names an unknown menu

Tasks

  • Manual Testing

Cached menus lost their click handlers after the first view and showed the first viewer's folders and admin links to everyone.
@labkey-adam

labkey-adam commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor Author

Simple testing repro:

  • Create a (Radeox) wiki page that renders all the trees:
{labkey:tree|core.projects}
{labkey:tree|core.currentProject}
{labkey:tree|core.siteAdmin}
{labkey:tree|core.projectAdmin}
{labkey:tree|core.folderAdmin}
  • Confirm that expand/collapse works
  • Refresh
  • Confirm that expand/collapse still works
  • Impersonate various admins and non-admins, and confirm tree disappear/reappear appropriately

@labkey-adam labkey-adam self-assigned this Nov 28, 2026
@labkey-adam labkey-adam added this to the 26.11 milestone Nov 28, 2026
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.

1 participant