如何在代理服务器中键入带有特殊字符的Sonatype Nexus密码? [英] How to type in Sonatype Nexus a password with special characters in proxy repo?

查看:438
本文介绍了如何在代理服务器中键入带有特殊字符的Sonatype Nexus密码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Sonatype Nexus中,您可以添加代理存储库并选择输入基本身份验证。

In Sonatype Nexus you can add a proxy repository and optional enter Basic Authentication.

用户名和密码字段保存在nexus.xml中的服务器中。
我有一个密码与&符号&登录的问题在里面。
问题是Nexus有一个错误或缺失的功能(对我来说,这是一个错误),并将其保存为&您可以通过设置org.apache.http记录器进行跟踪验证,然后在每次尝试使用存储库时打印Base64。当您解码Base64时,您将看到如何真正保存密码。

The username and password fields get saved in the server in nexus.xml. I had problems to login with a password that had ampersand "&" in it. The problem is that Nexus has a bug or missing feature (for me, it is a bug) and it saves it as &. You can verify this by setting the "org.apache.http" logger to trace and then it prints the Base64 each time you try to use the repository. When you decode the Base64 you see how your password was really saved.

我试图反斜杠或使用&但Nexus也确实保存了它们。有没有办法在Nexus中输入空格?

I tried to backslash it or use & but Nexus did save them properly as well. Is there a way to enter the spacial characters in Nexus?

我使用Nexus 2.11

I use Nexus 2.11

有一个已知的错误 https://issues.sonatype.org/browse/NEXUS-4877 ,但他们只为管理员修复。

There was a known bug https://issues.sonatype.org/browse/NEXUS-4877 but they fixed it only for the admin.

推荐答案

Sonatype已知。

It is known to Sonatype.

https://issues.sonatype.org/browse/NEXUS-9043

但是,Nexus 2.X的Nexus 2.X不会修复它,只是在Nexus 3.X中

But they won't fix it for Nexus 2.X , just in Nexus 3.X

有一个工作, p>

There is a work around , as mentioned in the post


作为解决方法,您可以在nexus未运行时将纯文本密码放入nexus.xml中,然后启动服务器并保存管理/服务器配置。密码将被加密。

As a workaround you can put the plain text password into the nexus.xml while nexus isn't running, and then start the server and save the administration/server configuration. The password will get encrypted.

这篇关于如何在代理服务器中键入带有特殊字符的Sonatype Nexus密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆