Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-37175

Template sync repo field validation of scheme should be case sensitive

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • None
    • Templates Plugin
    • False
    • Low
    • sat-endeavour
    • None
    • None
    • None
    • None

      Steps to Reproduce:

      1. In WebUI, go to Hosts -> Templates -> Sync Templates
      2. As "Repo" type in a valid value in upper case, for example: HTTPS://github.com/theforeman/community-templates.git

      Actual behavior:

      Submit button is disabled and there is a warning that "Invalid repo format, must start with one of: http://, https://, git://, ssh://, git+ssh://, ssh+git://, /"

      Expected behavior:

      Case should not impact this and it should be accepted and any other fields that check ssh/http should work with upper an lowercase (for example: http proxy should be still visible for HTTP repo and hidden for SSH repo)

      Notes:

      https://www.rfc-editor.org/rfc/rfc1738.html#section-2.1 states it should be case insensitive.

      For resiliency, programs interpreting URLs should treat upper case letters as equivalent to lower case in scheme names (e.g., allow "HTTP" as well as "http").

              Unassigned Unassigned
              magaphon@redhat.com Maria Agaphontzev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: