Giter Club home page Giter Club logo

spring-fastly-multipart-bug's Introduction

Spring Fastly Multipart Bug

This repository is a minimal example integrating Fastly with Spring boot, runnable locally with Docker compose.

It highlights a bug probably due to the usage of multiple @RequestParam in the same controller method.

Reproduction

Prerequisites

  • Java 17 (works with Java 11 too, just modify the pom and the Docker image configuration).
  • Recent docker

Steps

  • Create an .env file at the root of this directory to set your SIGSI secrets, it should look like:
SIGSCI_SECRETACCESSKEY="setme"
SIGSCI_ACCESSKEYID="setme"
  • Run make deploy-app to run the sample application with the filter activated.
  • In another terminal run make send-request and observe the failure
  • To compare the behavior without the filter, run make deploy-app-no-rasp, you can run make send-request to observe the request completing without any issue.

NOTE: the issue is currently fixed @HEAD thanks to the activation of the multipartParsingEnabled parameter, see https://github.com/PierreBtz/spring-fastly-multipart-bug/commit/8d5179ab0e31052ee8ab5b7fc41d7b25a5a20c9c

spring-fastly-multipart-bug's People

Contributors

pierrebtz avatar

Watchers

 avatar  avatar

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.