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

Decompression fails with invalid auth config #40

Closed
mara-schulke opened this issue Sep 12, 2023 · 0 comments · Fixed by #52
Closed

Decompression fails with invalid auth config #40

mara-schulke opened this issue Sep 12, 2023 · 0 comments · Fixed by #52
Assignees
Labels
bug Reports or fixes associated with bugs in this project complexity::low Issues or ideas with a low implementation cost
Milestone

Comments

@mara-schulke
Copy link
Contributor

mara-schulke commented Sep 12, 2023

$ buffrs install
Error:
   0: Failed to install dependencies
   1: Failed to decompress package
   2: invalid gzip header

Location:
   /Users/mara.schulke/.cargo/registry/src/index.crates.io-6f17d22bba15001f/buffrs-0.5.0/src/package.rs:300

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.

This occurs when the registry configuration is nonesense:

───────┼────────────────────────────────────────────────────
       │ File: $HOME/.buffrs/credentials.toml
───────┼────────────────────────────────────────────────────
   1   │ [artifactory]
   2   │ url = "https://org.jfrog.io/artifactory"
   3   │ username = "foo"
   4   │ password = "some-token"

The request does not result in a 4xx or 5xx code as the url is redirected to https://landing.jfrog.com/reactivate-server/org


The error is very cryptic and we should verify in the artifactory.rs the the registry did return the correct mime type.

@mara-schulke mara-schulke added this to the Stabilzation milestone Sep 12, 2023
@mara-schulke mara-schulke added the bug Reports or fixes associated with bugs in this project label Sep 12, 2023
@mara-schulke mara-schulke changed the title Decompression fails with some packages Decompression fails with invalid auth config Sep 12, 2023
@mara-schulke mara-schulke added the complexity::low Issues or ideas with a low implementation cost label Sep 12, 2023
@github-project-automation github-project-automation bot moved this to Done in Buffrs Sep 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Reports or fixes associated with bugs in this project complexity::low Issues or ideas with a low implementation cost
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants