Skip to content

Fix StatusLogger crash when property access is denied #4429

Open

Description

@ramanathan1504

StatusLogger.PropertiesUtilsDouble#readAllAvailableProperties calls System.getProperties() and System.getenv() without catching SecurityException.
Under a security manager denying either, StatusLogger fails to initialize and the API breaks with it.
Reproduce: install a security manager denying PropertyPermission("*", "read,write") or RuntimePermission("getenv.*"), then call StatusLogger.getLogger().

Activity

  1. abhiramaab commented on Oct 25, 2026

    @abhiramaab

    Hi @ramanathan1504, I'd like to work on this and submit a PR to catch SecurityException on System.getProperties() and System.getenv(), with unit test coverage.

  2. ramanathan1504 commented on Oct 25, 2026

    @ramanathan1504
    ContributorAuthor

    @abhiramaab Pr was already there now only am updated tags. Sorry for that🙏
    There is so many in our issue page, can you choose your own and give the pr? I am ready review.

    Thanks for the contribution👍🏾

  3. abhiramaab commented on Oct 25, 2026

    @abhiramaab

    No problem at all @ramanathan1504! Thanks for letting me know. I'll pick up another open issue from the tracker right now. Looking forward to your review!

  4. added this to the 2.26.2 milestone on Nov 4, 2026
  5. added
    api
    bug
    priority: P2
    and removed on Nov 4, 2026
  6. Shekharrajak commented on Nov 22, 2026

    @Shekharrajak

    I am analysing and working on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    apibugpriority: P2waiting-for-maintainer

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions