Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-9223

Properly handle case when SONAR_USER_HOME point to a symlink

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.6-M3, 6.6
    • Component/s: Scanner
    • Labels:
      None

      Description

      Caused by: java.lang.IllegalStateException: Failed to create working path: /home/jdcoffre/workspaces/temp/SUPPORT-6154/slink
      	at org.sonar.batch.bootstrap.GlobalTempFolderProvider.createTempFolder(GlobalTempFolderProvider.java:85)
      	at org.sonar.batch.bootstrap.GlobalTempFolderProvider.provide(GlobalTempFolderProvider.java:75)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.picocontainer.injectors.MethodInjector.invokeMethod(MethodInjector.java:129)
      	at org.picocontainer.injectors.MethodInjector.access$000(MethodInjector.java:39)
      	at org.picocontainer.injectors.MethodInjector$2.run(MethodInjector.java:113)
      	at org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
      	at org.picocontainer.injectors.MethodInjector.decorateComponentInstance(MethodInjector.java:120)
      	at org.picocontainer.injectors.CompositeInjector.decorateComponentInstance(CompositeInjector.java:58)
      	at org.picocontainer.injectors.Reinjector.reinject(Reinjector.java:142)
      	at org.picocontainer.injectors.ProviderAdapter.getComponentInstance(ProviderAdapter.java:96)
      	at org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
      	at org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
      	at org.sonar.core.platform.ComponentContainer$ExtendedDefaultPicoContainer.getComponent(ComponentContainer.java:67)
      	... 57 more
      Caused by: java.nio.file.FileAlreadyExistsException: /home/jdcoffre/workspaces/temp/SUPPORT-6154/slink
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:88)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      	at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
      	at java.nio.file.Files.createDirectory(Files.java:674)
      	at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
      	at java.nio.file.Files.createDirectories(Files.java:727)
      	at org.sonar.batch.bootstrap.GlobalTempFolderProvider.createTempFolder(GlobalTempFolderProvider.java:83)
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              julien.henry Julien Henry
              Reporter:
              julien.henry Julien Henry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: