question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

All publish tasks fail with: Unrecognized field "slf"

See original GitHub issue

Describe the bug Using the gradle artifactory plugin to publish any type of artifact (pom, war, jar) fails with an error and does not publish the artifact. This is against the cloud version of artifactory, <company>.jfrog.io

To Reproduce Publish any artifact to a repository in the cloud.

Expected behavior Publishing should succeed with out error.

Versions

  • Gradle Artifactory plugin version: 4.9.6, 4.18.2, 4.21.0
  • Operating system: Linux
  • Artifactory Version: Unknown…cloud hosted

Additional context Full error in the build: Execution failed for task ‘:artifactoryDeploy’. 13 actionable tasks: 13 executed

java.util.concurrent.ExecutionException: java.lang.RuntimeException: com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field “slf” (class org.jfrog.build.client.ArtifactoryUploadResponse), not marked as ignorable (12 known properties: “checksums”, “size”, “repo”, “downloadUri”, “path”, “statusLine”, “created”, “errors”, “uri”, “mimeType”, “createdBy”, “originalChecksums”])

at [Source: (org.apache.http.conn.EofSensorInputStream); line: 2, column: 12] (through reference chain: org.jfrog.build.client.ArtifactoryUploadResponse[“slf”])

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
martinm82commented, Jun 17, 2021

Wouldn’t it be good to mention in the release notes which Artifactory version build-info is compatible with. The problem is that this change in the Deploy Artifact API has changed in Artifactory but there are no traces in the release notes of Artifactory nor in the REST API documentation.

See https://www.jfrog.com/confluence/display/JFROG/Artifactory+REST+API#ArtifactoryRESTAPI-DeployArtifact where it states only:

PUT /libs-release-local/my/jar/1.0/jar-1.0.jar
{
"uri": "http://localhost:8081/artifactory/libs-release-local/my/jar/1.0/jar-1.0.jar",
"downloadUri": "http://localhost:8081/artifactory/libs-release-local/my/jar/1.0/jar-1.0.jar",
"repo": "libs-release-local",
"path": "/my/jar/1.0/jar-1.0.jar",
"created": ISO8601 (yyyy-MM-dd'T'HH:mm:ss.SSSZ),
"createdBy": "userY",
"size": "1024", //bytes
"mimeType": "application/java-archive",
"checksums":
{
        "md5" : string,
        "sha1" : string
    },
"originalChecksums":{
        "md5" : string,
        "sha1" : string
    }
}
0reactions
nstuart-idexxcommented, Jun 1, 2021

Thanks, sorry I missed that. We obviously had that classpath block, but I needed to change latest.release to the specific version of 4.24.4 in one project, and now the others with latest.release are using it as well. Something in our repository setup causing this I guess.

But, the original problem does appear to be solved. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to upload artifacts into JFrog Artifactory because of ...
The root cause is a new field returned from Artifactory in the response of the upload REST API. The fix is to ignore...
Read more >
Unrecognized field: schemaType · Issue #1254 - GitHub
Hi, i have encountered this error Unrecognized field: schemaType (HTTP status code 422, SR code 422) when i execute the json_producer.py ...
Read more >
A brand new website interface for an even better experience!
All publish tasks fail with: Unrecognized field "slf"
Read more >
[RTFACT-25926] There is not way to publish an artifact ... - JFrog
[RTFACT-25926] There is not way to publish an artifact to Cargo registry with ... warning: Failed to publish with error 'Unrecognized field ......
Read more >
fasterxml.jackson.databind.exc.UnrecognizedPropertyException
Nom ↓ Version En effet ace‑editor 1.1 true ansicolor 1.0.0 true ant 1.11 true
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found