Issue Summary
This is reproducible on Data Center: Yes
Bamboo creates an extra blank entry in the agent capabilities when bamboo-capabilities.properties saved as UTF-8 with BOM Encoding
Steps to Reproduce
- Create a bamboo-capabilities.properties
- Add a blank line in the start and save it as with 'UFT-8 with BOM 'encoding
AppOffline=app_offline.htm absServiceAccount=E:\\Bmbexe\\service\\abs\\testCompleteAccount.lk.txt MSBuildTransform=E:\\Bamboo\\xml-data\\configuration\\MSBuildTransform.xml NUnitAdapter2=E:\\Bmbexe\\UnitTestAdapters\\NUnitTestAdapter.2.0.0 TestComplete=E:\\Bmbexe\\TestExecute\ 14\\Bin\\sessioncreator.exe TestComplete64=E:\\Bmbexe\\TestExecute\ 14\\x64\\Bin\\sessioncreator.exe VisualStudioTestProgram=E:\\Bmbexe\\Microsoft\ Visual\ Studio\ 12.0\\Common7\\IDE\\CommonExtensions\\Microsoft\\TestWindow\\vstest.console.exe system.builder.nunit3.NUnitProgram3.0.0=C:\\Program\ Files (x86)\NUnit-3.0.0-beta-4\bin\nunit-console.exe system.builder.command.deployScript=E:\\Bamboo\\xml-data\\configuration\\Publish.bat system.builder.devenv.VS10\ DevEnv=E:\\Bmbexe\\Microsoft\ Visual\ Studio\ 10.0\\Common7\\IDE system.builder.nunit.NUnit\ Console=E:\\Bmbexe\\nunit264\\bin\\nunit-console.exe system.git.executable=E:\\Git\\bin\\git.exe MSBuildTransform=E:\\Bamboo\\xml-data\\configuration\\MSBuildTransform.xml system.builder.command.Git=E:\\Git\\bin\\git.exe
- Save this file in the <bamboo-agent-home>/bin
- Restart the Bamboo agent
- Monitor the Bamboo Agent capabilities screen
- You will be able to see a bank capabilities line under agent-specific capabilities
Expected Results
The blank line in the file should be ignored. Also it needs to address this other type of encoding as well.
Actual Results

Workaround
- Remove the blank line in the file and save the file
- Restart Remote Agent