Skip to content

uri format regexp is validating invalid URI #408

Closed
@vmaurin

Description

@vmaurin

The regexp used by the "uri" format validation doesn't really validate that the string is a proper URI, i.e there is a chance passing a validated string to the java URI class will result into an exception

An example invalid URI that passes the validation is https://gitlab.com/?args=invalid|value

Should the regexp be more complex ? Should the validation be made with the java URI class (then catching the exception to validate) ?

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