Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(webconnectivitylte): handle malformed redirect URLs #1480

Merged
merged 2 commits into from
Jan 31, 2024
Merged

Conversation

bassosimone
Copy link
Contributor

@bassosimone bassosimone commented Jan 31, 2024

This diff ensures that webconnectivitylte is able to handle malformed redirect URLs such as (literally) http:// and https://.

The way in which we do this is slightly different from v0.4 and possibly more accurate in that it attributes the error to the operation where we detect the error rather than later on in the next redirect.

Because of that, I made the QA suite conform to v0.5's behavior.

Closes ooni/probe#2628

Related ooni/spec PR: ooni/spec#285

This diff ensures that webconnectivitylte is able to handle malformed
redirect URLs such as (literally) `http://` and `https://`.

The way in which we do this is slightly different from v0.4 and possibly
more accurate in that it attributes the error to the operation where we
detect the error rather than later on in the next redirect.

Because of that, I made the QA suite conform to v0.5's behavior.

Closes ooni/probe#2628
bassosimone added a commit to ooni/spec that referenced this pull request Jan 31, 2024
…285)

## Checklist

- [x] I have read the [contribution
guidelines](https://github.com/ooni/spec/blob/master/CONTRIBUTING.md)
- [x] reference issue for this pull request:
ooni/probe#2628
- [x] related ooni/probe-cli pull request:
ooni/probe-cli#1480
- [x] If I changed a spec, I also bumped its version number and/or date:
not needed
@bassosimone bassosimone merged commit 1579af3 into master Jan 31, 2024
9 of 11 checks passed
@bassosimone bassosimone deleted the issue/2628 branch January 31, 2024 15:43
Murphy-OrangeMud pushed a commit to Murphy-OrangeMud/probe-cli that referenced this pull request Feb 13, 2024
This diff ensures that webconnectivitylte is able to handle malformed
redirect URLs such as (literally) `http://` and `https://`.

The way in which we do this is slightly different from v0.4 and possibly
more accurate in that it attributes the error to the operation where we
detect the error rather than later on in the next redirect.

Because of that, I made the QA suite conform to v0.5's behavior.

Closes ooni/probe#2628

Related ooni/spec PR: ooni/spec#285
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.

probe-engine: web_connectivity 0.5 DNS queries sometimes contains an empty hostname
1 participant