openvsx icon indicating copy to clipboard operation
openvsx copied to clipboard

ovsx command failed if registry server is behind reverse proxy with sub directory path

Open herzcthu opened this issue 4 months ago • 1 comments

My registry is behind reverse proxy and proxied via /plugin-registry/openvsx/ path. Here is output when I run command.

ovsx -r "https://myprivateserver.local/plugin-registry/openvsx/"  -p super_token verify-pat SonarSource

❌  The server responded with status 404: Not Found

When I check in server logs, I can see "/" is removed from url.

This is from server access log.

- - [25/Jul/2025:05:49:36 +0000] "GET /openvsxapi/SonarSource/verify-pat?token=super_token HTTP/1.1" 404 196 "-" "-"

I think problem is here.

https://github.com/eclipse/openvsx/blob/899b4b4419a9828f35adee80bf270f9a2331a962/cli/src/registry.ts#L32

thanks

herzcthu avatar Jul 25 '25 05:07 herzcthu

@herzcthu What happens when the registry url ends with double slash? ovsx -r "https://myprivateserver.local/plugin-registry/openvsx//" -p super_token verify-pat SonarSource

amvanbaren avatar Oct 06 '25 19:10 amvanbaren