Why am I unable to fetch/pull/push to/from my Team Foundation Server over HTTP in MATLAB R2019b whereas this worked fine in release R2019a?

5 次查看(过去 30 天)

I was working with a Git repository hosted on Team Foundation Server over HTTP just fine in MATLAB R2019a; I never had to enter username and/or password. In release R2019b however, MATLAB all of a sudden starts asking for an username and password but then the username and password which I enter is not accepted. After a few tries the operation fails with an error dialog showing:

http://myserver:8090/tfs/DefaultCollection/_git/TestProject: not authorized

采纳的回答

MathWorks Support Team
If you never had to enter an username/password you were likely working with NTLM authentication (where the Git client in MATLAB R2019a can automatically use the Windows credentials of the currently logged-in user to authenticate with the Team Foundation Server). But where in previous MATLAB releases transparent NTLM authentication was enabled, in release R2019b this features has now been disabled; or to be precise the default setting changed in newer Java 8 Runtime Environment versions and MATLAB R2019b contains a newer Java Runtime Environment.
To enable this again:
1. In a single specific MATLAB session, run the following command right after startup:
java.lang.System.setProperty('jdk.http.ntlm.transparentAuth','allHosts')
2. For all future MATLAB R2019b sessions, edit the file returned by the following MATLAB command:
fullfile(matlabroot,'sys','java','jre',computer('arch'),'jre','lib','net.properties')
At the bottom find:
jdk.http.ntlm.transparentAuth=disabled
And change this into:
jdk.http.ntlm.transparentAuth=allHosts
Then restart MATLAB.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

尚未输入任何标签。

产品


版本

R2019b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by