Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-20041

Proxy Repository validation too generic

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: New
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.17.0
    • Fix Version/s: None
    • Component/s: Proxy Repository, UI
    • Labels:
      None

      Description

      In a recent ticket it was found that repository validation no longer allowed % characters.
      When trying to enter one (e.g. "http://www.bower.org/space%20init") , the validation reads "URL should be in the format 'http://www.example.com'".
      This is too generic to be helpful here. If we're going to restrict things, it should be a similar makeup to ID (e.g. "Only letters, digits, underscores(_), hyphens, and dots(.) are allowed and may not start with underscore or dot." so people don't have to guess).

      From nexus.log as well:

      2019-05-29 19:11:34,020-0400 WARN  [qtp424672630-194] admin org.sonatype.nexus.repository.config.internal.ConfigurationFacetImpl - Validation failed; 1 constraints violated:
        1) URL should be in the format 'http://www.example.com', type: class org.sonatype.nexus.repository.config.internal.ConfigurationFacetImpl$SectionWrapper, property: attributes[proxy].remoteUrl, value: http://www.bower.org/space%20init
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            jtom Joe Tom
            Last Updated By:
            Joe Tom Joe Tom
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                tigCommentSecurity.panel-title