Skip to content

GH Issue 1930: Test site-wide terms of use in admin-only mode - #3322

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

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

Conversation

@labkey-adam

Copy link
Copy Markdown
Contributor

Rationale

Add regression coverage for the redirect loop between the terms of use and maintenance pages when site-wide terms are required in admin-only mode (GH Issue 1930). This test fails until the 26.7 fix merges forward into 26.11.

Related Pull Requests

Changes

  • Verify that a guest sees the maintenance page, not a terms of use loop, while admin-only mode and site-wide terms are both active
  • Verify that the maintenance page's startup poll still gets a JSON response and that a site admin can sign in
  • Toggle admin-only mode through the site settings API and restore it after the test

labkey-adam added a commit to LabKey/platform that referenced this pull request Nov 29, 2026
## Rationale
Fix the endless redirect loop that makes a server unreachable when
mandatory site-wide terms of use are enabled while the server is in
admin-only mode ([GH Issue
1930](LabKey/internal-issues#1930)). The
maintenance page enforced terms of use while the terms page wasn't
allowed during admin-only mode, so guests and non-admins bounced between
the two with an ever-growing `returnUrl` until requests exceeded the
header size limit. A regression test will follow on 26.11 once this
merges forward, since that branch has the site settings API needed to
toggle admin-only mode cleanly.

## Related Pull Requests
- LabKey/testAutomation#3322

## Changes
- Actions allowed during upgrade or admin-only mode now implicitly
ignore terms of use, so terms are enforced only once the server is fully
available
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