Skip to content

Commit

Permalink
#1 release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-conway committed May 25, 2021
1 parent c1c3ee4 commit d296e83
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 46 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

#1 update Guava per dependabot alert

### Removed

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Project: Jargon Extensions Interface

### Date: 02/26/2021
### Release Version: 4.3.2.1-RELEASE
### git tag: 4.3.2.1-RELEASE
### Release Version: 4.3.2.2-RELEASE
### git tag: 4.3.2.2-RELEASE

#### Developer: Mike Conway - DICE

Expand Down
48 changes: 7 additions & 41 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.irods.jargon</groupId>
<artifactId>jargon-extensions-if</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.irods</groupId>
<artifactId>jargon-pom</artifactId>
<version>4.3.2.2-SNAPSHOT</version>
<version>4.3.2.2-RELEASE</version>
</parent>
<name>jargon-extensions-if</name>
<description />
Expand Down Expand Up @@ -136,7 +135,7 @@
<artifactId>irodsext-jwt-service</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
Expand All @@ -149,7 +148,7 @@
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>29.0-jre</version>
<version>[30.0-jre,)</version>
</dependency>
<dependency>
<groupId>io.swagger.core.v3</groupId>
Expand Down Expand Up @@ -202,42 +201,9 @@
<phase>validate</phase>
<configuration>
<tasks>
<delete
file="${basedir}/src/test/resources/testing.properties" />
<touch
file="${basedir}/src/test/resources/testing.properties"
mkdirs="true" />
<echo
file="${basedir}/src/test/resources/testing.properties"
append="true">
test.data.directory=${jargon.test.data.directory}
test.irods.admin=${jargon.test.irods.admin}
test.irods.admin.password=${jargon.test.irods.admin.password}
test.irods.user=${jargon.test.irods.user}
test.irods.password=${jargon.test.irods.password}
test.irods.resource=${jargon.test.irods.resource}
test2.irods.user=${jargon.test.irods.user2}
test2.irods.password=${jargon.test.irods.password2}
test2.irods.resource=${jargon.test.irods.resource2}
test3.irods.user=${jargon.test.irods.user3}
test3.irods.password=${jargon.test.irods.password3}
test3.irods.resource=${jargon.test.irods.resource3}
test.irods.host=${jargon.test.irods.host}
test.irods.port=${jargon.test.irods.port}
test.irods.zone=${jargon.test.irods.zone}
test.federated.irods.admin=${jargon.test.federated.irods.admin}
test.federated.irods.admin.password=${jargon.test.federated.irods.admin.password}
test.federated.irods.user=${jargon.test.federated.irods.user}
test.federated.irods.password=${jargon.test.federated.irods.password}
test.federated.irods.resource=${jargon.test.federated.irods.resource}
test.federated.irods.host=${jargon.test.federated.irods.host}
test.federated.irods.port=${jargon.test.federated.irods.port}
test.federated.irods.zone=${jargon.test.federated.irods.zone}
test.search.endpointRegistryList=${jargon.search.endpointRegistryList}
test.search.jargon.search.endpointAccessSubject=${jargon.search.endpointAccessSubject}
test.search.jwtAlgo=${jargon.search.jwtAlgo}
test.search.jwtIssuer=${jargon.search.jwtIssuer}
test.search.jwtSecret=${jargon.search.jwtSecret}
<delete file="${basedir}/src/test/resources/testing.properties" />
<touch file="${basedir}/src/test/resources/testing.properties" mkdirs="true" />
<echo file="${basedir}/src/test/resources/testing.properties" append="true"> test.data.directory=${jargon.test.data.directory} test.irods.admin=${jargon.test.irods.admin} test.irods.admin.password=${jargon.test.irods.admin.password} test.irods.user=${jargon.test.irods.user} test.irods.password=${jargon.test.irods.password} test.irods.resource=${jargon.test.irods.resource} test2.irods.user=${jargon.test.irods.user2} test2.irods.password=${jargon.test.irods.password2} test2.irods.resource=${jargon.test.irods.resource2} test3.irods.user=${jargon.test.irods.user3} test3.irods.password=${jargon.test.irods.password3} test3.irods.resource=${jargon.test.irods.resource3} test.irods.host=${jargon.test.irods.host} test.irods.port=${jargon.test.irods.port} test.irods.zone=${jargon.test.irods.zone} test.federated.irods.admin=${jargon.test.federated.irods.admin} test.federated.irods.admin.password=${jargon.test.federated.irods.admin.password} test.federated.irods.user=${jargon.test.federated.irods.user} test.federated.irods.password=${jargon.test.federated.irods.password} test.federated.irods.resource=${jargon.test.federated.irods.resource} test.federated.irods.host=${jargon.test.federated.irods.host} test.federated.irods.port=${jargon.test.federated.irods.port} test.federated.irods.zone=${jargon.test.federated.irods.zone} test.search.endpointRegistryList=${jargon.search.endpointRegistryList} test.search.jargon.search.endpointAccessSubject=${jargon.search.endpointAccessSubject} test.search.jwtAlgo=${jargon.search.jwtAlgo} test.search.jwtIssuer=${jargon.search.jwtIssuer} test.search.jwtSecret=${jargon.search.jwtSecret}
</echo>
</tasks>
</configuration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ public PublishDownloadCallable(final AbstractJwtIssueService jwtIssueService,
public String call() throws Exception {
log.info("call()");
String bearerToken = jwtIssueService.issueJwtToken(publishDownloadRequest.getPublishPrincipal());



// formulate the query to the endpoint
StringBuilder sb = new StringBuilder();
sb.append(publishDownloadRequest.getEndpointUrl());
Expand All @@ -55,7 +54,7 @@ public String call() throws Exception {
}
sb.append("publisher/");
sb.append(URLEncoder.encode(publishDownloadRequest.getPublishPrincipal(), "UTF-8"));
sb.append(URLEncoder.encode("/" + publishDownloadRequest.getPublishPrincipal() +"-metalnx-cart.dat", "UTF-8"));
sb.append(URLEncoder.encode("/" + publishDownloadRequest.getPublishPrincipal() + "-metalnx-cart.dat", "UTF-8"));

String stringJsonResponse = "";

Expand All @@ -75,6 +74,7 @@ public String call() throws Exception {
httpPost.setEntity(new StringEntity(requestBody.toString()));

try {
log.info("calling endpoint now...");
CloseableHttpResponse response = httpclient.execute(httpPost);
int statusCode = response.getStatusLine().getStatusCode();
log.info("statusCode:{}", statusCode);
Expand Down

0 comments on commit d296e83

Please sign in to comment.