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

The command `pulp vulnerability-report show --href` accepts any href

Đang mở
#1,429 2 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
python
Lĩnh vực
cli

Hướng nghiên cứu

Start at the implementation of pulp vulnerability-report show --href and compare it with the pulp_python vulnerability-report test mentioned in the issue. Reproduce with a task href from pulp task list, then verify that non-vulnerability-report resources are rejected while vulnerability-report hrefs still work.

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

Mô tả

bug Triage-Needed

Summary

The command effectively acts like the pulp show --href, accepting any kind of href.

I found that because pulp_python vuln report test does that (takes a task where it really wanted to take a vulnerability report). Tested with a few other resources and concluded it can take anything.

Steps to reproduce

# grab a task (there is usually one available)
TASK_HREF=$(pulp task list | jq -r '.[0].pulp_href')

# show task info with vuln report command
pulp vulnerability-report show --href "$TASK_HREF"

Expected behavior

It should error for resources which are not vulnerability reports.

Stacktrace/Error log

No applicable.

Pulp and pulp-cli version info

$ pulp --version
Pulp3 Command Line Interface, Version 0.40.0
Plugin Versions:
  common: 0.40.0

$ pulp status
{
  "versions": [
    {
      "component": "core",
      "version": "3.113.0.dev",
      "package": "pulpcore",
      "module": "pulpcore.app",
      "domain_compatible": true
    },
    {
      "component": "certguard",
      "version": "3.113.0.dev",
      "package": "pulpcore",
      "module": "pulp_certguard.app",
      "domain_compatible": true
    },
    {
      "component": "file",
      "version": "3.113.0.dev",
      "package": "pulpcore",
      "module": "pulp_file.app",
      "domain_compatible": true
    },
    {
      "component": "python",
      "version": "3.32.0.dev",
      "package": "pulp-python",
      "module": "pulp_python.app",
      "domain_compatible": true
    },
    {
      "component": "rpm",
      "version": "3.38.0.dev",
      "package": "pulp-rpm",
      "module": "pulp_rpm.app",
      "domain_compatible": true
    }
  ],
(...)

Additional context

Ngôn ngữ chính
Python
Star
43
Fork
52
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
10

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 pulp/pulp-cli

Tất cả issue của pulp/pulp-cli

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.