Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..
357 views

BIRTReportGenerator: Bad substitution in SCA 20.1.0 with SSC 20.1.0

Jump to solution

Hi,

After upgrading to SCA 20.1.0, the BIRTReportGenerator runs into Bad substitution error when trying to run the script file.

Please help and assist, when we revert to SCA 19.2.0 versions there is no such error. The error occurs at line 56 if it does help.

We are using a Ubuntu Beaver 18.04 LTS.

0 Likes
1 Solution

Accepted Solutions
Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Workaround: The quick fix we found was to either

1. run `bash BIRTReportGenerator`

or 

edit the BIRTReportGenerator and change the shebang to `#!/bin/bash`

View solution in original post

Tags (1)
0 Likes
3 Replies
Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Workaround: The quick fix we found was to either

1. run `bash BIRTReportGenerator`

or 

edit the BIRTReportGenerator and change the shebang to `#!/bin/bash`

View solution in original post

Tags (1)
0 Likes
Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Hi, the above method still doesnt work.

The bash command does not allow the script to take in parameters, even after modifying the shebang. 

Please advise!

0 Likes
Highlighted
Trusted Contributor.. Trusted Contributor..
Trusted Contributor..

Solution provided by Fortify R&D Team:
They identified this is a bug of version 20.1 and will be fixed in release 20.2.
Below is a workaround for this issue:
-----------------
Modify /opt/Fortify/Fortify_SCA_and_Apps_20.1.0/bin/BIRTReportGenerator

1. Comment out the following

for param in "$@"
do
if [ "$param" = "$DEBUG" ]; then
PARAMS="${PARAMS} -Dcom.fortify.Debug=true"
fi
PARAMS="${PARAMS} ${param} "
done
PARAMS="${PARAMS:1}


2. At the following line, change "$PARAMS" to "$@"
From :
"${FORTIFY_CORE}/private-bin/awb/eclipse/eclipse" -vm "${JAVA_CMD}" -name "Fortify Report Generation" -noSplash --launcher.suppressErrors -startup "${FORTIFY_CORE}/lib/awb-startup-20.1.0.0158.jar" -productType BIRT- -application com.hp.fortify.birt.report.generator.console.Application "$PARAMS" -consoleLog -vmargs -Dcom.fortify.InstallRoot="${INSTALL_ROOT}" -Xmx1500M

To :
"${FORTIFY_CORE}/private-bin/awb/eclipse/eclipse" -vm "${JAVA_CMD}" -name "Fortify Report Generation" -noSplash --launcher.suppressErrors -startup "${FORTIFY_CORE}/lib/awb-startup-20.1.0.0158.jar" -productType BIRT- -application com.hp.fortify.birt.report.generator.console.Application "$@" -consoleLog -vmargs -Dcom.fortify.InstallRoot="${INSTALL_ROOT}" -Xmx1500M

3. Save the BIRTReportGenerator file
4. Run the report
-------------

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.