Skip to content

Commit b5f51fa

Browse files
author
rathnapandi
committed
- jaxb-runtime to use latest version to avoid maven pulling random jaxb-runtime version for ehcache.
- Compare basic auth and ssl passwords if system property is set with com.axway.apimanager.api.model.disable.confidential.fields=false
1 parent 250a257 commit b5f51fa

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

modules/apim-adapter/src/main/java/com/axway/apim/adapter/apis/APIManagerAPIAdapter.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,11 +413,13 @@ public void addQuotaConfiguration(API api, boolean addQuota) throws AppException
413413
}
414414

415415
public void translateMethodIdsToName(APIQuota apiQuota, String apiId) throws AppException {
416-
if(apiQuota != null) {
416+
if (apiQuota != null) {
417417
APIManagerAPIMethodAdapter methodAdapter = APIManagerAdapter.getInstance().getMethodAdapter();
418418
List<QuotaRestriction> quotaRestrictions = apiQuota.getRestrictions();
419419
for (QuotaRestriction quotaRestriction : quotaRestrictions) {
420-
quotaRestriction.setMethod(methodAdapter.getMethodForId(apiId, quotaRestriction.getApiId()).getName());
420+
APIMethod apiMethod = methodAdapter.getMethodForId(apiId, quotaRestriction.getApiId());
421+
if (apiMethod != null)
422+
quotaRestriction.setMethod(apiMethod.getName());
421423
}
422424
}
423425
}

pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,10 +239,11 @@
239239
</exclusions>
240240
</dependency>
241241
<!-- used by ehcache to read xml configuration-->
242+
242243
<dependency>
243244
<groupId>org.glassfish.jaxb</groupId>
244245
<artifactId>jaxb-runtime</artifactId>
245-
<version>4.0.5</version>
246+
<version>2.3.9</version>
246247
</dependency>
247248
<!-- Used by olingo -->
248249
<dependency>

0 commit comments

Comments
 (0)