Skip to content

The command pulp-vulnerability show --href accepts any href #1429

@pedro-psb

Description

@pedro-psb

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Triage-NeededNeeds to be reviewed at next pulp-cli mtgbugSomething isn't working (template-set)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions