Skip to content

Error message returned when there are no properties for a registry resource #4767

@Dilhasha

Description

@Dilhasha

Current Limitation

I have a registry resource which has no properties defined.

I try to retrieve the properties using the following.

curl -X GET "https://localhost:9164/management/registry-resources/properties?path=registry/governance/mi-resources/attempt1/sampletxtresource/sampletext.txt" -H "accept: application/json" -H "Authorization: Bearer xxxx" -kv

It returns an error as follows.

{"list":"Error while fetching properties"}

My expectation was to see an empty list instead of an error.

Suggested Improvement

Return an empty list instead of an error

Version

MI 4.6.0

Metadata

Metadata

Assignees

No one assigned

    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