Skip to content

fix: trim trailing slashes from the VSS base URL - #1264

Open
manlikeHB wants to merge 1 commit into
lightningdevkit:mainfrom
manlikeHB:fix/672-vss-url-trailing-slash
Open

manlikeHB wants to merge 1 commit into
lightningdevkit:mainfrom
manlikeHB:fix/672-vss-url-trailing-slash

Conversation

@manlikeHB

@manlikeHB manlikeHB commented Nov 25, 2026 •

Copy link
Copy Markdown

VssClient builds request URLs by appending the endpoint path to the base URL (format!("{}/getObject", base_url)), so a base URL ending in / produced request paths such as //getObject. The current vss-server router strips the /vss prefix and then exact-matches the endpoint, so those requests fail with 400 Invalid request path..

VssStore::new now trims trailing slashes from the base URL before constructing the client. All four build_* methods funnel through it, so this covers every path. Doing it here rather than in VssClient keeps the change local and leaves the option of fixing the join upstream later.

Fixes #672.

@ldk-reviews-bot

ldk-reviews-bot commented Nov 25, 2026 •

Copy link
Copy Markdown

I've assigned @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

`VssClient` appends the endpoint path to the base URL, so a base URL
ending in `/` produced request paths such as `//getObject`, which VSS
servers reject. Trim trailing slashes when constructing the store, and
cover it with a mock-server test.
@manlikeHB
manlikeHB force-pushed the fix/672-vss-url-trailing-slash branch from 099f951 to 4590fa6 Compare November 25, 2026 16:20
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.

Make vss_url and other configs more forgiving

2 participants