Repository navigation
fix(network): avoid guessing TLS failures from the URI scheme - #241
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 45 minutes. View limit detailsLimit details: You’ve used all 4 included reviews currently available. Review configuration: ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 1 remain after this review. 📝 WalkthroughWalkthroughThe connection failure message mapping no longer uses the URI scheme to classify unspecified failures. The caller passes only the exit code. Tests cover generic failures, timeout, unavailable helpers, and credential-bearing URIs. ChangesConnection failure reporting
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix · Severity of issue fixed: Low Suggested reviewers: Merge Risk: ⚪ Minimal · up to Unclassified connection failures now show a neutral message instead of a possibly wrong TLS or authentication diagnosis, and URIs are no longer passed to the formatter. No new merge-blocking risk was found. 🚥 Pre-merge checks | ✅ 3 | ❌ 1 | ❓ 1❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation Issue Resolution Use available, sanitized backend evidence to distinguish authentication failures from TLS failures. Make sanitized backend details available to the failure path. Add automated coverage for authentication refusal, actual TLS failure, and the exposed sanitized details, while retaining coverage for timeout, unavailable helper, unknown failure, and plain HTTP WebDAV. Full details: Docstring CoverageExplanation Docstring coverage is 33.33% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 3 functions across 2 files. (2 skipped: 1 unsupported, 1 too large.) ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
merged as authored; a connection failure is no longer reported as a TLS handshake failure guessed from the address (10bab6c, v0.3.10). Thanks @GreyforgeLabs! https://github.com/thisisgm/flea/releases/tag/v0.3.10 |
A failed WebDAV or FTP connection currently reports a TLS-handshake failure solely from its URI scheme, including plain HTTP WebDAV and FTP. Other schemes are always labeled authentication failures. The helper suppresses GIO output, so its ordinary nonzero exit status establishes neither diagnosis.
Use a neutral connection-failed sentence for unclassified exits. Preserve the explicit timeout and unavailable-helper messages, remove the unused URI argument at the call site, and update the existing UI expectation. The message exposes no URI, credentials or backend output. This deliberately makes no new attempt to infer authentication or TLS errors without evidence from the helper.
Validation: 28 new checks fail before the fix;
./tests/js.sh errorspasses all 97 checks afterward. The complete JavaScript battery passes (5,632 main checks plus 4 Edmonton and 13 DST checks). Headlesstests/network-keyless.shandtests/network-open-share.shpass with an isolated fixture root. The file-budget check passes. The display-dependentnetworkauthcase was updated but not run.Partially addresses #238. This fixes the unsupported diagnosis, but does not complete that issue's request for evidence-based authentication/TLS classification and sanitized backend details. Those require a diagnostic channel from the currently silent helper; #238 should remain open for that work. The existing credential-retry state policy is unchanged.
Review note: CodeRabbit's Biome integration could not parse the repository's Qt-specific
.importand.pragmadirectives. The Qt JavaScript runner above validates these files; Biome did not provide a lint result.Summary by CodeRabbit