You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If an Org Auth Token's payload defines an empty but not nullurl, then we should prefer the url provided as a command line argument via --url. The current behavior is to raise an error that the two urls don't match, which makes little sense, given that an empty url in the org Auth Token likely indicates a misconfigured Sentry self-hosted instance, and most users would expect the --url to take precedence.
With this change, the CLI will treat an org auth token that specifies an empty URL the same way as an org auth token that is not specifying a URL at all.
We implemented this change in behavior by changing the type of the url in the AuthTokenPayload from an Option<String> to a String. In cases where the url previously would have been set to None, the url will now be set to an empty string. Uses of the AuthTokenPayload's url field have been updated to treat empty strings the way they previously treated None values.
FixesGH-1913
If an Org Auth Token's payload defines an empty but not null
url
, then we should prefer the url provided as a command line argument via--url
. The current behavior is to raise an error that the two urls don't match, which makes little sense, given that an empty url in the org Auth Token likely indicates a misconfigured Sentry self-hosted instance, and most users would expect the--url
to take precedence.With this change, we would prevent situations like the following: getsentry/sentry-javascript-bundler-plugins#465
The text was updated successfully, but these errors were encountered: