Skip to content

fix(#478): make EAP cert validation additive instead of breaking - #529

Merged
cachebag merged 1 commit into
masterfrom
fix/478-additive-eap-validatio
Aug 19, 2026
Merged

cachebag merged 1 commit into
masterfrom
fix/478-additive-eap-validatio

Conversation

@cachebag

Copy link
Copy Markdown
Member

Reworks #478 so it ships in a minor instead of forcing 4.0.0.

The original fix was correct about the bug — supplying an EAP certificate as both a path and a blob used to panic! but fixed it by changing three public signatures to return Result.

Validation was happening inside construction, which is why making it strict forced the return type to change. Splitting them apart lets both behaviours share the construction code:

deprecated new
build_wifi_connection() -> HashMap try_build_wifi_connection() -> Result<HashMap>
WifiConnectionBuilder::wpa_eap() -> Self try_wpa_eap() -> Result<Self>
WifiConnectionBuilder::wpa3_eap_192_bit() -> Self try_wpa3_eap_192_bit() -> Result<Self>

The panic stays fixed on both paths. The deprecated functions log a warning naming the conflicting field and use the path; the try_* functions return ConnectionError::InvalidInput. No unwrap, no unreachable!.

Closes #478

The previous fix changed build_wifi_connection(), wpa_eap(), and
wpa3_eap_192_bit() to return Result, which is a compile break for every
caller on 3.x.
@cachebag cachebag self-assigned this Aug 19, 2026
@cachebag
cachebag deployed to self-hosted-pr-integration August 19, 2026 23:07 — with GitHub Actions Active
@cachebag
cachebag merged commit 5fac67e into master Aug 19, 2026
7 of 8 checks passed
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.

[BUG] WifiConnectionBuilder panics on conflicting eap cert path and blob

1 participant