Details

    • Type: Bug
    • Status: Reopened
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 5.4.4
    • Fix Version/s: None
    • Component/s: None

      Description

      To reproduce:
      Set up Jar Signing (https://www.jfrog.com/confluence/display/RTF/WebStart+and+Jar+Signing) for Artifactory SaaS instance and try to download a jar.

      For example

      • Run this command keytool -keystore my_keystorefilename -keypass password -storepass password -alias store_alias -genkeypair -dname "cn=cName, ou=orgUnit, o=orgName, S=IL, c=IL" -validity 10
      • In Artifactory: Go to Admin -> Security | Signing Keys, then insert the keystore that you created
      • Go to a virtual Maven repository, in Advanced tab, enable the "Key-Pair" that you created
      • Try to download a jar file from the local repo included in this virtual repo

      Result:
      The following error in artifactory.log:

      2017-07-19 09:24:02,548 [http-nio-8081-exec-1] [INFO ] (o.a.a.w.JarSigner   :65) - Executing: jarsigner -keystore /data/aolback/homes/avivb/data/tmp/work/keyalias -storepass storepass -keypass storepass -signedjar /data/aolback/homes/avivb/data/tmp/work/tosign1866096304409388788.jar.signed.jar /data/aolback/homes/avivb/data/tmp/work/tosign1866096304409388788.jar keyalias
      2017-07-19 09:24:02,569 [http-nio-8081-exec-1] [ERROR] (o.a.a.w.JarSigningInterceptor:79) - Failed to sign jar
      java.io.IOException: Cannot run program "jarsigner": error=2, No such file or directory
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[na:1.8.0_111]
      	at java.lang.Runtime.exec(Runtime.java:620) ~[na:1.8.0_111]
      	at java.lang.Runtime.exec(Runtime.java:450) ~[na:1.8.0_111]
      	at java.lang.Runtime.exec(Runtime.java:347) ~[na:1.8.0_111]
      	at org.artifactory.addon.webstart.JarSigner.sign(JarSigner.java:66) ~[artifactory-addon-webstart-5.3.3.jar:na]
      	at org.artifactory.addon.webstart.JarSigningInterceptor.signJar(JarSigningInterceptor.java:143) ~[artifactory-addon-webstart-5.3.3.jar:na]
      	at org.artifactory.addon.webstart.JarSigningInterceptor.onBeforeReturn(JarSigningInterceptor.java:77) ~[artifactory-addon-webstart-5.3.3.jar:na]
      	at org.artifactory.addon.webstart.WebstartVirtualRepo.interceptBeforeReturn(WebstartVirtualRepo.java:61) [artifactory-addon-webstart-5.3.3.jar:na]
      	at org.artifactory.repo.virtual.VirtualRepoDownloadStrategy.getInfo(VirtualRepoDownloadStrategy.java:128) [artifactory-core-5.3.3.jar:na]
      	at org.artifactory.repo.virtual.VirtualRepo.getInfo(VirtualRepo.java:397) [artifactory-core-5.3.3.jar:na]
      	at org.artifactory.engine.DownloadServiceImpl.process(DownloadServiceImpl.java:190) [artifactory-core-5.3.3.jar:na]
      	at sun.reflect.GeneratedMethodAccessor379.invoke(Unknown Source) ~[na:na]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_111]
      	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_111]
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at org.artifactory.request.aop.RequestAdvice.invoke(RequestAdvice.java:67) [artifactory-core-5.3.3.jar:na]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.1.5.RELEASE.jar:4.1.5.RELEASE]
      	at com.sun.proxy.$Proxy626.process(Unknown Source) [na:na]
      	at org.artifactory.webapp.servlet.RepoFilter.doDownload(RepoFilter.java:235) [artifactory-web-application-5.3.3.jar:na]
      	at org.artifactory.webapp.servlet.RepoFilter.execute(RepoFilter.java:160) [artifactory-web-application-5.3.3.jar:na]
      	at org.artifactory.webapp.servlet.RepoFilter.doFilter(RepoFilter.java:94) [artifactory-web-application-5.3.3.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.41]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.41]
      	at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.lambda$1(ArtifactoryAuthenticationFilterChain.java:136) [artifactory-web-application-5.3.3.jar:na]
      	at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:201) ~[spring-security-web-3.2.0.RELEASE.jar:3.2.0.RELEASE]
      	at org.artifactory.webapp.servlet.authentication.ArtifactoryBasicAuthenticationFilter.doFilter(ArtifactoryBasicAuthenticationFilter.java:84) ~[artifactory-web-application-5.3.3.jar:na]
      	at org.artifactory.webapp.servlet.authentication.ArtifactoryAuthenticationFilterChain.doFilter(ArtifactoryAuthenticationFilterChain.java:172) [artifactory-web-application-5.3.3.jar:na]
      	at org.artifactory.webapp.servlet.AccessFilter.authenticateAndExecute(AccessFilter.java:281) ~[artifactory-web-application-5.3.3.jar:na]
      	at org.artifactory.webapp.servlet.AccessFilter.doFilterInternal(AccessFilter.java:205) ~[artifactory-web-application-5.3.3.jar:na]
      	at org.artifactory.webapp.servlet.AccessFilter.doFilter(AccessFilter.java:165) ~[artifactory-web-application-5.3.3.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.41]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.41]
      	at org.artifactory.webapp.servlet.RequestFilter.doFilter(RequestFilter.java:67) ~[artifactory-web-application-5.3.3.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.41]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.41]
      	at org.springframework.session.web.http.SessionRepositoryFilter.doFilterInternal(SessionRepositoryFilter.java:164) ~[spring-session-1.2.2.RELEASE.jar:na]
      	at org.springframework.session.web.http.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:80) ~[spring-session-1.2.2.RELEASE.jar:na]
      	at org.artifactory.webapp.servlet.SessionFilter.doFilter(SessionFilter.java:62) ~[artifactory-web-application-5.3.3.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.41]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.41]
      	at org.artifactory.webapp.servlet.ArtifactoryFilter.doFilter(ArtifactoryFilter.java:116) ~[artifactory-web-application-5.3.3.jar:na]
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) [catalina.jar:8.0.41]
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) [catalina.jar:8.0.41]
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) ~[catalina.jar:8.0.41]
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94) ~[catalina.jar:8.0.41]
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) ~[catalina.jar:8.0.41]
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) ~[catalina.jar:8.0.41]
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) ~[catalina.jar:8.0.41]
      	at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:676) ~[catalina.jar:8.0.41]
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509) ~[catalina.jar:8.0.41]
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1104) ~[tomcat-coyote.jar:8.0.41]
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684) ~[tomcat-coyote.jar:8.0.41]
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1524) ~[tomcat-coyote.jar:8.0.41]
      	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1480) ~[tomcat-coyote.jar:8.0.41]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_111]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_111]
      	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-util.jar:8.0.41]
      	at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_111]
      Caused by: java.io.IOException: error=2, No such file or directory
      	at java.lang.UNIXProcess.forkAndExec(Native Method) ~[na:1.8.0_111]
      	at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) ~[na:1.8.0_111]
      	at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[na:1.8.0_111]
      	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[na:1.8.0_111]
      	... 60 common frames omitted
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tamirh Tamir Hadad
                Reporter:
                avivb Aviv Blonder
                Assigned QA:
                Andrey Tashlitsky
                Support Rep(s):
                Aviv Blonder
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 days
                  3d
                  Remaining:
                  Remaining Estimate - 3 days
                  3d
                  Logged:
                  Time Spent - Not Specified
                  Not Specified