Highlighted
Super Contributor.. eelgheez Super Contributor..
Super Contributor..
935 views

BIRTReportGenerator fails in 19.1.x

This BIRTReportGenerator failure in MacOS with Fortify 19.1.x,

 

 

10:17:27 + "/XXX/fortify/bin/BIRTReportGenerator" -format "PDF" -source "XXX.fpr" -template "OWASP Top 10" --SecurityIssueDetails -searchQuery "file:!**/*.plist file:!**/node_modules/**/* file:!**/dojo/**/* file:!**/generated/**/* file:!**/nuget.config" -output "XXX.pdf"
10:17:27 /XXX/fortify/bin/BIRTReportGenerator: line 80: /XXX/fortify/bin/../Core/private-bin/awb/eclipse/Auditworkbench.app/Contents/MacOS/eclipse: No such file or directory

 

can be worked around by running a shell script after installing Fortify (I tested only a part of this script),

 

# Fix up the 0600 permission on fortify.license
chmod 0644 "${froot}/fortify.license" || :

# Fix up the 0644 permission on eclipse
cd "${froot}"
for app in Auditworkbench CustomRulesEditor ; do
  # The 18.20 installer has symlinks from "${app}" to "Core/private-bin/awb/eclipse/${app}.app"
  # The 19.1 installer has directories "${app}.app".
  if [[ -d "${app}.app" ]] && ! [[ -L "${app}.app" ]] ; then
    # Making a symlink will result in launch failures (signal 11 
    # when starting the apps and a missing "companion shared 
    # library" for BIRT).
    #
    # This duplicates files as a work-around.
    cp -a "${app}.app" "Core/private-bin/awb/eclipse/${app}.app"
  fi
done
cd -
find "${froot}" -name eclipse -type f -exec ls -al "{}" +
find "${froot}" -name eclipse -type f -exec chmod 0755 "{}" +

 

 

 

 

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.