Skip to content

[8.1.x] Backport HTTP Validations#9015

Merged
ezelkow1 merged 5 commits intoapache:8.1.xfrom
masaori335:asf-8.1.x-0809
Aug 9, 2022
Merged

[8.1.x] Backport HTTP Validations#9015
ezelkow1 merged 5 commits intoapache:8.1.xfrom
masaori335:asf-8.1.x-0809

Conversation

@masaori335
Copy link
Contributor

@masaori335 masaori335 commented Aug 9, 2022

Backport #9009, #9010, #9011, #9012, and #9013 to the 8.1.x branch.

@masaori335 masaori335 added the Backport Marked for backport for an LTS patch release label Aug 9, 2022
@masaori335 masaori335 requested a review from ezelkow1 August 9, 2022 01:35
@masaori335 masaori335 self-assigned this Aug 9, 2022
@masaori335 masaori335 added this to the 8.1.5 milestone Aug 9, 2022
maskit and others added 5 commits August 9, 2022 11:06
(cherry picked from commit eaef5e8)

Conflicts:
	proxy/http2/HTTP2.cc
Strictly following RFC 3986 Section 3.1

```
scheme      = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." )
```

(cherry picked from commit c56f872)

Conflicts:
        proxy/hdrs/unit_tests/test_URL.cc
        proxy/http2/HTTP2.cc

To compile unit tests, Makefile.am is changed too.
(cherry picked from commit 2f363d9)

Conflicts:
	proxy/hdrs/Makefile.am
	proxy/hdrs/unit_tests/test_Hdrs.cc
	tests/gold_tests/headers/good_request_after_bad.test.py
	tests/gold_tests/logging/gold/field-json-test.gold
	tests/gold_tests/logging/log-field-json.test.py

Add to run unit test:
	proxy/hdrs/unit_tests/unit_test_main.cc
…NUATION frame (apache#9012)

* Add content length mismatch check on handling HEADERS frame and CONTINUATION frame

* Correct error class of HTTP/2 malformed requests

(cherry picked from commit e921228)
Copy link
Member

@ezelkow1 ezelkow1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Compared to existing PRs this pulls in, looks like it covers everything to me

@ezelkow1 ezelkow1 merged commit 0ca9ef5 into apache:8.1.x Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Backport Marked for backport for an LTS patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants