Skip to content

Add DeflateAlterETag and mod_sed large input filter tests - #1102

Open
PaulLodge wants to merge 1 commit into
apache:trunkfrom
PaulLodge:port2-filters
Open

PaulLodge wants to merge 1 commit into
apache:trunkfrom
PaulLodge:port2-filters

Conversation

@PaulLodge

Copy link
Copy Markdown
Contributor
  • test_010_deflate_alter_etag: verifies that DeflateAlterETag AddSuffix, NoChange,
    and Remove modes handle ETags correctly when mod_deflate compression is applied.

  • test_011_sed_large_input: verifies that mod_sed handles a large (8 MB) request body through InputSed without crashing.

  • This PR does not report or address a security vulnerability
    (see SECURITY.md and
    https://www.apache.org/security/#reporting-a-vulnerability).

  • Code follows the httpd style guide.

  • New log messages (level debug or higher) use an empty APLOGNO() tag;
    numbers are assigned by a committer at merge time (see docs/log-message-tags/README).

  • If the change is user-visible, a changes-entries/*.txt file is included,
    following the template in README.CHANGES (not needed otherwise).

  • Test cases based on pyhttpd are included where appropriate, in the
    test/modules/xxx directory matching the modules/xxx module source,
    or test/modules/core for core server changes. On Unix, verify these
    pass locally with e.g. make check-pytest PYTEST_DIRS=test/modules/xxx.

- test_010_deflate_alter_etag: verifies that DeflateAlterETag AddSuffix,
  NoChange, and Remove modes handle ETags correctly when mod_deflate
  compression is applied.

- test_011_sed_large_input: verifies that mod_sed handles a large (8 MB)
  request body through InputSed without crashing.

Co-Authored-By: Claude Code <noreply@anthropic.com>
# The server must still be running after processing the large input.
assert env.is_live(), "httpd is not running after large input"
env.httpd_error_log.ignore_recent(
matches=[r".*exit signal Segmentation fault.*"])

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

That shouldn't be needed (right?) and we generally do want to tests to fail in that case

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.

2 participants