-
Notifications
You must be signed in to change notification settings - Fork 531
Description
Hello there,
We are facing an issue regarding url fieldType validation while using uncommon url.
Here is such url : https://archive.softwareheritage.org/swh:1:dir:561bfe6698ca9e58b552b4eb4e56132cac41c6f9;origin=https://github.com/gem-pasteur/macsyfinder;visit=swh:1:snp:1bde3cb370766b10132c4e004c7cb377979928d1;anchor=swh:1:rev:868637fce184865d8e0436338af66a2648e8f6e1 (generated by the website as a permalink)
Deeper analysis reveals that the url validator is based on org.apache.commons.validator.routines.UrlValidator and will fail on validation due to the // near 6f9;origin=https://githu.
UrlValidator as capability to be customized with options such as ALLOW_2_SLASHES that Allow two slashes in the path component of the URL :
UrlValidator urlValidator = new UrlValidator(schemes, UrlValidator.ALLOW_2_SLASHES);The question now is : is it reasonable to add this option "for everyone and every url fields" ?
What do you think ?
Depending on the answer a PR could be considered.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status