0.86: Opening subdirectory of directory symbolic link from thumbnails pane changes path to the target of the symlink

Bugs which have been reproduced by a second user or the developer

Moderator: Dreamer

young
Posts: 8
Joined: Mon Jan 09, 2017 5:42 am

0.86: Opening subdirectory of directory symbolic link from thumbnails pane changes path to the target of the symlink

Postby young » Sat Jun 03, 2017 3:17 am

After browsing to a directory symbolic link, opening a subdirectory from the thumbnails pane causes XnViewMP to change the current directory to the target of the symlink.

For example, create the folder structure and directory symlink from the Windows command-line:

Code: Select all

    mkdir parent
    mkdir parent\subdir
    mklink /d symlink parent


Now watch the current directory textbox as you browse:

  • Browse to the symlink directory. The current directory is: symlink.
  • Double-click subdir in the thumbnails pane. The current directory should change to symlink\subdir. However, it actually becomes parent\subdir!
  • Go back to the Folders pane and click the + to expand symlink.
  • Click on subdir in the Folders pane. The current directory is now correct: symlink\subdir

Because of the inconsistent behavior, it's very easy to end up with two copies of every image in the XnView MP database. Ratings and categories will not show up if you browse to the subdirectory using a different method.

The correct behavior is to preserve the path relative to the current directory. If the current directory is a symlink, then the subdirectory should be appended to the symlink path. XnView MP should not traverse the symlink and go to the physical directory.

This is a multiplatform bug. XnView MP has the same problem with directory symlinks on Linux.

Return to “Reproduced”

Who is online

Users browsing this forum: No registered users and 2 guests