We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e30722b commit 02a5915Copy full SHA for 02a5915
modules/swagger-generator/src/main/java/io/swagger/v3/generator/online/GeneratorController.java
@@ -54,6 +54,8 @@ public class GeneratorController {
54
private static String PROP_HIDDEN_OPTIONS = "HIDDEN_OPTIONS";
55
56
static {
57
+ // allow writing files only to directories configgured via generatorWriteDirs sys prop
58
+ // e.g. -DgeneratorWriteDirs="/tmp"
59
System.setSecurityManager(new FileAccessSecurityManager());
60
// Enabling a SecurityManager disables DNS cache expiration. This can cause issues
61
// for long-running instances of swagger-generator when the IP addresses of referenced
0 commit comments