Skip to content

Commit 6cb7bca

Browse files
authored
Merge pull request #1063 from swagger-api/swos-617
exclude json module from apache oauth2 client to fix security issue.
2 parents 26062bb + 27f8788 commit 6cb7bca

File tree

6 files changed

+22
-5
lines changed

6 files changed

+22
-5
lines changed

src/main/resources/handlebars/Java/libraries/feign/build.gradle.java11.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,10 @@ dependencies {
4545
{{#threetenbp}}
4646
implementation "com.github.joschi.jackson:jackson-datatype-threetenbp:$threepane_version"
4747
{{/threetenbp}}
48-
implementation "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
48+
implementation("org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version") {
49+
exclude group: 'org.json', module: 'json'
50+
}
51+
implementation "org.json:json:20180130"
4952
implementation "com.brsanthu:migbase64:2.2"
5053
implementation "com.sun.xml.ws:jaxws-rt:2.3.3"
5154
testImplementation "junit:junit:$junit_version"

src/main/resources/handlebars/Java/libraries/feign/build.gradle.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ dependencies {
139139
{{#threetenbp}}
140140
compile "com.github.joschi.jackson:jackson-datatype-threetenbp:$threepane_version"
141141
{{/threetenbp}}
142-
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
142+
compile ("org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version") {
143+
exclude group: "org.json", module: "json"
144+
}
145+
compile "org.json:json:20180130"
143146
compile "com.brsanthu:migbase64:2.2"
144147
testCompile "junit:junit:$junit_version"
145148
}

src/main/resources/handlebars/Java/libraries/retrofit/build.gradle.java11.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ dependencies {
2828
{{^useOas2}}
2929
implementation "io.swagger.core.v3:swagger-annotations:$swagger_annotations_version"
3030
{{/useOas2}}
31-
implementation "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
31+
implementation("org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version") {
32+
exclude group: 'org.json', module: 'json'
33+
}
34+
implementation "org.json:json:20180130"
3235
implementation "joda-time:joda-time:$jodatime_version"
3336
implementation "com.sun.xml.ws:jaxws-rt:2.3.3"
3437
testImplementation "junit:junit:$junit_version"

src/main/resources/handlebars/Java/libraries/retrofit/build.gradle.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,10 @@ dependencies {
122122
{{^useOas2}}
123123
compile "io.swagger.core.v3:swagger-annotations:$swagger_annotations_version"
124124
{{/useOas2}}
125-
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
125+
compile ("org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version") {
126+
exclude group: "org.json", module: "json"
127+
}
128+
compile "org.json:json:20180130"
126129
compile "joda-time:joda-time:$jodatime_version"
127130
testCompile "junit:junit:$junit_version"
128131
}

src/main/resources/handlebars/Java/libraries/retrofit2/build.gradle.java11.mustache

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ dependencies {
6060
{{/useOas2}}
6161
implementation ("org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"){
6262
exclude group:'org.apache.oltu.oauth2' , module: 'org.apache.oltu.oauth2.common'
63+
exclude group: 'org.json', module: 'json'
6364
}
65+
implementation "org.json:json:20180130"
6466
implementation "io.gsonfire:gson-fire:$json_fire_version"
6567
{{#joda}}
6668
implementation "joda-time:joda-time:$jodatime_version"

src/main/resources/handlebars/Java/libraries/retrofit2/build.gradle.mustache

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,10 @@ dependencies {
151151
{{^useOas2}}
152152
compile "io.swagger.core.v3:swagger-annotations:$swagger_annotations_version"
153153
{{/useOas2}}
154-
compile "org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version"
154+
compile ("org.apache.oltu.oauth2:org.apache.oltu.oauth2.client:$oltu_version") {
155+
exclude group: "org.json", module: "json"
156+
}
157+
compile "org.json:json:20180130"
155158
compile "io.gsonfire:gson-fire:$json_fire_version"
156159
{{#joda}}
157160
compile "joda-time:joda-time:$jodatime_version"

0 commit comments

Comments
 (0)