使用 Jira SOAP API 时出现PasswordEncoderNotFoundException

发布于 2024-11-27 22:38:20 字数 818 浏览 1 评论 0原文

我正在致力于将我公司的产品与 Jira 集成,以便用户可以直接从应用程序记录错误报告。一切都很顺利,所以我决定将数据从我们的实时 Jira 系统导入到我的开发系统中,这样我就有了一些真实世界的数据可以使用。从那时起,当我尝试获取身份验证令牌时,它会抛出以下异常“com.atlassian.crowd.exception.PasswordEncoderNotFoundException:PasswordEncoder'atlassian-security'未在PasswordEncoderFactory的内部编码器列表中找到”。我已经检查过,Atlassian 安全密码编码器已在 Crown 密码编码器插件中启用。

我的代码非常简单,只是一个基于 ASP.net 的基于文本的问题搜索,结果连接到网格视图代码,如下所示:

JiraSoapServiceService service = new JiraSoapServiceService();

string token = service.login("integration", "test");
if (!string.IsNullOrEmpty(txtSearch.Text))
{
   RemoteIssue[] issues = service.getIssuesFromTextSearchWithLimit(token, txtSearch.Text, 0, 100);
   gvwIssues.DataSource = issues;
   gvwIssues.DataBind();
}

我在调用 service.login 时收到错误,在导入实时数据之前它工作正常。是的,在导入数据后,我确实再次添加了集成用户。

任何人对此有任何想法。

I am working on integrating my company's product with Jira so users can log bug reports directly from the application. Everything was wqorking smoothly so i decided to import the data from our live Jira system into my development system so that i had some real world data to play with. Since then when i try to get an authtication token it throws the following exception "com.atlassian.crowd.exception.PasswordEncoderNotFoundException: The PasswordEncoder 'atlassian-security' was not found in the Internal Encoders list by the PasswordEncoderFactory". I have checked and the Atlassian Security Password Encoder is enabled in the Crown Password Encoders plugin.

My code is super simple just an ASP.net based text based issues search with the results wired to a grid view code as below:

JiraSoapServiceService service = new JiraSoapServiceService();

string token = service.login("integration", "test");
if (!string.IsNullOrEmpty(txtSearch.Text))
{
   RemoteIssue[] issues = service.getIssuesFromTextSearchWithLimit(token, txtSearch.Text, 0, 100);
   gvwIssues.DataSource = issues;
   gvwIssues.DataBind();
}

I get the error on the call to service.login, it worked fine before I imported the live data. And yes i did add the integration user again after i had imported the data.

Anyone any ideas on this.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

贱贱哒 2024-12-04 22:38:21

不知道是什么原因造成的,但重新启动安装了 dev Jira 的电脑即可修复该问题。

编辑

我已经经历过几次了。当您执行诸如重新启动 SQL Server、通过 SQL Server 恢复 jira 数据库、通过内置 XML 文件导入方法或类似方法恢复 jira 等操作时,往往会发生这种情况。您不必重新启动计算机,只需重新启动 jira windows 服务即可。不知道这是否是其他数据库或服务器类型的问题。

No idea what was causing this but rebooting the PC that the dev Jira was installed on fixed it.

EDIT

I have had this a few times now. It tends to happen when you do something like restart the SQL server, restore the jira database via SQL server, restore jira via the inbuilt XML file import method or similar. You don't have to restart the machine just the jira windows service. No idea if this is a problem with other DBs or server types.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文