Comments (5)
Just as an FYI, writing an equivalent test in vert.x raw http handling (rather than wrapped by Apex) behaves properly, so the problem lies within Apex somewhere.
from vertx-web.
This looks like a race condition to me. Did a little bit of debugging, and it's clear that with both a small and large file attachment, HttpServerRequestImpl::streamToFileSystem is called. This method pauses the request and then resumes it once the Pump to file has been set up.
For a small file, however, the resume call happens AFTER HttpServerFileUpload::complete() is called, meaning that at the point the latter method is called, the request is still paused. For a larger file, HttpServerFileUpload::complete() is called before the resume call within HttpServerRequestImpl::streamToFileSystem, so in effect a small file upload is identified as complete before the request is resumed. This then falls foul of the "paused" check in HttpServerFileUpload::complete() and the notifyEndHandler() call is not made, meaning that the request does not complete on the server. In short this actually appears to be a vert.x bug rather than an Apex bug.
from vertx-web.
Thanks for looking into this.
I'll take a look probably tomorrow, if you can create a reproducer only using Vert.x (not Apex) even better :)
from vertx-web.
Thanks Tim, I'll try and carve out some time today to create a vert.x only reproducer, can't promise it though as I'm a bit stuck for time till Thurs now (from my point of view there's no urgent need for this to be fixed, so unless you're pressed by others, please feel free to hold off till I've at least attempted a vert.x only reproducer).
from vertx-web.
This should be fixed now (bug in vertx-core). I've also added some more tests.
from vertx-web.
Related Issues (20)
- Deprecate GraphQLHandler#getRoutingContext HOT 1
- Support request forwarding to Web API Service with new OpenAPI Router
- Handling close connection with GraphQLWSHandler HOT 8
- vertx-web-api-contract contains shaded dependencies with Critical CVE
- MVEL is broken with Java 21 HOT 2
- All CORS rejections reported to server logs HOT 3
- BodyHandler with setDeleteUploadedFilesOnEnd "true" logs warn if uploaded file was moved HOT 3
- feat: Reject function for Web-Client
- Ability to introspect and log the OAuth token obtained by the OAuth2WebClient. HOT 3
- Upgrade GraphiQL IDE HOT 1
- Deprecate WebClientOptions setTryUseCompression HOT 1
- Deprecate CachingWebClientOptions setTryUseCompression HOT 1
- NPE when computing absoluteURI and host is not passed and forwarded headers are present HOT 5
- MVEL TemplateError: file not found on Windows HOT 1
- WEBCLIENT do not encode URL fully (according to RFC 3986, only query parameters HOT 9
- Replace GraphiQL setup by subrouter creation
- Builders for GraphQL handlers
- Introduce dataobjects and or builders for Vert.x Web handlers HOT 1
- RoutingContext.body() won't be available in 4.4.0? HOT 1
- [Feature] Groovy Template Engine HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vertx-web.