Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-17059

Bamboo Variables not correctly checked before Colon

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Low Low
    • None
    • 5.10-OD-10-008
    • Docker
    • None

      Summary

      • Bamboo Variables not being properly checked before colon

      Environment

      • Bamboo Cloud

      Steps to Reproduce

      1. Access any Bamboo instance, and browse through to "Configure Plan"
      2. Create or Edit a 'Docker' Task
      3. In the Repository field, use a variable before a colon, like ${ variable }:${ variable }

      Expected Results

      • Fully accepted field configuration

      Actual Results

      • Displaying "Invalid repository name (${variable}), only [a-z, A-Z, 0-9_.-] are allowed"

      Notes

      It looks like the Repository field is checking for the special characters before the Colon without considering that a variable may be used in that place. If the Repository field does not contain a colon, it will provide an error for the variable without performing the proper variable replacements first.

      Bamboo should make sure to perform its validation of the URL after the Variables have properly replaced the value before the colon.

      Workaround

      No current workaround

        1. Bug Testing.png
          27 kB
          Justin Vela

            [BAM-17059] Bamboo Variables not correctly checked before Colon

            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2016 v1 - Restricted [ 1441267 ] New: JAC Bug Workflow v3 [ 3385173 ]
            Status Original: Resolved [ 5 ] New: Closed [ 6 ]
            Owen made changes -
            Symptom Severity Original: Minor [ 14432 ] New: Severity 3 - Minor [ 15832 ]
            Alexey Chystoprudov made changes -
            Resolution New: Duplicate [ 3 ]
            Status Original: Open [ 1 ] New: Resolved [ 5 ]
            jonah (Inactive) made changes -
            Symptom Severity New: Minor [ 14432 ]
            Owen made changes -
            Workflow Original: Bamboo Workflow 2016 v1 [ 1417009 ] New: Bamboo Workflow 2016 v1 - Restricted [ 1441267 ]
            Marek Went (Inactive) made changes -
            Workflow Original: Bamboo Workflow 2014 v2 [ 1122299 ] New: Bamboo Workflow 2016 v1 [ 1417009 ]

            This relates to resp. duplicates BAM-15861, where we have added more details on how the underlying field validation fails to properly account for variables (but still allows specific variations for variable input by chance).

            Steffen Opel [Utoolity] added a comment - This relates to resp. duplicates BAM-15861 , where we have added more details on how the underlying field validation fails to properly account for variables (but still allows specific variations for variable input by chance).
            Steffen Opel [Utoolity] made changes -
            Link New: This issue duplicates BAM-15861 [ BAM-15861 ]
            Marek Went (Inactive) made changes -
            Status Original: Needs Triage [ 10030 ] New: Open [ 1 ]
            Marek Went (Inactive) made changes -
            Component/s New: Docker [ 34096 ]

              Unassigned Unassigned
              jvela Justin Vela
              Affected customers:
              2 This affects my team
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: