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

Unable to do preview analysis when some filename contains spaces

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.5
    • Fix Version/s: 4.5.1
    • Component/s: Scanner
    • Labels:
      None

      Description

      See thread http://sonarqube.15.x6.nabble.com/Sonar-Runner-Incremental-Analysis-Error-filenames-containing-spaces-td5028914.html.

      Caused by: java.lang.IllegalArgumentException
              at java.net.URI.create(URI.java:859)
              at org.sonar.batch.bootstrap.ServerClient.doRequest(ServerClient.java:99)
              at org.sonar.batch.bootstrap.ServerClient.request(ServerClient.java:85)
              at org.sonar.batch.scan.LastSnapshots.loadSourceFromWs(LastSnapshots.java:61)
              at org.sonar.batch.scan.LastSnapshots.getSource(LastSnapshots.java:51)
              at org.sonar.plugins.core.issue.SourceHashHolder.getReferenceSource(SourceHashHolder.java:79)
              at org.sonar.plugins.core.issue.SourceHashHolder.hasBothReferenceAndCurrentSource(SourceHashHolder.java:87)
              at org.sonar.plugins.core.issue.IssueTracking.mapIssues(IssueTracking.java:82)
              at org.sonar.plugins.core.issue.IssueTracking.track(IssueTracking.java:59)
              at org.sonar.plugins.core.issue.IssueTrackingDecorator.doDecorate(IssueTrackingDecorator.java:118)
              at org.sonar.plugins.core.issue.IssueTrackingDecorator.decorate(IssueTrackingDecorator.java:100)
              at org.sonar.batch.phases.DecoratorsExecutor.executeDecorator(DecoratorsExecutor.java:91)
              ... 36 more
      Caused by: java.net.URISyntaxException: Illegal character in query at index 53: http://somewhere:9000/api/sources?resource=my:horrid:hello world.cpp&format=txt
              at java.net.URI$Parser.fail(URI.java:2825)
              at java.net.URI$Parser.checkChars(URI.java:2998)
              at java.net.URI$Parser.parseHierarchical(URI.java:3088)
              at java.net.URI$Parser.parse(URI.java:3030)
              at java.net.URI.<init>(URI.java:595)
              at java.net.URI.create(URI.java:857)
      

        Attachments

          Activity

            People

            Assignee:
            henryju OLD - Julien HENRY
            Reporter:
            henryju OLD - Julien HENRY
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: