Skip to content

url parsing fails if front slash before fragment is missing and no path specified #131

@holger-waschke

Description

@holger-waschke

we send azure alerts to alertmanager. alertmanager parse the url

https://github.com/prometheus/alertmanager/blob/d7ad5e12f8f823ec64e4e84e91d926b6a8e60f71/cli/alert_add.go#L127C25-L127C28

https://portal.azure.com#@930d042f-8145....

This is covered in the RFC and should be supported
https://www.rfc-editor.org/rfc/rfc3986#appendix-B

However we get an error while parsing the url

{"code":601,"message":"0.generatorURL in body must be of type uri: \"https://portal.azure.com#@930d042f-....""}

Can you please check why it fails and fix accordingly?

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