Skip to content

fix(openapi): accept requests without trailing slash on v1 relationsh…#16773

Open
rospe wants to merge 5 commits intodatahub-project:masterfrom
rospe:fix/relationships-v1-trailing-slash
Open

fix(openapi): accept requests without trailing slash on v1 relationsh…#16773
rospe wants to merge 5 commits intodatahub-project:masterfrom
rospe:fix/relationships-v1-trailing-slash

Conversation

@rospe
Copy link

@rospe rospe commented Mar 25, 2026

…ips endpoint

Spring Boot 3.x disabled trailing slash matching by default. The v1 RelationshipsController maps @GetMapping(value = "/") which only matches /openapi/relationships/v1/ (with trailing slash). Reverse proxies commonly strip trailing slashes, causing 404 errors when the migrate dataplatform2instance CLI command calls this endpoint.

Accept both paths by mapping to {"", "/"}.

Fixes: #15538

…ips endpoint

Spring Boot 3.x disabled trailing slash matching by default. The v1
RelationshipsController maps @GetMapping(value = "/") which only matches
/openapi/relationships/v1/ (with trailing slash). Reverse proxies commonly
strip trailing slashes, causing 404 errors when the migrate
dataplatform2instance CLI command calls this endpoint.

Accept both paths by mapping to {"", "/"}.

Fixes: datahub-project#15538
@github-actions github-actions bot added devops PR or Issue related to DataHub backend & deployment community-contribution PR or Issue raised by member(s) of DataHub Community labels Mar 25, 2026
@github-actions
Copy link
Contributor

Linear: CAT-1621

Thanks for your contribution! We have created an internal ticket to track this PR. A member of the core DataHub team will be assigned to review it within the next few business days - you will get a follow-up comment once a reviewer is assigned.

@maggiehays maggiehays added the needs-review Label for PRs that need review from a maintainer. label Mar 25, 2026
@codecov
Copy link

codecov bot commented Mar 25, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@rospe
Copy link
Author

rospe commented Mar 26, 2026

Hi @gabe-lyons , there seem to be some flaky cypress tests - can you rerun or merge? I wouldn't know how they are linked to this patch.

@maggiehays maggiehays added merge-pending-ci A PR that has passed review and should be merged once CI is green. and removed needs-review Label for PRs that need review from a maintainer. labels Mar 26, 2026
@codecov
Copy link

codecov bot commented Mar 26, 2026

Bundle Report

Bundle size has no change ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

community-contribution PR or Issue raised by member(s) of DataHub Community devops PR or Issue related to DataHub backend & deployment merge-pending-ci A PR that has passed review and should be merged once CI is green.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

'dataplatform2instance' Migration Command Fails When Linking Assets to PlatformInstance

3 participants