Your comments

That looks good! Currently, SmartGit is populating the "Account" field with the first account from this list. Maybe it should better offer a list to chose from?

Did you also try to click the Generate Token button instead of copy&pasting the URL to the browser directly? It will invoke rundll32 exactly you did, hence I would expect this to work, too.

Regarding pull requests, the Branches view doesn't show any of them, but it also doesn't denote any errors in the Azure logo. Is it correct that the repository doesn't contain any pull requests?

> Correct, it turns out that smartgit passing url to browser is running into an issue and concatenating multiple times.

> here's how the urldecoded version looks like what is actually passed to the browser.

That's interesting. I'm on Windows 10 and don't have any troubles with passing over url-decoded version to rundll32 (the partial duplication is expected and required). From command line, can you please try to run following commands and let me know which ones of them succeed?

rundll32 url.dll,FileProtocolHandler "https://app.vssps.visualstudio.com/oauth2/authorize?client_id=8596D322-85D7-49ED-8103-77ABE77BD190&response_type=Assertion&state=nothing&scope=vso.code_write&redirect_uri=https://www.syntevo.com/smartgit/azuredevops-callback"


and:

rundll32 url.dll,FileProtocolHandler "https://app.vssps.visualstudio.com/oauth2/authorize?client_id=8596D322-85D7-49ED-8103-77ABE77BD190&response_type=Assertion&state=nothing&scope=vso.code_write&redirect_uri=https%3A%2F%2Fwww.syntevo.com%2Fsmartgit%2Fazuredevops-callback"

> if I copy the url shown in the dialog and paste that in the browser, I get a proper login dialog, and when I paste back the

> Authorization code, the Account field is filled with one of our organizations.

That's good. This is the result of https://app.vssps.visualstudio.com/_apis/accounts callback. When invoking this URL in your browser can you see multiple accounts there? Does that match the organizations you are connecting to?

> Now if we forget about the second org, and look into the first one that properly got added, I still don't see anywhere any traces of pull request.

Does the Branches view now show the Azure logo? Let's first concentrate to get this working for the organization which Generate Token suggests. Also let's switch to email. Please send clean logs for the seemingly successful authentication for this organization to smartgit@syntevo.com:

https://www.syntevo.com/doc/display/SG/Debugging#Debugging-Generaladvices/preparations

This call is not actually sent from SmartGit, but it's an URL which is passed to your browser. A "Request Too Long" is definitely not expected here. The URL looks identical for me (client_id is a constant) and it will finally result in opening the callback URL:


https://www.syntevo.com/smartgit/azuredevops-callback

What SmartGit is doing here is explained at:


https://docs.microsoft.com/en-us/azure/devops/integrate/get-started/authentication/oauth?view=azure-devops#authorize-your-app

Could this be some firewall issue in your company (network)?

Thanks, I'm going to fix the error message. Still, I can't reproduce your problem. Please send logs, as explained in my reply to hrant.

> What does the Account field represent? is it a label to name the account or is it actually my account email? Or is it the organization name?

It should be the organization name. It's the same what will be used as prefix for your URLs. I guess we should rename it to "Organization".


> If I try to Generate Token instead, I get redirected to a browser and get an Authorization Code? however this is not clear as to what organization it is using?

Good question. I guess the one(s) for which you are logged in. Frankly, I do not yet understand the relationship between users (accounts?) and organizations.

> If I enter one of the Organization names in the Account section, The SmartGit gets stuck and the only way out of it is to force kill it through task manager

You can see all sent REST API requests in logs/log.txt.0 in the Settings directory. Now to start investigating these different problems:

(1) please get 21.1 portable bundle

(2) have a fresh setup and update to the latest build

(3) reproduce a single problem

(4) check logs/log.txt.0 yourself, maybe you will immediately see what might be wrong with the requests; if so, please let me know; if not, send me compressed logs/log.txt.0 to smartgit@syntevo.com

(5) get rid of the entire .settings directory of the portable bundle

(6) Restart at (2) with the next problem

As pointed out by hrant, you will have to get the latest build: Help|Check for Latest Build (not Help|Check for New Version!)

21.1 Preview build 17068 contains an integration comparable to GitHub. Some questions/notes:

  • Which repositories should be listed in the Clone wizard? Currently I'm using git/repositories API. For GitHub, for example, we are also showing "starred" repositories. Is there some comparable functionality in Azure DevOps?
  • I have omitted Merge functionality Pull Requests because Azure DevOps offers too many options here and thus it's better to use their GUI
  • I have tested only with the cloud instance. It would be especially interesting whether custom instances/servers work fine, too. If not, please share details, including logs with us at smartgit@syntevo.com

To give it a try, get 21.1 Preview from https://www.syntevo.com/smartgit/preview/ and invoke Help|Check for Latest Build.

Feedback is much appreciated!


@all, is the authentication with a Personal Access Token the main reason for your upvotes?

You might be interested in the "Modify-All Commits (Step/Continue)" feature in 21.1 preview: https://www.syntevo.com/smartgit/preview/