Skip to content

Commit

Permalink
Merge pull request #164 from awslabs/core
Browse files Browse the repository at this point in the history
Preparing for 1.1.2 release
  • Loading branch information
sapessi authored Jun 21, 2018
2 parents 4e73579 + dd9baec commit cad1332
Show file tree
Hide file tree
Showing 17 changed files with 36 additions and 30 deletions.
4 changes: 2 additions & 2 deletions archetypes/jersey/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</parent>

<groupId>com.amazonaws.serverless.archetypes</groupId>
<artifactId>aws-serverless-jersey-archetype</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
<packaging>maven-archetype</packaging>

<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<dependency>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container-jersey</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions archetypes/spark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</parent>

<groupId>com.amazonaws.serverless.archetypes</groupId>
<artifactId>aws-serverless-spark-archetype</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
<packaging>maven-archetype</packaging>

<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<dependency>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container-spark</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions archetypes/spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</parent>

<groupId>com.amazonaws.serverless.archetypes</groupId>
<artifactId>aws-serverless-spring-archetype</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
<packaging>maven-archetype</packaging>

<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<dependency>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container-spring</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions archetypes/springboot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<parent>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</parent>

<groupId>com.amazonaws.serverless.archetypes</groupId>
<artifactId>aws-serverless-springboot-archetype</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
<packaging>maven-archetype</packaging>

<scm>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<dependency>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container-spring</artifactId>
<version>1.1.1</version>
<version>1.1.2</version>
</dependency>

<dependency>
Expand Down
4 changes: 2 additions & 2 deletions aws-serverless-java-container-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<name>AWS Serverless Java container support - Core</name>
<description>Allows Java applications written for a servlet container to run in AWS Lambda</description>
<url>https://aws.amazon.com/lambda</url>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>

<parent>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</parent>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,11 @@ public String[] getParameterValues(String s) {
paramKey = paramKey.toLowerCase(Locale.getDefault());
}
List<String> values = new ArrayList<>();
values.addAll(queryStringParameters.get(paramKey));
List<String> queryParamValues = queryStringParameters.get(paramKey);
if (queryParamValues != null) {
values.addAll(queryParamValues);
}
//values.addAll(queryStringParameters.get(paramKey));

String[] formBodyValues = getFormBodyParameterCaseInsensitive(s);
if (formBodyValues != null) {
Expand Down
6 changes: 3 additions & 3 deletions aws-serverless-java-container-jersey/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<name>AWS Serverless Java container support - Jersey implementation</name>
<description>Allows Java applications written for Jersey to run in AWS Lambda</description>
<url>https://aws.amazon.com/lambda</url>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>

<parent>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</parent>

<properties>
Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container-core</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
6 changes: 3 additions & 3 deletions aws-serverless-java-container-spark/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<name>AWS Serverless Java container support - Spark implementation</name>
<description>Allows Java applications written for Spark to run in AWS Lambda</description>
<url>https://aws.amazon.com/lambda</url>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>

<parent>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</parent>

<properties>
Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container-core</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.sparkjava/spark-core -->
Expand Down
6 changes: 3 additions & 3 deletions aws-serverless-java-container-spring/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
<name>AWS Serverless Java container support - Spring implementation</name>
<description>Allows Java applications written for the Spring framework to run in AWS Lambda</description>
<url>https://aws.amazon.com/lambda</url>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>

<parent>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</parent>

<properties>
Expand All @@ -25,7 +25,7 @@
<dependency>
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container-core</artifactId>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.springframework/spring-webmvc -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public MapResponseModel echoServletHeaders(HttpServletRequest context) {
}

@RequestMapping(path = "/query-string", method = RequestMethod.GET)
public MapResponseModel echoQueryString(HttpServletRequest request) {
public MapResponseModel echoQueryString(HttpServletRequest request, @RequestParam(value="nonexistent", required=false) String nonexistentParamValue) {
MapResponseModel queryStrings = new MapResponseModel();
for (String key : request.getParameterMap().keySet()) {
queryStrings.addValue(key, request.getParameterMap().get(key)[0]);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<groupId>com.amazonaws.serverless</groupId>
<artifactId>aws-serverless-java-container</artifactId>
<packaging>pom</packaging>
<version>1.2-SNAPSHOT</version>
<version>1.1.2-SNAPSHOT</version>
<name>AWS Serverless Java container</name>

<!-- https://mvnrepository.com/artifact/org.sonatype.oss/oss-parent -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
package com.amazonaws.serverless.sample.spring;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.web.servlet.HandlerAdapter;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.HandlerMapping;
Expand All @@ -27,7 +27,7 @@


@Configuration
@ComponentScan("com.amazonaws.serverless.sample.spring")
@Import({ PetsController.class })
public class PetStoreSpringAppConfig {
/*
* Create required HandlerMapping, to avoid several default HandlerMapping instances being created
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.amazonaws.serverless.sample.springboot;

import com.amazonaws.serverless.sample.springboot.controller.PetsController;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Import;
import org.springframework.web.servlet.HandlerAdapter;
import org.springframework.web.servlet.HandlerExceptionResolver;
import org.springframework.web.servlet.HandlerMapping;
Expand All @@ -18,7 +20,7 @@


@SpringBootApplication
@ComponentScan(basePackages = "com.amazonaws.serverless.sample.springboot.controller")
@Import({ PetsController.class })
public class Application extends SpringBootServletInitializer {

// silence console logging
Expand Down

0 comments on commit cad1332

Please sign in to comment.