Skip to content

test: log all headers of requests and responses in the acceptance tests - #4105

Merged
v-scharf merged 1 commit into
opencloud-eu:mainfrom
pbleser-oc:fix/4104-httplogger-headers
Nov 24, 2026
Merged

v-scharf merged 1 commit into
opencloud-eu:mainfrom
pbleser-oc:fix/4104-httplogger-headers

Conversation

@pbleser-oc

Copy link
Copy Markdown
Member

The acceptance tests' request log only showed the last header of each request and response, usually Date: HttpLogger assigned each header instead of appending it.

This logs all headers, with all their values and the indentation of the rest of the log. Authorization and Cookie are masked as ***, since the logs are public in the CI and would otherwise contain the test users' credentials.

Fixes #4104

Tested with PHP lint, make test-php-style, and by calling the new helper with real request and response objects in the CI's PHP image.

AI assistance: Claude Code (claude-opus-5-5) wrote the fix and the commit message; I reviewed it.

HttpLogger assigned each header instead of appending it, so the request
log only showed the last header of each request and response, usually
Date. Format all headers, with all their values and the indentation of
the rest of the log. Mask Authorization and Cookie: the logs are public
in the CI.

Fixes opencloud-eu#4104

Assisted-by: Claude Code:claude-opus-5-5
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@v-scharf
v-scharf merged commit 5b9c898 into opencloud-eu:main Nov 24, 2026
56 checks passed
@pbleser-oc
pbleser-oc deleted the fix/4104-httplogger-headers branch November 24, 2026 08:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

acceptance tests: the request log only records the last header of each request and response

2 participants