[BUG] Manual publisher TLS fixture rejects bytearray header keys #19

Open
opened 2026-10-14 11:58:46 +02:00 by erikinkinen · 0 comments
Owner

Summary

The contained TLS peer for the pending manual publisher fails while parsing the first request. Mutable header keys cannot be inserted into its field dictionary, so the fixture cannot complete its positive case.

Reproduction

Run the bounded positive publisher fixture with the designated localhost certificate, fake credential and two test artifacts. In Peer.request, the received buffer is a bytearray; splitting its header lines leaves bytearray keys passed to dict(pairs). The same type error is reproduced by dict([(bytearray(b'Content-Length'), bytearray(b'0'))]).

The fixture change is pending, so this is not a released-image or clean-checkout regression.

Expected and actual behavior

The peer should accept complete immutable header fields and retain the request before sending its selected response. Instead it raises TypeError: unhashable type: 'bytearray'. The client sends 239 request bytes but no complete request is recorded; client, peer and outer test exit 1. The four later refusal cases are not run.

Environment and identity

Pending Docs publication fixture based on e66ff449; Linux x86-64, selected Python 3.14 and the original Integration command owner at 4a87840c0343314fdc1957dc64bcf07c1d4c9a2a. Only numeric localhost and designated fake inputs are used. No working complete TLS cohort has been accepted.

Evidence and prior checks

Complete original source, streams and terminal records are retained. All original process cleanup is confirmed without quarantine. The peer retires all three socket claims and records one operation error. The startup correction for issue 17 reaches the bootstrap and TLS; this is a separate fixture defect.

Tracking

Publisher design, startup defect, manual review, phase completion.

  • Parse immutable header octets without breaking fragmented body collection.
  • Add an independent fragmented-header and body regression through the peer parser.
  • Complete the positive TLS case and relevant refusal cases on the corrected source.
## Summary The contained TLS peer for the pending [manual publisher](https://git.erikinkinen.fi/erix/docs/issues/16) fails while parsing the first request. Mutable header keys cannot be inserted into its field dictionary, so the fixture cannot complete its positive case. ## Reproduction Run the bounded positive publisher fixture with the designated localhost certificate, fake credential and two test artifacts. In `Peer.request`, the received buffer is a `bytearray`; splitting its header lines leaves `bytearray` keys passed to `dict(pairs)`. The same type error is reproduced by `dict([(bytearray(b'Content-Length'), bytearray(b'0'))])`. The fixture change is pending, so this is not a released-image or clean-checkout regression. ## Expected and actual behavior The peer should accept complete immutable header fields and retain the request before sending its selected response. Instead it raises `TypeError: unhashable type: 'bytearray'`. The client sends 239 request bytes but no complete request is recorded; client, peer and outer test exit 1. The four later refusal cases are not run. ## Environment and identity Pending Docs publication fixture based on [e66ff449](https://git.erikinkinen.fi/erix/docs/commit/e66ff4497f2d8237c4152f56a28bdbc6297cfb83); Linux x86-64, selected Python 3.14 and the original Integration command owner at `4a87840c0343314fdc1957dc64bcf07c1d4c9a2a`. Only numeric localhost and designated fake inputs are used. No working complete TLS cohort has been accepted. ## Evidence and prior checks Complete original source, streams and terminal records are retained. All original process cleanup is confirmed without quarantine. The peer retires all three socket claims and records one operation error. The startup correction for [issue 17](https://git.erikinkinen.fi/erix/docs/issues/17) reaches the bootstrap and TLS; this is a separate fixture defect. ## Tracking [Publisher design](https://git.erikinkinen.fi/erix/docs/issues/16), [startup defect](https://git.erikinkinen.fi/erix/docs/issues/17), [manual review](https://git.erikinkinen.fi/erix/docs/pulls/4), [phase completion](https://git.erikinkinen.fi/erix/integration/issues/65). - [ ] Parse immutable header octets without breaking fragmented body collection. - [ ] Add an independent fragmented-header and body regression through the peer parser. - [ ] Complete the positive TLS case and relevant refusal cases on the corrected source.
erikinkinen added this to the Alpha 1 milestone 2026-10-30 09:33:40 +01:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
erix/docs#19
No description provided.