Skip to content

Invalid URL Generation Due to Invalid Character in Path #3890

Closed
@leonardo-zup

Description

@leonardo-zup

Describe the bug

The line 3304 of the file kubernetes/src/main/java/io/kubernetes/client/openapi/apis/CustomObjectsApi.java:

3304 │ ········String localVarPath = "/apis/{group}/{version}/{plural}#\u{200e}"

is causing the generation of an invalid URL. The inclusion of #\u{200e} at the end of the URL path results in an invalid or improperly formatted URL.

Client Version
22.0.0

Kubernetes Version
Not applicable – the Kubernetes version does not affect this issue.

Java Version
Not applicable – the Java version does not affect this issue.

To Reproduce

  • Call the listCustomObjectForAllNamespacesCall method with a labelSelector parameter.
  • Observe that the labelSelector parameter is not included in the generated URL due to the invalid character #\u{200e}.

Expected behavior
The URL should correctly include all relevant parameters, such as labelSelector.

KubeConfig
Not applicable.

Server (please complete the following information):
Not applicable – the Server does not affect this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lifecycle/staleDenotes an issue or PR has remained open with no activity and has become stale.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions