• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

zappa / Zappa / 26996829987
75%

Build:
DEFAULT BRANCH: master
Ran 05 Jun 2026 05:22AM UTC
Jobs 6
Files 14
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Jun 2026 05:14AM UTC coverage: 74.785% (+0.01%) from 74.775%
26996829987

push

github

web-flow
:bug: Fix v2 custom-domain double-stage redirect with path-segment-safe stage detection (#1409) (#1460)

* :bug: Fix double stage redirect with V2 custom domain mapping (#1409)

When a custom domain maps to an API Gateway v2 stage, API Gateway strips
the stage prefix from rawPath before invoking Lambda. But the handler
always set SCRIPT_NAME to /{stage}, causing Django to construct redirect
URLs with a duplicated stage (e.g., /dev/dev/admin/).

Now detects whether rawPath actually starts with the stage prefix.
If not (custom domain case), SCRIPT_NAME is left empty so redirects
produce correct URLs without the stage prefix.

* :bug: Match v2 stage on path-segment boundary to avoid stripping lookalike routes (#1409)

Harden the API Gateway v2 custom-domain detection so a route whose top path
segment merely shares a leading substring with the stage name (e.g. stage
"prod" + path "/products") is not mistaken for direct API Gateway access.
The stage is now matched on a path-segment boundary (exact match or
"/{stage}/" prefix) instead of a bare string prefix.

Add regression tests covering the custom-domain lookalike-route case.

---------

Co-authored-by: shane <shane.cousins@kiconiaworks.com>

3657 of 4890 relevant lines covered (74.79%)

4.49 hits per line

Coverage Regressions

Lines Coverage ∆ File
27
83.43
0.06% handler.py
Jobs
ID Job ID Ran Files Coverage
1 py3.11 - 26996829987.1 05 Jun 2026 05:23AM UTC 14
74.79
GitHub Action Run
2 py3.12 - 26996829987.2 05 Jun 2026 05:25AM UTC 14
74.79
GitHub Action Run
3 py3.14 - 26996829987.3 05 Jun 2026 05:22AM UTC 14
74.79
GitHub Action Run
4 py3.9 - 26996829987.4 05 Jun 2026 05:24AM UTC 14
74.79
GitHub Action Run
5 py3.10 - 26996829987.5 05 Jun 2026 05:23AM UTC 14
74.79
GitHub Action Run
6 py3.13 - 26996829987.6 05 Jun 2026 05:23AM UTC 14
74.79
GitHub Action Run
Source Files on build 26996829987
  • Tree
  • List 14
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26996829987
  • 5e9c6b7a on github
  • Prev Build on master (#26143614430)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc