Skip to content

PM-5496: Force login for grouped challenge details#7226

Merged
jmgasper merged 1 commit into
developfrom
PM-5496
Jul 1, 2026
Merged

PM-5496: Force login for grouped challenge details#7226
jmgasper merged 1 commit into
developfrom
PM-5496

Conversation

@jmgasper

@jmgasper jmgasper commented Jul 1, 2026

Copy link
Copy Markdown
Collaborator

What was broken
Anonymous users opening a group-protected challenge details URL could land on the existing not-found/access-denied state instead of being sent through login first.

Root cause (if identifiable)
The challenge details load treats anonymous group-access failures as a generic failed challenge load, and the UI did not redirect anonymous users when a challenge payload or access error showed group protection.

What was changed
Added challenge-detail helpers to detect grouped challenge payloads and anonymous group-access failures, then redirect anonymous users to Topcoder login while preserving the original challenge URL. Authenticated users still follow the existing group membership access check.

Any added/updated tests
Added challenge-detail tests for grouped challenge detection, anonymous access-error detection, and login URL return-path preservation.

Validation run
npm run jest -- tests/shared/containers/challenge-detail/index.jsx
npm lint (not supported by npm 6; followed with npm run lint)
npm run lint
npm test
npm run build

What was broken
Anonymous users opening a group-protected challenge details URL could land on the existing not-found/access-denied state instead of being sent through login first.

Root cause (if identifiable)
The challenge details load treats anonymous group-access failures as a generic failed challenge load, and the UI did not redirect anonymous users when a challenge payload or access error showed group protection.

What was changed
Added challenge-detail helpers to detect grouped challenge payloads and anonymous group-access failures, then redirect anonymous users to Topcoder login while preserving the original challenge URL. Authenticated users still follow the existing group membership access check.

Any added/updated tests
Added challenge-detail tests for grouped challenge detection, anonymous access-error detection, and login URL return-path preservation.
@jmgasper jmgasper marked this pull request as ready for review July 1, 2026 10:43
@jmgasper jmgasper requested a review from kkartunov as a code owner July 1, 2026 10:43
@jmgasper jmgasper merged commit 73d42f0 into develop Jul 1, 2026
7 checks passed
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