Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report - Fingerprints can't be checked against filenames when multiple files have the same checksum #800

Open
nichogenius opened this issue Nov 19, 2020 · 0 comments

Comments

@nichogenius
Copy link

ISSUE TYPE
  • Bug Report
Jenkinsapi VERSION

0.3.11

Jenkins VERSION

Jenkins 2.235.5

SUMMARY

The jenkins fingerprint API only returns a single filename that matches any given artifact. If more than a single artifact shares the same checksum, the artifact is deemed broken due to a name mismatch. Disabling strict_validation has no effect.

EXPECTED RESULTS

Setting strict_validation to False allows valid checksums with invalid file names to save.

ACTUAL RESULTS

Any build with more than one artifact with the same checksum will fail to save.

USEFUL INFORMATION

Replication -

  1. Create two artifacts with the exact same content, but with different file names. Verify the checksums are identical.
  2. Attempt to use JenkinsAPI to save both artifacts.
  3. Observe one artifact saves fine because it matches the only filename returned for that checksum
  4. Observe one artifact throws a broken artifact exception because the checksum matches, but the filename does not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant