IDEA-GitLab-Integration icon indicating copy to clipboard operation
IDEA-GitLab-Integration copied to clipboard

Invalid remote Gitlab url: https://***

Open andrisp opened this issue 8 years ago • 9 comments

Installed plugin from the jetbrains plugin repository. When tried to use the "Open in Gitlab", got this exception: gitlab_exc.txt

andrisp avatar Jun 20 '16 10:06 andrisp

@andrisp it will not work if you use git:// remotes. Right now only http/https is supported

bsideup avatar Jun 20 '16 10:06 bsideup

@bsideup I'm using https://.

andrisp avatar Jun 20 '16 10:06 andrisp

@andrisp can you post slightly less obfuscated exception?

bsideup avatar Jun 20 '16 10:06 bsideup

@bsideup the only thing I didnt include in the exception was the domain and the path from the URL because of the privacy reasons. As you see in the attached filed, the remote repo URL starts with https://. I was checking the source of the plugin, and have no idea why I'm getting the error, the code looks ok.

andrisp avatar Jun 20 '16 10:06 andrisp

Same on my PC. For quick reproducability I checked out a sample project (https://gitlab.com/tobyd/drone-boat.git) under PyCharm (2016.1; Windows) and clicked "Open on GitLab".

Then I get the following error: https://gist.github.com/mrh1997/ef1a22896205255adb84ab88b896f64f

mrh1997 avatar Jun 21 '16 20:06 mrh1997

The same The repository is private

shurupov avatar Apr 18 '17 16:04 shurupov

Same issue. Had repo with ssh link, used git set-url to switch to https one, but no luck, it says 'wrong url'.

aledoroshenko avatar Sep 01 '17 09:09 aledoroshenko

I just ran into this with PhpStorm 2018.3.3.

The URL in first line of the following stack trace works fine when opened in a browser.

java.lang.IllegalStateException: Invalid remote Gitlab url: https://git04.quodata.de/qd_drupal_projects/qd_base_entity.git
	at ru.trylogic.idea.gitlab.integration.utils.GitlabUrlUtil.makeRepoUrlFromRemoteUrl(GitlabUrlUtil.java:36)
	at ru.trylogic.idea.gitlab.integration.actions.GitLabOpenInBrowserAction.makeUrlToOpen(GitLabOpenInBrowserAction.java:63)
	at ru.trylogic.idea.gitlab.integration.actions.RemoteSelectedAction.actionPerformed(GitLabOpenInBrowserAction.java:238)
	at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:258)
	at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:275)

gogowitsch avatar Feb 15 '19 18:02 gogowitsch

The issue is this line of code: https://github.com/bsideup/IDEA-GitLab-Integration/blob/db5cae0d76cd70fae172bb9533bc0b6ec35c1672/src/ru/trylogic/idea/gitlab/integration/utils/GitlabUrlUtil.java#L31 If your username is not git, you are toast. Mine is gitlab.

pvalsecc avatar Apr 07 '20 11:04 pvalsecc