Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

hrw4u: u4wrh emits outbound.req.* into READ_REQUEST/PRE_REMAP, which hrw4u rejects

Open Beginner friendly
#13,619 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
networking

Research direction

Start with the section mappings in src/generators.py:70 and src/tables.py:52, then run the shown HRW input through u4wrh and hrw4u. Check the set-header, rm-header, and add-header cases in PRE_REMAP and READ_REQUEST, while preserving the valid SEND_REQUEST behavior; done means hrw4u accepts the generated directives in the affected sections.

Written by the indexing model from the issue text.

Description

hrw4u

Found while reviewing #13204 — reproduces on master.

Input HRW:

cond %{READ_REQUEST_HDR_HOOK}
    set-header X-Foo "bar"

What u4wrh produces:

READ_REQUEST {
    outbound.req.X-Foo = "bar";
}

Which hrw4u then rejects:

error: outbound.req.X-Foo is not available in the READ_REQUEST section

The reverse mapping and the section table disagree: HEADER_CONTEXT_MAP maps PRE_REMAP/READ_REQUEST/SEND_REQUEST to outbound.req. (src/generators.py:70), while OPERATOR_MAP["outbound.req."] declares sections={SEND_REQUEST, READ_RESPONSE, SEND_RESPONSE} (src/tables.py:52). SEND_REQUEST is fine; READ_REQUEST and PRE_REMAP are not.

Affects set-header, rm-header and add-header in those two sections.

Dominant language
C++
Stars
2k
Forks
878
Avg merge
3d 13h
Merged PRs (30d)
86

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/trafficserver

All issues in apache/trafficserver

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.