Skip to content

endpoints: endpoint resolution turns RawPath into / if it was never set #632

@lucix-aws

Description

@lucix-aws

#630 (comment)

e.g. if an RPC protocol sets Path to /service/foo/operation/bar, it doesn't set RawPath because in that protocol it's unambiguous and doesn't need to. The post-resolution logic that handles path joining will go through http.JoinPath which will incorrectly implicitly turn RawPath into /. This is technically a misuse of RawPath since they don't correspond anymore, but the http client just ignores RawPath in this case.

We should probably just gate the RawPath join behind a length check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions