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

PathResolver::relativePath(File, File) behavior is inconsistent with not normalized paths

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.0
    • Component/s: Plugin API, Scanner
    • Labels:
      None

      Description

      relativePath(aDir,new File(aDir, "level1/../aFile.txt")

      works and returns aFile.txt while

      relativePath(aDir,new File(aDir, "level1/level2/../aFile.txt")

      returns level1/level2/../aFile.txt

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Due:
                Created:
                Updated:
                Resolved: