Skip to content

Error with port range definition in Component-def #2023

Open
@RS-Credentive

Description

@RS-Credentive

Describe the bug

If a component definition has a port range with a start and end, eg:

                        "port-ranges": [
                            {
                                "start": 80,
                                "end": 80,
                                "transport": "TCP"
                            }
                        ]

oscal CLI reports the following:

[WARNING] [/component-definition/component[X]/protocol[X]/port-range[X]] A start port exists, but an end point does not. To define a single port, the start and end should be the same value.
[WARNING] [/component-definition/component[X]/protocol[X]/port-range[X]] An end point exists, but a start port does not. To define a single port, the start and end should be the same value.

Who is the bug affecting

ME

What is affected by this bug

OSCAL Content

How do we replicate this issue

  1. Generate a component def with a port range as described above
  2. Run the oscal-cli on the file
  3. ???
  4. Error!

Expected behavior (i.e. solution)

No error message :)

Other comments

No response

Revisions

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Needs Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions