Re: That pesky Amount read didn't match content-length ...

2025-02-23 Thread Aaron Rosenzweig via Webobjects-dev
There is likely an issue with how the WOAdaptor is compiled on a particular system. While some people are fine, others are not. We hit a stability issue similar to yours with file uploads and play back of video files as well. Direct connect was fine but the adaptor on the Linux server was gett

Re: That pesky Amount read didn't match content-length ...

2025-02-13 Thread ocs--- via Webobjects-dev
Hugi, well I can't say I _entirely_ understand the behaviour (probably would have to analyse and understand the adaptor code first), but my testing sort of suggests that (i) the culprit is too long a computation in the takeValuesFromRequest phase I've tried to prolong it artificially first, bu

Re: That pesky Amount read didn't match content-length ...

2025-02-13 Thread ocs--- via Webobjects-dev
Well I couldn't easily try the streamed upload, for it requires a single-action form; nevertheless I have tried streamToFilePath — with precisely the same outcome as normal upload :( > On 13. 2. 2025, at 13:20, OCsite via Webobjects-dev > wrote: > > Thanks! > >> On 13. 2. 2025, at 12:49, Hug

Re: That pesky Amount read didn't match content-length ...

2025-02-13 Thread OCsite via Webobjects-dev
Thanks! > On 13. 2. 2025, at 12:49, Hugi Thordarson via Webobjects-dev > wrote: > Sorry, then I'm kind of out of ideas. Makes two of us :) > My first thought was that the adaptor logging was accurate and that the > application's adaptor configuration was set up so that the file upload > requ

Re: That pesky Amount read didn't match content-length ...

2025-02-13 Thread Hugi Thordarson via Webobjects-dev
Sorry, then I'm kind of out of ideas. My first thought was that the adaptor logging was accurate and that the application's adaptor configuration was set up so that the file upload request actually times out. But creating a simple file upload page and setting all the adaptor timeouts to a short

Re: That pesky Amount read didn't match content-length ...

2025-02-13 Thread OCsite via Webobjects-dev
Hugi, > On 13. 2. 2025, at 9:55, Hugi Thordarson via Webobjects-dev > wrote: > when you say 2 MB, is it possible you mean 2 GB? Nope. The file which fails to upload has 2 024 943 bytes. > ... > Is this also a problem in direct connect mode or only if you're going through > the web server adap

Re: That pesky Amount read didn't match content-length ...

2025-02-13 Thread Hugi Thordarson via Webobjects-dev
Hi OC, when you say 2 MB, is it possible you mean 2 GB? There used to be (and maybe still is? it's been a while) a problem with both the Apache adaptor and WO's own WOAdaptor using an int to keep track of content-length, meaning file uploads/downloads tended to fail when it was larger than Inte