Uploaded image for project: 'Picard'
  1. Picard
  2. PICARD-3041

Open Containing Folder doesn't work if the path has grave (é or á) in it, over sshfs

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 2.13.3
    • User Interface
    • None
    • macos 14.4

      i reliably can't use the right click menu Open Containing Folder on these folders:

      damonbreeden@MacBook-Pro ~ % ls -lhd Media/Music/Béla\ Fleck* Media/Music/AJ\ Dávila/
      drwxrwxrwx  1 damonbreeden  staff    22B Apr 25  2020 Media/Music/AJ Dávila/drwxrwxrwx  1 damonbreeden  staff   354B Oct 18  2023 Media/Music/Béla Fleckdrwxrwxrwx  1 damonbreeden  staff    32B May 30  2021 Media/Music/Béla Fleck & The Flecktones

      I can browse them just fine in Finder or terminal

      However, this folder is an sshfs mount

      If I add the folders from the local filesystem, it works just fine

      So probably smth to do with macFUSE and the way that Picard calls the folder

      local env:

      damonbreeden@MacBook-Pro ~ % system_profiler SPSoftwareDataType -detailLevel mini
      Software:
      System Software Overview:
      System Version: macOS 14.4 (23E214)
      Kernel Version: Darwin 23.4.0
      Time since boot: 3 days, 3 hours, 5 minutes
      remote env:
      ubuntu@raspberrypi:~$ lsb_release -a
      No LSB modules are available.
      Distributor ID:    Ubuntu
      Description:    Ubuntu 22.04.3 LTS
      Release:    22.04
      Codename:    jammy
      

       

          [PICARD-3041] Open Containing Folder doesn't work if the path has grave (é or á) in it, over sshfs

          Thanks for the log. I forgot to mention to enable "Debug" output in the lower left in the Options > View Error/Debug Log dialog. With the current log I only see the path Picard was using when it failed. But I'm also very interested in seeing the success case, when Picard can actually properly read the file.

          Also just to summarize if I got the behavior right:

          1. Drag'n'drop immediately shows the file as error (with the "No such file or directory error")
          2. "Add folder" will load the file

          What I'm unsure about is whether "Open containing" folder only fails in the first case, or also in second. Also, does saving work in second case?

          Philipp Wolfer added a comment - Thanks for the log. I forgot to mention to enable "Debug" output in the lower left in the Options > View Error/Debug Log dialog. With the current log I only see the path Picard was using when it failed. But I'm also very interested in seeing the success case, when Picard can actually properly read the file. Also just to summarize if I got the behavior right: Drag'n'drop immediately shows the file as error (with the "No such file or directory error") "Add folder" will load the file What I'm unsure about is whether "Open containing" folder only fails in the first case, or also in second. Also, does saving work in second case?

          volvo64 added a comment - - edited

          here's a debug log from drag n drop, then add files with add Folder button, then drag n drop 2x more times

          https://www.dropbox.com/scl/fi/n2mup6pbtx0nqtqjk24n1/picard_add_files_debug_log?rlkey=ga4ehgdssbqzo6o3vkhwmkrt3&dl=0

          edit: i accidentally quit and reopened picard, which cleared my workspace
          so i just updated the log with only this folder added (first by drag n drop, then by add folder button)
           

          the file in question is track 8, which even my shell has trouble parsing

           ```
          damonbreeden@MacBook-Pro The Resistance % ls -lhA
          total 269768
          -rwxrwxrwx 1 damonbreeden staff 12M Jan 21 2011 01 Uprising.m4a
          -rwxrwxrwx 1 damonbreeden staff 14M Jan 21 2011 02 Resistance.m4a
          -rwxrwxrwx 1 damonbreeden staff 9.3M Jan 21 2011 03 Undisclosed Desires.m4a
          -rwxrwxrwx 1 damonbreeden staff 14M Jan 21 2011 04 United States Of Eurasia _ Collateral Damage.m4a
          -rwxrwxrwx 1 damonbreeden staff 10M Jan 21 2011 05 Guiding Light.m4a
          -rwxrwxrwx 1 damonbreeden staff 17M Jan 21 2011 06 Unnatural Selection.m4a
          -rwxrwxrwx 1 damonbreeden staff 10M Jan 21 2011 07 MK Ultra.m4a
          -rwxrwxrwx 1 damonbreeden staff 14M Jan 21 2011 08 I Belong To You _ Mon Cœur S'ouvre À Ta Voix.m4a
          -rwxrwxrwx 1 damonbreeden staff 11M Jan 21 2011 09 Exogenesis_ Symphony, Part 1_ Overture.m4a
          -rwxrwxrwx 1 damonbreeden staff 9.4M Jan 21 2011 10 Exogenesis_ Symphony, Part 2_ Cross-Pollination.m4a
          -rwxrwxrwx 1 damonbreeden staff 11M Jan 21 2011 11 Exogenesis_ Symphony, Part 3_ Redemption.m4a
          -rwxrwxrwx 1 damonbreeden staff 42K Oct 18 2017 Folder.jpg
          -rwxrwxrwx 1 damonbreeden staff 1.7K May 10 2020 album.nfo
          damonbreeden@MacBook-Pro The Resistance %
          ```

          volvo64 added a comment - - edited here's a debug log from drag n drop, then add files with add Folder button, then drag n drop 2x more times https://www.dropbox.com/scl/fi/n2mup6pbtx0nqtqjk24n1/picard_add_files_debug_log?rlkey=ga4ehgdssbqzo6o3vkhwmkrt3&dl=0 edit: i accidentally quit and reopened picard, which cleared my workspace so i just updated the log with only this folder added (first by drag n drop, then by add folder button)   the file in question is track 8, which even my shell has trouble parsing  ``` damonbreeden@MacBook-Pro The Resistance % ls -lhA total 269768 -rwxrwxrwx 1 damonbreeden staff 12M Jan 21 2011 01 Uprising.m4a -rwxrwxrwx 1 damonbreeden staff 14M Jan 21 2011 02 Resistance.m4a -rwxrwxrwx 1 damonbreeden staff 9.3M Jan 21 2011 03 Undisclosed Desires.m4a -rwxrwxrwx 1 damonbreeden staff 14M Jan 21 2011 04 United States Of Eurasia _ Collateral Damage.m4a -rwxrwxrwx 1 damonbreeden staff 10M Jan 21 2011 05 Guiding Light.m4a -rwxrwxrwx 1 damonbreeden staff 17M Jan 21 2011 06 Unnatural Selection.m4a -rwxrwxrwx 1 damonbreeden staff 10M Jan 21 2011 07 MK Ultra.m4a -rwxrwxrwx 1 damonbreeden staff 14M Jan 21 2011 08 I Belong To You _ Mon Cœur S'ouvre À Ta Voix.m4a -rwxrwxrwx 1 damonbreeden staff 11M Jan 21 2011 09 Exogenesis_ Symphony, Part 1_ Overture.m4a -rwxrwxrwx 1 damonbreeden staff 9.4M Jan 21 2011 10 Exogenesis_ Symphony, Part 2_ Cross-Pollination.m4a -rwxrwxrwx 1 damonbreeden staff 11M Jan 21 2011 11 Exogenesis_ Symphony, Part 3_ Redemption.m4a -rwxrwxrwx 1 damonbreeden staff 42K Oct 18 2017 Folder.jpg -rwxrwxrwx 1 damonbreeden staff 1.7K May 10 2020 album.nfo damonbreeden@MacBook-Pro The Resistance % ```

          volvo64 added a comment -

          For my full understanding: So either /Users/damonbreeden/Media or
          /Users/damonbreeden/Media/Music are mounted using sshfs, right? I have
          never done this on macOS. How can I try to mimic your setup? Do I need
          to install fuse for macOS? Any special mount options to consider?

          `sshfs` is installed using the two packages from https://macfuse.github.io/
          my personal sshfs cmdline is `sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 r:Media ~/Media`
          where `r` is an alias in my `.ssh/config`

          as for debug logs, i'll work on that, hopefully this weekend

          volvo64 added a comment - For my full understanding: So either /Users/damonbreeden/Media or /Users/damonbreeden/Media/Music are mounted using sshfs, right? I have never done this on macOS. How can I try to mimic your setup? Do I need to install fuse for macOS? Any special mount options to consider? `sshfs` is installed using the two packages from https://macfuse.github.io/ my personal sshfs cmdline is `sshfs -o reconnect,ServerAliveInterval=15,ServerAliveCountMax=3 r:Media ~/Media` where `r` is an alias in my `.ssh/config` as for debug logs, i'll work on that, hopefully this weekend

          Thanks a lot for the screencast. This is very interesting. Specifically as superificially the path to the file in both cases is the same. There is clearly something going wrong when encoding file paths, which is supposed to handle the local filesystem encoding.

          We have a couple of more tickets reported with encoding issues, I think this needs some general review.

          For my full understanding: So either /Users/damonbreeden/Media or /Users/damonbreeden/Media/Music are mounted using sshfs, right? I have never done this on macOS. How can I try to mimic your setup? Do I need to install fuse for macOS? Any special mount options to consider?

          Can you also please enable debug logging in Help > View Erro/Debug log. Then with debug logging enabled both load the file once with direct drag and drop, where it causes the file not found error, and also with adding the folder, where it shows up. Then share the log here.

           

          Philipp Wolfer added a comment - Thanks a lot for the screencast. This is very interesting. Specifically as superificially the path to the file in both cases is the same. There is clearly something going wrong when encoding file paths, which is supposed to handle the local filesystem encoding. We have a couple of more tickets reported with encoding issues, I think this needs some general review. For my full understanding: So either /Users/damonbreeden/Media or /Users/damonbreeden/Media/Music are mounted using sshfs, right? I have never done this on macOS. How can I try to mimic your setup? Do I need to install fuse for macOS? Any special mount options to consider? Can you also please enable debug logging in Help > View Erro/Debug log. Then with debug logging enabled both load the file once with direct drag and drop, where it causes the file not found error, and also with adding the folder, where it shows up. Then share the log here.  

          volvo64 added a comment -

          > Also how did you add the files to Picard? The way the files are open can make a difference in how the path is passed to Picard.

          this is interesting
          first, i added the entire media folder using the Open Folder button, and it added these files with special chars
          as I'm going through, if I drag n drop a file from finder to picard, it says there is no file
          i think that i was confused on that when i added my last comment, because it didn't show up

          here's a screen recording of the drag n drop behavior: https://www.dropbox.com/scl/fi/fjllpmgbt48w1g4adf3e8/Screen-Recording-2025-03-13-at-3.23.53-PM.mov?rlkey=p15ju2bveo4y4e098vuqqore5&dl=0

          volvo64 added a comment - > Also how did you add the files to Picard? The way the files are open can make a difference in how the path is passed to Picard. this is interesting first, i added the entire media folder using the Open Folder button, and it added these files with special chars as I'm going through, if I drag n drop a file from finder to picard, it says there is no file i think that i was confused on that when i added my last comment, because it didn't show up here's a screen recording of the drag n drop behavior: https://www.dropbox.com/scl/fi/fjllpmgbt48w1g4adf3e8/Screen-Recording-2025-03-13-at-3.23.53-PM.mov?rlkey=p15ju2bveo4y4e098vuqqore5&dl=0

          Generally it would be interesting to compare the (full) path Picard has to the file and the full path used by Finder.

          Also how did you add the files to Picard? The way the files are open can make a difference in how the path is passed to Picard.

          Philipp Wolfer added a comment - Generally it would be interesting to compare the (full) path Picard has to the file and the full path used by Finder. Also how did you add the files to Picard? The way the files are open can make a difference in how the path is passed to Picard.

          volvo64 added a comment -

          hi, there is no path shown, here's another example with Café in the filename

          volvo64 added a comment - hi, there is no path shown, here's another example with Café in the filename

          What path is shown for the files inside Picard? Picard just tries to open the file manager with the path to the file. It is up to the file manager to handle the path.

          Philipp Wolfer added a comment - What path is shown for the files inside Picard? Picard just tries to open the file manager with the path to the file. It is up to the file manager to handle the path.

            Unassigned Unassigned
            volvo64 volvo64
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                Version Package