swagger-api / swagger-api/swagger-parser

SecurityManager violation using System.getenv

Open
#1,982 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
867
Forks
560
Avg merge
2d 21h
Merged PRs (30d)
7

Description

The use System.getenv is pulling operating system environments that are not contained to just a java JVM.

This may cause SecurityManager access exceptions.

Most recent commit that uses the field: https://github.com/swagger-api/swagger-parser/commit/10a43466dee9606b29b24d888ae9558f91d48024

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing commit 10a43466dee9606b29b24d888ae9558f91d48024 and locating the System.getenv usage it introduced. Reproduce the reported SecurityManager access exception and determine the required scope; done means the reported violation no longer occurs and the existing test suite passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
security
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.