Giter VIP home page Giter VIP logo

Comments (10)

sapessi avatar sapessi commented on September 23, 2024

Hi @dhcrees, just to confirm, you are using the serverless-java-container library right? Are you using Spring, Jersey, or Spark?

I'm just in the process of fixing #53 so I can take a look at this one too. When you run the test call from the API Gateway console with the space, what does the event look like in the logs on the right, could you paste it here?

from aws-serverless-java-container.

dhcrees avatar dhcrees commented on September 23, 2024

from aws-serverless-java-container.

sapessi avatar sapessi commented on September 23, 2024

Great thanks. Let me try and replicate. I'll update you here.

from aws-serverless-java-container.

dhcrees avatar dhcrees commented on September 23, 2024

from aws-serverless-java-container.

sapessi avatar sapessi commented on September 23, 2024

Hey @dhcrees, I found the issue and fixed it. The issue is that the JerseyRequestReader creates a new URI with the raw values from API Gateway. Any unencoded query string parameter cause it to throw an exception. I have changed it to use Jersey's UriBuilder object that will apply encoding automatically. I've also added some additional logging to make this more obvious and some new unit tests.

I will commit my changes in a few minutes to the servlet-improvements branch. If you'd like to test, once I've committed the changes, you need to:

  1. Clone the servlet-improvements branch from GitHub:
$ git clone -b servlet-improvements https://github.com/awslabs/aws-serverless-java-container.git
  1. Use maven to install the new version in local:
$ mvn install 
  1. Update your pom.xml to use version 0.7-SNAPSHOT

from aws-serverless-java-container.

dhcrees avatar dhcrees commented on September 23, 2024

from aws-serverless-java-container.

sapessi avatar sapessi commented on September 23, 2024

@dhcrees Yes, clone the servlet improvements branch and run mvn install from that folder. This will install 0.7-SNAPSHOT in your local maven cache. Then you'll be able to refer to it from your other projects. Hopefully the official 0.7 will be out before the end of the month.

from aws-serverless-java-container.

dhcrees avatar dhcrees commented on September 23, 2024

from aws-serverless-java-container.

dhcrees avatar dhcrees commented on September 23, 2024

from aws-serverless-java-container.

sapessi avatar sapessi commented on September 23, 2024

Thanks for testing @dhcrees, I'll close this and merge the changes into master today.

from aws-serverless-java-container.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.