Skip to content

Artifactory has no authentication for latest url and checksum #489

@alsar1980

Description

@alsar1980

How to reproduce (e.g Puppet code you use)

archive::artifactory { 'example.jar':
  path    => '/tmp/example.jar',
  headers => ["X-JFrog-Art-Api: ${artifactory_authentication}"],
  url     => 'https://jfrog.example.com:443/artifactory/repo/com/example/package-1.0.0-SNAPSHOT/package-1.0.0-SNAPSHOT.jar',
}

What are you seeing

Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, HTTP Error Code 401
URL: https://jfrog.example.com:443/artifactory/repo/com/example/package-1.0.0-SNAPSHOT/package-1.0.0-SNAPSHOT.jar
Content:
{
  "errors" : [ {
    "status" : 401,
    "message" : "Authentication is required"
  } ]
} (file: /.../puppet/modules/archive/manifests/artifactory.pp, line: 93, column: 17) (file: /../puppet/test_jfrog.pp, line: 10) on node test

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions