#812 follow-up: detect-platform.sh host-match conflates SSH transport port with HTTP(S) provider port + asymmetric default-web-port normalization #850
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Carved from #812 per the round-4 anti-spiral stop. DEFERRED — NOT fixed in the #812 core PR. This issue records a distinct, same-surface residual so the bounded #812 core can ship without chasing infinite portability.
Defect
packages/mosaic/framework/tools/git/detect-platform.sh(host-match block, ~lines 88-102) compares the port from every remote authority directly against the configured HTTP(S) API URL port. This conflates an SSH transport port with the HTTP(S) provider port and normalizes default web ports asymmetrically.Repros (both reproduced directly at head
571b65d336af7236692e1ed3883d5570767d696e; independently confirmed by Codex at 0.96)ssh://git@git.example:2222/owner/repo.gitresolves hostgit.example:2222; with configured API basehttps://git.example, host-match FAILS although both identify the same Gitea host.https://git.example:443/owner/repo.gitFAILS host-match against configuredhttps://git.example, while the inverse (implicit vs explicit) form passes.Impact / priority
Prevents token/base-URL resolution (and therefore durable comment persistence) for remotes of those shapes. Does NOT affect the root-mount implicit-443 HTTPS deployment shape, so there is no ship-pressure. Priority p3.
Acceptance criteria
:443for https,:80for http) as equal on both sides.571b65d3, green at the fix head).Provenance
Found during #812 round-3 focused re-review (Reviewer-of-Record, detached exact-head). The RoR flagged this as a new same-surface edge and STOPPED per the standing anti-spiral bound; the coordinator ruled carve+ship for the #812 core.