Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-9808

Server name cannot start with a digit

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 4.2.2, 4.7.1
    • Fix Version/s: 4.7.5
    • Component/s: Web UI
    • Labels:
      None

      Description

      Artifactory does not allow to save a server name starting with a number in 4.x. - This was allowed in 3.x.

      Steps to reproduce:

      1. Go to the Artifactory UI --> Admin --> Configuration --> General
      2. Try to enter a name starting with digits - you will be prompted with:

      "Name cannot be blank or contain spaces & special characters"

      Important point to mention:

      Deploying a config descriptor using the REST API with a server name starting numericly, will deploy and apply successfully.

      This used to be allowed in 3.x.

      Considerations:

      RFC 1123 - Relaxes a constraint of RFC 952 which specifies a legacy of the Hostname Server Protocol (described in RFC 953) replaced by DNS. So a fully numeric hostname would be valid per these RFCs.

      RFC 1178 - Provides guidelines to choose a valid hostname because of implementations issues. A lot of these implementations don't recognize numeric hostnames well and try to parse them as if they were IPs until they contain at least one non-numeric character no matter the location.

      However: There are well-known web-sites starting (or even only containing) numbers:

      http://9292.nl/

      Taken from:

      http://serverfault.com/questions/638260/is-it-valid-for-a-hostname-to-start-with-a-digit

        Attachments

          Activity

            People

            Assignee:
            dannyr Danny Reiser (Inactive)
            Reporter:
            andreik Andrei Komarov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: