Uploaded image for project: 'Migration Toolkit for Applications'
  1. Migration Toolkit for Applications
  2. MTA-659

[Upstream] Source repository field accepts only git urls.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • MTA 6.2.0
    • upstream
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • No

      Description of problem:

      We noticed a change in the behavior of the "Source Repository" field in the application creation wizard. Previously, it accepted standard URLs (https://github.com/ibraginsky/book-server), but now it requires a valid git URL (https://github.com/ibraginsky/book-server.git)

       

      Version-Release number of selected component (if applicable): upstream

       

      How reproducible: Always

       

      Steps to Reproduce:

      1. Open the application creation wizard
      2. Under "source repository" field, provide the following url:  https://github.com/ibraginsky/book-server
      3. See the error displayed

      Actual results:

       An error with the message "Must be a valid URL." is displayed

      Expected results:

      The field should accept not only git URLs but standard URLs as well.

       

      Additional info:

       

      I believe the problem could be related to the `standardUrlRegex` being moved from a local variable on the application-form.tsx file to a constant on a common file while keeping the `\g` modifier

       

            ibolton@redhat.com Ian Bolton
            rh-ee-abrugaro Alejandro Brugarolas
            Alejandro Brugarolas Alejandro Brugarolas
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: