|
Here is Claude’s answer when I asked:
So short answer. On my deployment server, let Apache serve the app
It isn’t really about .mov. A .mp4 goes through exactly the same path, and you hit it with help-vendor.mp4 too. Two
things about how the app serves files cause trouble with video. The first is confirmed; the second is my best explanation, not proven.
1. The adaptor compresses responses (confirmed problem, fixed on the server). The stock Vert.x adaptor gzip/brotli-compresses any response when the
browser sends Accept-Encoding. That was the “cannot decode raw data” bug from Oct 22, and stripping that header in Apache made it go away. My best guess at the mechanism: WebObjects sets Content-Length to the size before compression,
then the adaptor compresses the body, so the length no longer matches what’s sent. A small page gets away with that, but a large video on a kept-alive connection leaves the browser misreading where one response ends and the next begins. The next page
then arrives garbled. That fits the symptom of it breaking after a video. This is also why development still has the problem: there’s no Apache in front to strip the header, and your patched adaptor with er.vertx.compression=false isn’t the one
installed.
2. No byte-range support (confirmed in your logs). Browsers fetch video in pieces with Range requests and expect 206 Partial Content back.
Every video in your access log came back 200 with the whole file, never a 206. The WebObjects resource handler and the attachment download path both ignore Range. Safari is the strictest about this. Apple’s guidance is
that servers must support byte ranges for video, and it’s also the main browser that plays .mov, which is probably why .mov seems like the culprit. Without ranges, Safari can’t seek properly and has to pull the whole file in one long
request.
You can see the range behavior yourself on the server:
curl -skI -H "Range: bytes=0-1" https://127.0.0.1:2101/cgi-bin/WebObjects/InvoiceDepot.woa/wr/InvoiceDepot/1.0.7-SNAPSHOT/Nonlocalized.lproj/help-vendor.mp4 | head -5
A server with range support answers 206 with content-range: bytes 0-1/…. Yours will answer 200.
The clean fix for the Help videos is to let Apache serve them as static files, since Apache handles ranges correctly. For attachment videos, it would mean
adding Range handling where the app sends attachments. I can do either if videos start mattering to your users.
Theodore Petrosky | IT/Finance Director
917 371-6080
AgencySacks
-
From: Ramsey Gurley <webobjects-dev@wocommunity.org>
Date: Saturday, October 24, 2026 at 8:15 PM
To: WebObjects & WOnder Development <webobjects-dev@wocommunity.org>
Subject: Re: [WO-DEV] vertx vending .mov
Does it also have a problem with mp4? Or just mov? It seems weird that
the browser would decode compression for everything except a video, but
maybe that is the case.
On 10/22/26 8:04 AM, Theodore Petrosky wrote:
> I've run into a problem with vertx vending videos.
>
> It seems that when it wins the video both Safari and Google Chrome hang. It leaves the app in a bad state.
>
> It appears as if vertx vends the video compressed and the compression is getting in the way. I tried shutting off the compression, including doing a new version of the 8.0.3 wonder release. No joy at least for me.
>
> So in my app because I don't really need videos, I'm going to limit the ability to upload a video. That solves my problem in the short term.
>
> Using the standard deployment obviates this need. Maybe someone else has different results and if you have a method to work with this, let me know.
>
> Thank you guys (and gals if you are there)
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list <webobjects-dev@wocommunity.org>.
> To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
> To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
> To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
> Send administrative queries to <webobjects-dev-request@wocommunity.org>
#############################################################
This message is sent to you because you are subscribed to
the mailing list <webobjects-dev@wocommunity.org>.
To unsubscribe, E-mail to: <webobjects-dev-off@wocommunity.org>
To switch to the DIGEST mode, E-mail to <webobjects-dev-digest@wocommunity.org>
To switch to the INDEX mode, E-mail to <webobjects-dev-index@wocommunity.org>
Send administrative queries to <webobjects-dev-request@wocommunity.org>
|