Skip to content

fix(cli): hand the browser a redirect file for oversized report URLs - #74

Open
rocktimsaikia wants to merge 1 commit into
onevcat:masterfrom
rocktimsaikia:fix/view-url-truncation
Open

fix(cli): hand the browser a redirect file for oversized report URLs#74
rocktimsaikia wants to merge 1 commit into
onevcat:masterfrom
rocktimsaikia:fix/view-url-truncation

Conversation

@rocktimsaikia

Copy link
Copy Markdown

argue view passes the whole gzipped report to the OS handler as one argument. With the
browser already running, that URL is routed to the live instance over a channel that
truncates well below ARG_MAX, so the viewer gets a cut-off #d= payload and can't gunzip it.

Above 8k chars, write the URL into a temp HTML page as a meta refresh and hand over that
short path instead. The browser navigates internally, so the URL never crosses a process
boundary.

The guard sits before the platform branch, so macOS and Windows take this path too. I only
proved the truncation on Linux, but macOS has the same already-running-browser handoff via
LaunchServices. Happy to gate it to Linux if you'd rather.

Fixes #73

argue view passes the whole gzipped report to the OS handler as a single
argument. When the browser is already running the URL is routed to the live
instance over a channel that truncates well below ARG_MAX, so the viewer
receives a cut-off #d= payload and fails to gunzip it.

Above 8k chars, write the URL into a temp HTML page as a meta refresh and hand
over that short path instead. The browser then navigates internally and the URL
never crosses a process boundary.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

argue view fails on Linux: report URL gets truncated, viewer can't decompress

1 participant