Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.

Commit 6ee4f30

Browse files
authored
Merge pull request #4 from Axway-API-Management-Plus/develop
Develop
2 parents 8ce3f63 + 8b533f2 commit 6ee4f30

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

manifest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ applications:
33
- name: axway-apim-service-broker
44
memory: 1G
55
random-route: true
6-
path: target/apim-service-broker-1.1.6.jar
6+
path: target/apim-service-broker-1.1.7.jar
77

param.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"apiname": "pcftest",
33
"type":"swagger",
4-
"uri": "http://greeting-app-interested-fossa.apps.sanpablo.cf-app.com/api/v3/swagger.json"
4+
"uri": "http://greeting-app-talkative-squirrel.apps.tokyo.cf-app.com/api/v3/swagger.json"
55
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<modelVersion>4.0.0</modelVersion>
66
<groupId>com.axway.apim</groupId>
77
<artifactId>apim-service-broker</artifactId>
8-
<version>1.1.6</version>
8+
<version>1.1.7</version>
99
<packaging>jar</packaging>
1010
<name>axway-apim-service-broker</name>
1111
<description>Axway APIM Service Broker</description>

src/main/java/com/axway/apim/servicebroker/service/AxwayServiceBrokerImpl.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,11 @@ public boolean createOrgAndUser(String orgName, String email, String serviceInst
136136
return false;
137137
}
138138

139+
// Check whether the user is already associated with some other organization
140+
if( apiUser.getOrganizationId() != null){
141+
throw new AxwayException("A user with the supplied login name already exists");
142+
}
143+
139144
orgId = axwayOrganzationClient.createOrganization(orgName, email, serviceInstanceId);
140145
String userId = axwayUserClient.createUser(orgId, email);
141146
axwayUserClient.resetPassword(userId);
@@ -167,7 +172,7 @@ public boolean deleteOrgAppAndUser(String email, String serviceInstanceId) throw
167172
String apiId = apiOrganizationAccess.getApiId();
168173
FrondendAPI frondendAPI = axwayAPIClient.getAPI(apiId);
169174
if (frondendAPI.getState().equals(PUBLISHED)) {
170-
logger.info("Publised APIs are avaialble under the organization");
175+
logger.info("Published APIs are available under the organization");
171176
throw new AxwayException(
172177
"Can't delete Organization as it has published API, Please unpublish the API from API Manager");
173178
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
034f4708296332260654ba2407d10019
1+
5c00d816d985ea7c7edd5fccdcc5ea26

src/main/resources/apiproject/PrimaryStore-e80e7788-1aec-4d7b-a83c-d2975f1151e3.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7704,6 +7704,10 @@
77047704
<fval name="extension"><value>.jar</value></fval>
77057705
<fval name="mimeType"><value>application/x-java-archive</value></fval>
77067706
</entity>
7707+
<entity xmlns="http://www.vordel.com/2005/06/24/entityStore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="MimeType" entityPK="3917188602117604194" parentPK="-8492238750300463192">
7708+
<fval name="extension"><value></value></fval>
7709+
<fval name="mimeType"><value>*/*</value></fval>
7710+
</entity>
77077711
<entity xmlns="http://www.vordel.com/2005/06/24/entityStore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="MimeType" entityPK="3945297027673230918" parentPK="-8492238750300463192">
77087712
<fval name="extension"><value>.pdf</value></fval>
77097713
<fval name="mimeType"><value>application/pdf</value></fval>
@@ -13270,7 +13274,7 @@
1327013274
<fval name="logSuccess"><value>Passed script filter</value></fval>
1327113275
<fval name="name"><value>Get Path from X-Cf-Forwarded-Url</value></fval>
1327213276
<fval name="requiredProperties"></fval>
13273-
<fval name="script"><value>import java.net.URI;&#xD;&#xA;&#xD;&#xA;def invoke(msg) &#xD;&#xA;{&#xD;&#xA; def url = msg.get(&quot;url&quot;); &#xD;&#xA; def URI = new URI(url);&#xD;&#xA; def path = URI.getRawPath();&#xD;&#xA; msg.put(&quot;path&quot;,path);&#xD;&#xA; def httpHeaders = msg.get(&quot;http.headers&quot;);&#xD;&#xA; def port = URI.getPort();&#xD;&#xA; if ( port == -1) {&#xD;&#xA;&#x9; httpHeaders.setHeader(&quot;Host&quot;, URI.getHost());&#xD;&#xA; } else{&#xD;&#xA; httpHeaders.setHeader(&quot;Host&quot;, URI.getHost() + &quot;:&quot; + port);&#xD;&#xA; }&#xD;&#xA; return true; &#xD;&#xA;}</value></fval>
13277+
<fval name="script"><value>import java.net.URI;&#xD;&#xA;&#xD;&#xA;def invoke(msg) &#xD;&#xA;{&#xD;&#xA; def url = msg.get(&quot;url&quot;); &#xD;&#xA; def URI = new URI(url);&#xD;&#xA; def path = URI.getRawPath();&#xD;&#xA; def queryString = URI.getRawQuery();&#xD;&#xA; path = path + (queryString == null ? &quot;&quot; : &apos;?&apos; + queryString);&#xD;&#xA; msg.put(&quot;path&quot;,path);&#xD;&#xA; def httpHeaders = msg.get(&quot;http.headers&quot;);&#xD;&#xA; def port = URI.getPort();&#xD;&#xA; if ( port == -1) {&#xD;&#xA;&#x9; httpHeaders.setHeader(&quot;Host&quot;, URI.getHost());&#xD;&#xA; } else{&#xD;&#xA; httpHeaders.setHeader(&quot;Host&quot;, URI.getHost() + &quot;:&quot; + port);&#xD;&#xA; }&#xD;&#xA; return true; &#xD;&#xA;}</value></fval>
1327413278
<fval name="successNode"><value contentType="reference">2331372335669071159</value></fval>
1327513279
</entity>
1327613280
<entity xmlns="http://www.vordel.com/2005/06/24/entityStore" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" type="AttributeExtractHTTPHeaderFilter" entityPK="8895625963261121359" parentPK="361572352584357271">

0 commit comments

Comments
 (0)