Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-5424

Pushing invalid branch name to fabric git breaks version-list

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • None
    • jboss-fuse-6.3
    • Fabric8 v1
    • None
    • % %
      • clone fabric git
      • git checkout -b "12/34"
      • git push origin "12/34"
      • version-list

    Description

      If you push a branch with invalid name (that does not match version name regex) directly to git (thus creating a new version in fabric), it breaks version-list (and probably more things) and you won't be able to list the versions:

      JBossFuse:karaf@root> version-list
      Error executing command: java.lang.IllegalArgumentException: Profile name '12/34' is invalid. Profile name must be: letters, numbers, and . _ or - characters
      

      The question is why would someone do that - maybe someone who is not familiar with the version name standards.

      If you think this is not worth hacking, feel free to close the issue directly.

      Attachments

        Activity

          People

            acosenti Andrea Cosentino
            avano@redhat.com Andrej Vano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: