delete-file-version fails for snapshots

Đang mở
#614 1 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ó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
cli, cloud

Hướng nghiên cứu

The report is about the delete-file-version command, which currently fails with a 400 when the target file is inside a snapshot bucket. Start by finding where that command is defined and how it calls the B2 API, then check whether the underlying request can send the allow-snapshot header at all. Done means a clear way to pass that header (the report suggests an --allowSnapshot switch) and a reproduction against a snapshot bucket. Expect the fix may belong in the upstream SDK, and confirm with maintainers before starting.

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

Mô tả

Passing a file version for a snapshot to delete-file-version results in:

ERROR: Unknown error: 400 bad_request Allow snapshot header must be specified when deleting a file from a snapshot bucket

I assumed this meant there would be a --allowSnapshot switch, but there's not.

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.