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

Unable to post forms that exceed the 4096 bytes size limit in Bamboo

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Medium
    • 9.4.2, 9.2.8, 9.3.6
    • 9.2.7, 9.3.5, 9.4.1
    • Builds
    • None

    Description

      It is possible to reproduce this issue on various parts of the application, like for example, SSH Tasks (SSH Command), Script Tasks, Shared Credentials, etc, and any other locations that make use of forms that can exceed a 4096 bytes form size limit.

      For example, in Bamboo version 9.2.7, customers are unable to store 8192-bit SSH keys in the Shared credentials. We receive the error message "SSH Key can not be empty" while saving the key. 

      There are no issues with storing 4096 bit or lower SSH key.

      How to reproduce:

      1. Navigate to Bamboo Administration > Overview > Build Resources > Shared credentials.
      2. Click on Add new credentials > SSH.
      3. Provide a Credential name and enter the 8192-bit SSH key in the SSH key section. 
      4. provide the SSH passphrase (if applicable)
      5. Click Save credentials.

      Expectation

      Saves the 8192-bit SSH key.

      Actual

      An error message "SSH key can not be empty" can be seen on the Add new SSH credentials pop-up window.

      Workaround

      The issue is caused by an update to a third-party library Apache Struts that had imposed a hard limit on form sizes. New versions of Bamboo listed on the "Fix Version/s" field on this bug will contain an increased limit that will overcome that limitation.

      As a workaround, modify the <bamboo-install>/atlassian-bamboo/WEB-INF/classes/struts.properties file, add a line as the one below and restart Bamboo.

      # Override default string length limit of 4096, which is too short for Bamboo; set it to 10kb
      struts.multipart.maxStringLength=10240
      

       

      Attachments

        Issue Links

          Activity

            People

              mgardias Marcin Gardias
              51ca760b6006 Ayrijit Swain
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: