-
Name Previous Value Current Value Assignee
robin
wh
-
Root cause is on the onedev.io website (
onedev/website), not in the OneDev server package.The "Request Trial Subscription" form POSTs to
https://onedev.io/subscription-key. That route redirected withrequest.nextUrl.origin, which behind nginx is the upstream host (https://localhost:3000), so the browser landed onhttps://localhost:3000/trial-subscription-key-generated/...and failed withERR_CONNECTION_REFUSED. The trial key itself was generated correctly.Fixed by using
getRequestOrigin()(canonical public site URL fromAUTH_URL/NEXT_PUBLIC_SITE_URL) for those redirects, matching the signup flow. Also applied the same fix to the support-request redirect path, which had the same pattern.Website fix: https://code.onedev.io/onedev/website/~pulls/1
-
Thank you. Fixed in website.
-
Previous Value Current Value Open
Closed
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
16.0.8
|
| Labels |
No labels
|
When requesting a trial subscription from a self-hosted instance, the browser is redirected to a URL on localhost:3000, which fails with ERR_CONNECTION_REFUSED.
Steps to reproduce:
Expected: redirect to the key page on onedev.io (looks like a dev-environment base URL leaked into the production redirect).
likely affects all versions since the redirect happens on onedev.io side
Note: the trial key is generated successfully — I recovered it by URL-decoding the path segment from the failed redirect URL and installing it via "Install Subscription Key", which activated the trial normally. So the impact is that new users likely think the trial request failed.