Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

fix(team): profile import crashes on a bad field and the secret scrubber misses pwd / private_key

Đang mở
#1,564 0 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
1-2 ngày
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
dart, flutter
Lĩnh vực
database, desktop

Hướng nghiên cứu

Start with lib/core/team/team_profile.dart, especially TeamProfileCodec.decode at lines 129–133 and _secretKey at line 25. Check the profile import and export tests, then add cases for invalid field types and the listed secret keys. Done means invalid rows are skipped and counted, and those keys are scrubbed in driver options and connection string queries.

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

Mô tả

bug core P2 stability

Problem

TeamProfileCodec.decode (lib/core/team/team_profile.dart:129-133) uses unchecked casts (item['port'] as int?, item['host'] as String?, username, databaseName, authSource, extensionId). A hand-edited or version-skewed file throws TypeError (not TeamProfileFormatException) and the whole import fails instead of skipping the bad row.

The secret scrubber _secretKey (:25) is pass(word|phrase)?|secret|token|api_?key and misses pwd, private_key / privateKey, credential(s), access_key, signature. Such keys in driverOptions or in the connection-string query survive export and import.

Expected

  • Type-check each field (pattern matching), skip invalid rows and report how many were skipped.
  • Extend the key pattern (and add tests for pwd, privateKey, private_key, accessKey, credentials).
Ngôn ngữ chính
Dart
Star
23
Fork
1
Merge trung bình
31 phút
Pull request đã merge (30 ngày)
570

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

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

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 QueryaHub/Querya-Desktop

Tất cả issue của QueryaHub/Querya-Desktop

Issue tương tự

Thêm issue về Dart

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.