Uploaded image for project: 'Crucible'
  1. Crucible
  2. CRUC-8359

file:/// protocol is broken

    XMLWordPrintable

Details

    Description

      Summary

      The file:// that being used as protocol to access the repositories in the local machine is causing connection issue and also delay in running the commands against repositories.

      Step to reproduce

      Scenario 01

      The repository is hosted in the D drive while the Fisheye Crucible instance is installed in the C drive.

      1. Add the repository with file:/// protocol.
      2. Test the connection and this resulted in a delay of 25 - 30 seconds before the Connection Success message:
      3. Complete the steps on adding the repository.
      4. View the progress at the repository Summary:

        Delay is observer thru out.
      Scenario 02

      The repository is hosted in the C drive while the Fisheye Crucible instance is installed in the C drive as well.

      1. Add the repository with file:/// protocol.
      2. Test the connection and this resulted in connection failure:
      3. Connection failed regardless.

      Expected Results
      Repositories to index faster as required. Repositories connection not to fail.

      Actual Results

      Scenario 01

      The following delay can be seen:

      2018-11-26 03:35:22,794 DEBUG [SvnExecution4 svn_proj_test_01 ] fisheye SvnTask$1-run - Executing (InitPing1 svn_proj_test_01) svn info -r HEAD file:///D:/svn_project/@HEAD
      2018-11-26 03:35:30,710 DEBUG [Resource Monitor ] fisheye SystemResourceMonitor$MonitoringTask-run - tc=123, ofd=-1, mfd=-1, fm=256996408, tm=530579456
      2018-11-26 03:35:31,711 DEBUG [Resource Monitor ] fisheye SystemResourceMonitor$MonitoringTask-run - tc=124, ofd=-1, mfd=-1, fm=256863144, tm=530579456
      2018-11-26 03:35:32,121 DEBUG [notificationManager1 ] fisheye DefaultNotificationSender-lambda$sendNotifications$0 - Processing notifications
      2018-11-26 03:35:47,127 DEBUG [notificationManager1 ] fisheye DefaultNotificationSender-lambda$sendNotifications$0 - Processing notifications
      2018-11-26 03:35:47,153 DEBUG [SvnExecution4 svn_proj_test_01 ] fisheye SvnTask$1-run - Executing (InitPing1 svn_proj_test_01) svn log --stop-on-copy -r 1:HEAD file:///D:/svn_project/@HEAD
      2018-11-26 03:36:02,130 DEBUG [notificationManager1 ] fisheye DefaultNotificationSender-lambda$sendNotifications$0 - Processing notifications
      
      Scenario 02

      The following trace is seen:

      2018-11-26 03:36:12,840 DEBUG [SvnExecution5 testing ] fisheye SvnTask$1-run - Executing (qtp993370665-247) svn info -r HEAD file:///C:/Users/Administrator/Desktop/svn_project/@HEAD
      2018-11-26 03:36:12,853 WARN  [qtp993370665-247 ection-1543232172822] fisheye SvnRepositoryTester-getServerRootURL - Unable to get info for the repository root for svn_proj_test_02
      com.cenqua.fisheye.rep.RepositoryClientException: java.lang.IllegalStateException: Can't overwrite cause with org.tmatesoft.svn.core.SVNException: svn: E180001: Unable to open repository 'file:///C:/Users/Administrator/Desktop/svn_project'
          svn: E180001: Unable to connect to a repository at URL 'file:///C:/Users/Administrator/Desktop/svn_project'
          svn: E180001: Unable to open repository 'file:///C:/Users/Administrator/Desktop/svn_project'
      	at com.cenqua.fisheye.svn.SvnThrottledClient.executeNoThrottle(SvnThrottledClient.java:189) [fisheye.jar:?]
      	at com.cenqua.fisheye.svn.SvnThrottledClient.execute(SvnThrottledClient.java:158) [fisheye.jar:?]
      	at com.cenqua.fisheye.svn.SvnThrottledClient.info(SvnThrottledClient.java:110) [fisheye.jar:?]
      	at com.cenqua.fisheye.svn.SvnRepositoryTester.getServerRootURL(SvnRepositoryTester.java:91) [fisheye.jar:?]
      	at com.cenqua.fisheye.svn.SvnRepositoryTester.checkRepoSettings(SvnRepositoryTester.java:74) [fisheye.jar:?]
      	at com.cenqua.fisheye.svn.SvnRepositoryTester.testConnection(SvnRepositoryTester.java:67) [fisheye.jar:?]
      	at com.cenqua.fisheye.svn.SvnScmConfig.testConnection(SvnScmConfig.java:166) [fisheye.jar:?]
      	at com.cenqua.fisheye.RepositoryConfig.testConnection(RepositoryConfig.java:390) [fisheye.jar:?]
      	at com.atlassian.fisheye.spi.admin.impl.DefaultRepositoryAdminService.testConnectionFor(DefaultRepositoryAdminService.java:964) [fisheye.jar:?]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [?:1.8.0_102]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [?:1.8.0_102]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_102]
      	at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_102]
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at com.cenqua.crucible.hibernate.WithSessionAspect.doCloseSession(WithSessionAspect.java:56) [fisheye.jar:?]
      	at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source) [?:?]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.8.0_102]
      	at java.lang.reflect.Method.invoke(Method.java:498) [?:1.8.0_102]
      	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:68) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:168) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) [spring-aop-4.0.9.RELEASE.jar:4.0.9.RELEASE]
      	at com.sun.proxy.$Proxy111.testConnectionFor(Unknown Source) [?:?]
      Caused by: java.lang.IllegalStateException: Can't overwrite cause with org.tmatesoft.svn.core.SVNException: svn: E180001: Unable to open repository 'file:///C:/Users/Administrator/Desktop/svn_project'
          svn: E180001: Unable to connect to a repository at URL 'file:///C:/Users/Administrator/Desktop/svn_project'
          svn: E180001: Unable to open repository 'file:///C:/Users/Administrator/Desktop/svn_project'
      	at java.lang.Throwable.initCause(Throwable.java:457) [?:1.8.0_102]
      	at org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1536) [svnkit-javahl16-1.9.0-r10609-atlassian-hosted.jar:?]
      	at org.tmatesoft.svn.core.javahl17.SVNClientImpl.info(SVNClientImpl.java:1734) [svnkit-javahl16-1.9.0-r10609-atlassian-hosted.jar:?]
      	at org.tmatesoft.svn.core.javahl17.SVNClientImpl.info2(SVNClientImpl.java:1710) [svnkit-javahl16-1.9.0-r10609-atlassian-hosted.jar:?]
      	at org.apache.subversion.javahl.SVNClient.info2(SVNClient.java:307) [svnkit-javahl16-1.9.0-r10609-atlassian-hosted.jar:?]
      	at com.cenqua.fisheye.svn.SvnThrottledClient$1.call(SvnThrottledClient.java:116) [fisheye.jar:?]
      	at com.cenqua.fisheye.svn.SvnThrottledClient$1.call(SvnThrottledClient.java:111) [fisheye.jar:?]
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_102]
      	at com.cenqua.fisheye.svn.SvnTask.access$101(SvnTask.java:13) [fisheye.jar:?]
      	at com.cenqua.fisheye.svn.SvnTask$1.run(SvnTask.java:35) [fisheye.jar:?]
      	at com.cenqua.fisheye.util.NamedExecution.run(NamedExecution.java:27) [fisheye.jar:?]
      	at com.cenqua.fisheye.svn.SvnTask.run(SvnTask.java:30) [fisheye.jar:?]
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_102]
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_102]
      	... 1 more
      Caused by: org.apache.subversion.javahl.ClientException: svn: E180001: Unable to open repository 'file:///C:/Users/Administrator/Desktop/svn_project'
          svn: E180001: Unable to connect to a repository at URL 'file:///C:/Users/Administrator/Desktop/svn_project'
          svn: E180001: Unable to open repository 'file:///C:/Users/Administrator/Desktop/svn_project'
      	at org.apache.subversion.javahl.ClientException.fromException(ClientException.java:117) [svnkit-javahl16-1.9.0-r10609-atlassian-hosted.jar:?]
      	at org.tmatesoft.svn.core.javahl17.SVNClientImpl.getClientException(SVNClientImpl.java:1535) [svnkit-javahl16-1.9.0-r10609-atlassian-hosted.jar:?]
      	... 13 more
      

      Workaround

      Use the HTTP/HTTPS protocol instead of FILE protocol.

      Attachments

        1. atlassian-fisheye-2018-11-26.log
          1.32 MB
        2. test-connection.png
          test-connection.png
          22 kB
        3. test-connection-2.png
          test-connection-2.png
          61 kB
        4. time-delay.png
          time-delay.png
          56 kB

        Activity

          People

            Unassigned Unassigned
            bannamalai Baskar Annamalai (Inactive)
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: