macOS and Linux API versions differ from Windows

Đang mở
#1,135 4 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
22/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
cli, python
Lĩnh vực
api, cli

Hướng nghiên cứu

The bug is reported against the b2 CLI's key create and account authorize commands, which behave differently on macOS/Linux than on Windows. Start from the key-creation code path in the CLI and compare how capabilities are passed to the Backblaze API on each platform, then check the API version the client requests. Done means a key created on macOS/Linux authorizes successfully and appears in the web portal; the issue has four comments and no linked pull request, so ask the maintainers for direction first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

bug

The b2 CLI app behaves differently on macOS/Linux than it does on Windows when creating a key.
Versions tested: Up to 4.5.1

Reproducible example:

  1. Authorize with master account.
  2. Try to create a key with the following permissions:
b2 key create --bucket my-bucket-name-here Test-Write-Only-Key-Files-1 listBuckets,readBuckets,listFiles,readFiles,writeFiles,readBucketEncryption,readBucketReplications,readBucketRetentions,readFileRetentions,writeFileRetentions,readFileLegalHolds

When attempting a b2 account authorize with the key information yields the following error:
ERROR: unable to authorize account: This request is not currently supported on API version number 2 (bad_request)

Additionally, the key is hidden from the "Application Keys" portion of the web portal.

Running the same command on the Windows version creates the correct key as expected, allows authorization, and shows itself in the web portal.

Ngôn ngữ chính
Python
Star
638
Fork
138
Merge trung bình
8 giờ 27 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Backblaze/B2_Command_Line_Tool

Tất cả issue của Backblaze/B2_Command_Line_Tool

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.