Details
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:
- Navigate to Bamboo Administration > Overview > Build Resources > Shared credentials.
- Click on Add new credentials > SSH.
- Provide a Credential name and enter the 8192-bit SSH key in the SSH key section.
- provide the SSH passphrase (if applicable)
- 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
- mentioned in
-
Page Loading...