libgit2 / libgit2/libgit2sharp
"remote authentication required but no callback set" in pull after upgrading from 0.28 to 0.29
还没有人认领这个 Issue。
- 主要语言
- C#
- 星标
- 3.5k
- 派生
- 925
- PR 合并指标
- 30 天内没有已合并 PR
描述
@bording we get the error "remote authentication required but no callback set" after upgrading from 0.28 to 0.29 when connecting to a company internal azure devops server.
This works great with the old version using windows authentication.
Reproduction steps
- connect to a company internal azure devops server via windows authentication
Signature signature = GetSignature();
PullOptions pullOptions = new()
{
MergeOptions = new() { FileConflictStrategy = CheckoutFileConflictStrategy.Theirs }
};
MergeResult mergeResult = Commands.Pull(Repository, signature, pullOptions);
Expected behavior
Success
Actual behavior
LibGit2Sharp.LibGit2SharpException
HResult=0x80131500
Message=remote authentication required but no callback set
Source=LibGit2Sharp
StackTrace:
at LibGit2Sharp.Core.Ensure.HandleError(Int32 result) in /_/LibGit2Sharp/Core/Ensure.cs:line 154
Version of LibGit2Sharp (release number or SHA1)
0.29
Operating system(s) tested; .NET runtime tested
Windows 11, .NET 4.8
Seems to be related to #2065 and #2087
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
先从 Core/Ensure.cs 第154行的 Pull 调用和错误路径入手,然后比较 0.28 和 0.29 版本之间的身份验证行为。查看相关 issue #2065 和 #2087,并在使用 .NET 4.8 的 Windows 内部 Azure DevOps 服务器上重现该问题。当显示的 pull 使用 Windows 身份验证成功执行且没有 missing-callback exception 时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- azure, csharp, git
- 领域
- authentication, backend, operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100