Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-72989

FindSecurityBugs cannot load custom configs on Windows

    Details

      Description

       "gradlew findSecurityBugs" on the latest ee-7.0.x the log is :
      
      private:apps:saml:saml-impl:compileJava UP-TO-DATE
      :private:apps:saml:saml-impl:buildCSS UP-TO-DATE
      :private:apps:saml:saml-impl:processResources UP-TO-DATE
      :private:apps:saml:saml-impl:transpileJS SKIPPED
      :private:apps:saml:saml-impl:configJSModules SKIPPED
      :private:apps:saml:saml-impl:copyLibs SKIPPED
      :private:apps:saml:saml-impl:replaceSoyTranslation UP-TO-DATE
      :private:apps:saml:saml-impl:wrapSoyAlloyTemplate SKIPPED
      :private:apps:saml:saml-impl:classes UP-TO-DATE
      :private:apps:saml:saml-impl:jar UP-TO-DATE
      :private:apps:saml:saml-impl:unzipJar
      :private:apps:saml:saml-impl:generateJSPJava UP-TO-DATE
      :private:apps:saml:saml-impl:compileJSP UP-TO-DATE
      :private:apps:saml:saml-impl:writeFindBugsProject UP-TO-DATE
      :private:apps:saml:saml-impl:findSecurityBugs
      Using Find Security Bugs version 1.6.0.LIFERAY-PATCHED-2
      Scanning archives (0 / 34) Exception in thread "main" java.lang.IllegalArgumentException: Could not add custom config. Neither file F:\portal\ee-7.0.x\modules\private\apps\saml\saml-impl\liferay-config\liferay.txt:F:\portal\ee-7.0.x\modules\private\apps\saml\saml-impl\find-security-bugs-false-positives.txt nor resource matching liferay-config/liferay.txt:F:/portal/ee-7.0.x/modules/private/apps/saml/saml-impl/find-security-bugs-false-positives.txt found.
              at com.h3xstream.findsecbugs.taintanalysis.TaintDataflowEngine.addCustomConfig(TaintDataflowEngine.java:147)
              at com.h3xstream.findsecbugs.taintanalysis.TaintDataflowEngine.<init>(TaintDataflowEngine.java:113)
              at com.h3xstream.findsecbugs.taintanalysis.EngineRegistrar.registerAnalysisEngines(EngineRegistrar.java:32)
              at edu.umd.cs.findbugs.FindBugs2.registerPluginAnalysisEngines(FindBugs2.java:633)
              at edu.umd.cs.findbugs.FindBugs2.createAnalysisCache(FindBugs2.java:594)
              at edu.umd.cs.findbugs.FindBugs2.execute(FindBugs2.java:211)
              at edu.umd.cs.findbugs.FindBugs.runMain(FindBugs.java:402)
              at edu.umd.cs.findbugs.FindBugs2.main(FindBugs2.java:1200)
      :private:apps:saml:saml-impl:findSecurityBugs FAILED
      
      FAILURE: Build failed with an exception.
      
      * What went wrong:
      Execution failed for task ':private:apps:saml:saml-impl:findSecurityBugs'.
      > Process 'command 'C:\Program Files\Java\jdk1.8.0_91\bin\java.exe'' finished with non-zero exit value 1
      
      * Try:
      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
      
      BUILD FAILED
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 31 weeks, 2 days ago

                Packages

                Version Package
                7.0.X EE
                7.1.X
                Master