swagger-api / swagger-api/swagger-parser
SecurityManager violation using System.getenv
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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