-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[dashboard] Fix rendering of the redirect URI on Git Integrations page #11798
Conversation
/werft run 👍 started the job as gitpod-build-alex-git-integrations-shows-wrong-11795.3 |
started the job as gitpod-build-alex-git-integrations-shows-wrong-11795.2 because the annotations in the pull request description changed |
// `\/` matches the character `/` | ||
// "https://foobar:80".replace(/:(?!\/)/, "_") | ||
// => 'https://foobar_80' | ||
newHostValue = host.replace(/:(?!\/)/, "_"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for reviewers, this is running in browser, so it's straight forward to test the example from the comment.
Really needing this 😁 any indication of when it will be live? |
@jmls, I don't think you need to wait for the next deployment to get unblocked. This PR fixes the rendering of the redirect URI to be entered in your OAuth app on GHE/BBS/GL server, if port number is used. There is a workaround. You can fix the copy-pasted URL easily yourself. Go to the provider specific OAuth app settings and replace the colon by an underscore, e.g. |
Our customer said that they tried this and it didn't work. I'll have to check again with them |
Hi everybody, just checked with our customer this fix: When entering a URL in the "New Git Integration" Screen with Port and : in the URL the (example foo.bar:7990), the URL will adjusted directly to foo.bar_7990. When trying to activate this connection, we get the error "Host could not be reached" Could you help us out here? |
@AlexTugarev the behaviour we are seeing is this: As soon as we try and add the port to the hostname, the colon gets converted to a _. This makes the hostname invalid, and gipod then complains about the host could not be reached. Obviously, the host does not exist with the _ Please could someone actually try this ? It's obvious from the moment you try and press "Aactivaate Integration" that this is flawed and borken This has been a problem for over 4 weeks now - it's causing major embarrassment with our client |
@jmls, thanks for the feedback! Let me fix this. |
Description
Redirect URI is used to be copy-pasted into OAuth applications of GHE/GL/BBS. When port numbers are included in host names, this was not handled properly in #11409.
Related Issue(s)
Fixes #11795
How to test
Try to create a Git Integration with port number in hostname and see the value of the redirect URI is rendered with colon before the port number.
Release Notes
Documentation
Werft options: