Skip to content

Conversation

arturobernalg
Copy link
Member

@arturobernalg arturobernalg commented Oct 11, 2025

  • Remove the Security Manager–dependent Session#doPrivileged from jspwiki-api.
  • Replace the only usage with Subject.doAsPrivileged in DefaultAuthorizationManager; behavior unchanged.
  • Keeps policy checks: global via AccessController, local via LocalPolicy.
  • Rationale: avoid a 3.x→4.x API break; aligns with JDK 17–25 where SM is deprecated/disabled.
  • Migration: callers should use Subject.doAs( session.getSubject(), action ) (or doAsPrivileged if needed).

Use Subject.doAsPrivileged in DefaultAuthorizationManager
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