Skip to content

test+docs: probe boundary fix, CI note, and docs polish - #292

Open
wysRocket wants to merge 3 commits into
anmolkapil:mainfrom
wysRocket:feat/improvements-50
Open

wysRocket wants to merge 3 commits into
anmolkapil:mainfrom
wysRocket:feat/improvements-50

Conversation

@wysRocket

Copy link
Copy Markdown

Summary

Three small patches that keep the test surface tighter and make
documentation easier to follow:

1. Probe vs transfer boundary (PR #290)

Keep injected Retry-After out of HTTP metadata probes so real chunk
requests are not mistaken for early retries. Adds one assertion that
probe requests never see status 503.

2. data: URL rejection in probeUrl (item 5)

Add a smoke regression: probeUrl('data:text/plain,...') must throw
before any stream opens. This is where data: URLs were rejected before
the existing item 5 PR added its own data: path check.

3. Documentation notes (items 15, 23, 30, 46, 47)

Expand the holdUntil comment with probe boundaries; add a Windows
taskbar-progress note now that rc.15 ships it; add npm run build:unpack
to the PR checklist; note the direct advisory URL for security reporters.

All local smoke runs pass.

…URITY gaps (anmolkapil#290 follow-up)

- Item 15: expand holdUntil comment in httpTransfer.ts with probe boundary note
- Item 23: README Troubleshooting — add taskbar progress section now that rc.15 ships it
- Item 30: CONTRIBUTING.md — add npm run build:unpack to PR checklist
- Item 46: ci.yml — note format check runs before e2e to catch early
- Item 47: SECURITY.md — add direct advisory URL for reporters who miss the Security tab
Probe ranges (bytes=0-1023 for ETag check, bytes=1024-2047 for pCloud
per-range detection) must not receive injected 503 Retry-After responses.
When they do, the first real transfer requests land inside the one-second
cooldown window and the existing assertion misidentifies them as early
retries rather than legitimate chunks. Exclude isProbe() from the busy
rule and assert probes never see status 503.
probeUrl is the first external call a download makes. A data: URL should
fail there rather than later, when the result could be mistaken for a
real link and start streams.

This branch has not been deployed

No deployments
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.

1 participant