Skip to content

test: expect HTTP 303 from the login redirect in Adminer 6.3.0 - #59

Merged
stasadev merged 1 commit into
mainfrom
20261104_stasadev_adminer_303
Nov 4, 2026
Merged

stasadev merged 1 commit into
mainfrom
20261104_stasadev_adminer_303

Conversation

@stasadev

@stasadev stasadev commented Nov 4, 2026

Copy link
Copy Markdown
Member

Short Summary (TL;DR)

Adminer 6.3.0 redirects with HTTP 303 instead of 302, so the health check now expects 303.

The Issue

The scheduled test run 41799823883 failed in all 4 tests with output does not contain substring: HTTP/2 302. The run used the same commit as the passing run on 2026-11-03.

How This PR Solves The Issue

The adminer:6-standalone image updated to Adminer 6.3.0 on 2026-11-03. Adminer commit a92b834 makes Adminer\redirect() send 303 by default. The passwordless login plugin uses this function, so its redirect now returns 303. Browsers follow 302 and 303 the same way, so users see no change. The test now expects HTTP/2 303.

Manual Testing Instructions

ddev add-on get ddev/ddev-adminer --pr 59
ddev restart
curl -sI https://<project>.ddev.site:9101 | head -1
# Expect HTTP/2 303
ddev adminer
# Expect Adminer to open logged in to the db database

Automated Testing Overview

Claude Code ran install from directory, install from directory with nonstandard port and .env.adminer and install from directory with sqlite and .env.adminer with adminer:6-standalone (6.3.0) on Linux, and they passed. Nobody ran install from release locally, so the scheduled CI run will confirm it.

🤖 Developed with assistance from Claude Code

## Short Summary (TL;DR)

Adminer 6.3.0 redirects with HTTP 303 instead of 302, so the health check now expects 303.

## The Issue

The scheduled test run [41799823883](https://github.com/ddev/ddev-adminer/actions/runs/41799823883/job/126472573296) failed in all 4 tests with `output does not contain substring: HTTP/2 302`. The run used the same commit as the passing run on 2026-11-03.

## How This PR Solves The Issue

The `adminer:6-standalone` image updated to Adminer 6.3.0 on 2026-11-03. Adminer commit [a92b834](vrana/adminer@a92b834208) makes `Adminer\redirect()` send 303 by default. The passwordless login plugin uses this function, so its redirect now returns 303. Browsers follow 302 and 303 the same way, so users see no change. The test now expects `HTTP/2 303`.

## Manual Testing Instructions

```bash
ddev add-on get ddev/ddev-adminer --pr 59
ddev restart
curl -sI https://<project>.ddev.site:9101 | head -1
# Expect HTTP/2 303
ddev adminer
# Expect Adminer to open logged in to the db database
```

## Automated Testing Overview

Claude Code ran `install from directory`, `install from directory with nonstandard port and .env.adminer` and `install from directory with sqlite and .env.adminer` with `adminer:6-standalone` (6.3.0) on Linux, and they passed. Nobody ran `install from release` locally, so the scheduled CI run will confirm it.

🤖 Developed with assistance from [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@stasadev
stasadev merged commit 49b8bf4 into main Nov 4, 2026
4 checks passed
@stasadev
stasadev deleted the 20261104_stasadev_adminer_303 branch November 4, 2026 08:53
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.

1 participant