Artifactory,使用curl部署工件不起作用(代码403)

时间:2017-09-05 21:24:54

标签: artifactory

新手Artifactory用户在这里请耐心等待。 试图在linux上使用curl在repo中部署文件并失败。尝试在运行神器的同一台服务器上运行。

% --> curl -u my_idsid -X PUT 
"http://localhost:8081/artifactory/test_repo/test_artifact_linux_01" -T 
test_aftifact_linux_01
Enter host password for user 'my_idsid':<I entered the pw die my_user here>

HTTP/1.1 100 Continue

HTTP/1.1 403 Forbidden
Server: Artifactory/5.4.6
X-Artifactory-Id: 3444ab9991d26041:29864758:15e2f4940fa:-8000
Content-Type: application/json;charset=ISO-8859-1
Content-Length: 65
Date: Tue, 05 Sep 2017 21:00:20 GMT
Connection: close

{
  "errors" : [ {
    "status" : 403,
    "message" : ""
  } ]
}

我能够使用同一用户的拖放方法在Windows的同一个repo中放置(部署)一个文件(一个工件)。所以我认为这证实了几件事...... 1)回购存在 2)允许该用户写访问的权限是可以的 3)服务器启动并运行正常 并且pw是可以的,因为当我故意输入错误时,它会产生401而不是。

我查看了artifactory.log,它有我的尝试......

2017-09-05 17:15:00,332 [http-nio-8081-exec-7] [WARN ]
(o.a.w.s.RequestUtils:155) - Request /test_repo/test_artifact_linux_01 
should be a repo request and does not match any repo key

与回购钥匙不匹配?

我在这里使用这个例子......

https://www.jfrog.com/confluence/display/RTF/Artifactory+REST+API#ArtifactoryRESTAPI-Example-DeployinganArtifact

并在路径中的“artifactory”(替换“my_repository”)之后插入repo名称。

我强烈怀疑自己是在冒充路径名,但我不知道出了什么问题。如何确定正确的使用路径?

提前感谢您的帮助。

更新: 我的错。回购实际上被命名为“test-repo”,而不是“test_repo” 我做了那个改变后工作得很好。 抱歉误报。

0 个答案:

没有答案
相关问题