Skip to content

[MSHARED-429] Supposedly invalid URLs are rendered as plain text #121

Description

@jira-importer

Jan Schultze opened MSHARED-429 and commented

org.apache.maven.reporting.AbstractMavenReportRenderer#linkPatternedText(String) from org.apache.maven.shared::maven-reporting-impl validates URLs before rendering. If the validation fails URLs are rendered as plain text. The class uses an (in recent versions) deprecated UrlValidator from commons-validator which considers unqualified (i.e. local) host names and fully qualified domain names with a top level domain longer than 4 characters as invalid (such as the special use domain .local or more recent TLDs as .academy and .paris). This makes using maven sites in a private network with a .local top level domain cumbersome as browsing (proprietary) dependencies site(s) requires users to manually copy and paste the URL.


Affects: maven-reporting-impl-2.3

Attachments:

Issue Links:

  • MSHARED-489 AbstractMavenReportRenderer#linkPatternedText ignores name if href is invalid

  • MSHARED-609 Partially revert MSHARED-429
    ("is superceded by")

  • MSHARED-611 Drop any href validation and pass as-is
    ("is superceded by")

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpriority:minorMinor loss of function, or other problem where easy workaround is present

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions