| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Two adjustments from a post-merge fresh-eyes pass: - endpoint.py: the http -> https address-promotion match now compares hostnames case-insensitively (RFC 3986) and normalizes http://host vs http://host:80 so a same-host promotion doesn't silently drop. Split into two comparisons: current-vs-next is hostname-only (schemes differ so default port differs, comparing raw netloc would spuriously mismatch); old-address-vs-current is same-scheme and uses (hostname, effective port) so explicit-vs-implicit port compares equal. Expanded the auth-material comment to acknowledge that sign_in itself carries raw credentials in the POST body, not only the issued token on subsequent calls. - test_redirect_handling.py: added a docstring on test_all_supported_redirect_codes_preserve_post_body naming the RFC 7231 6.4.4 deviation on 303 -- if a future refactor "helpfully" converts 303 to GET, the parametrized test fails with a clear intent statement. Also considered a sign_in namespace-detect hedge for pre-8.3 Tableau responses (Copilot flagged this on #1848); dropped as theoretical because TSC's minimum_supported_server_version = 2.3 (Tableau 10.0, 2016) is eight years past the namespace change, and #1863 removes the whole subsystem anyway.
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Followup to #1848 (merged). Two small items from a post-merge
fresh-eyes review, kept off #1848 so the merged PR's approval + history
stayed clean.
Changes
compares hostnames case-insensitively per RFC 3986 and normalizes
http://host vs http://host:80 so the same-host check doesn't
silently drop legitimate promotions. Rewritten as two comparisons:
current vs next (same-host across schemes, hostname only), and
old_address vs current (same-scheme, hostname+port with default-
port normalization). Also expanded the auth-material comment to
acknowledge that sign_in itself carries raw credentials (PAT
secret or username+password) in the POST body, not only the
issued token on subsequent calls.
test_all_supported_redirect_codes_preserve_post_body naming the
RFC 7231 6.4.4 deviation on 303, so a future refactor that
"helpfully" converts 303 to GET fails this test with a clear
intent statement.
Test plan
Not addressed here (per fresh-eyes review)
dropped as theoretical. TSC's minimum_supported_server_version = 2.3 (Tableau 10.0, 2016) is eight years past the namespace
change, and Proposed: Remove pre-8.3 XML namespace fallback #1863 removes the whole Namespace.detect subsystem
anyway.
has; [tabcmd] fix: preserve POST body across 3xx redirects (#1127, #1828) #1848's walker doesn't rewind non-seekable data. Separate
policy decision.
_blocking_request directly, so the initial-request threaded
progress indicator is lost. Separate refactor.
🤖 Generated with Claude Code