Uploaded image for project: 'MINA SSHD'
  1. MINA SSHD
  2. SSHD-730

Relative symbolic links with .. is not resolved properly by sftp readLink

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.0, 1.2.0, 1.3.0
    • 2.0.0
    • None

    Description

      Using sftp to resolve symbolic links doesn't return proper resolution in case symbolic link contains ..
      Since version 1.1 the sendLink function of SftpSubsystem uses
      normalizedPath = SelectorUtils.normalizePath(unixPath, "/");
      to normalize path
      This function however return invalid path in case link contains ".."
      So for example if link is "../test/file" than normalizePath returns "test/file" which is invalid because in can not be resolved properly in the context of the current directory which symbolic link is referring to.

      Attachments

        Activity

          People

            gnodet Guillaume Nodet
            luky Lukas Waldmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: