openvsx
openvsx copied to clipboard
ovsx command failed if registry server is behind reverse proxy with sub directory path
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 What happens when the registry url ends with double slash? ovsx -r "https://myprivateserver.local/plugin-registry/openvsx//" -p super_token verify-pat SonarSource