Uploaded image for project: 'Sourcetree For Mac'
  1. Sourcetree For Mac
  2. SRCTREE-6995

"Log Selected" on files beginning with . results in unsupported URL format error

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 3.0.1
    • 2.7
    • Git
    • Standalone SourceTree application version 2.7 (152)

      Mac OS X 10.13.4

       

      $ javac -version
      javac 1.8.0_161

       

       

    • Severity 2 - Major

      When examining the contents of git commits, running "Log Selected..." on files with names that begin with a period results in a dialog box with the following error:

       

      Potential security issue detected in the specified URL.

      Sourcetree determined this URL is in an unsupported format.

       

      To reproduce, select a git commit that contains a file with a name beginning with a period (e.g. ".gitignore"), right-click on that file and select "Log Selected...".

      Spotted in SourceTree for Mac 2.7 (152), but this may affect other versions.

            [SRCTREE-6995] "Log Selected" on files beginning with . results in unsupported URL format error

            The fix for this issue is available in Sourcetree 4.2.4.
            You could upgrade your Sourcetree via "Check For Updates" feature or directly download it from official website.
            Thanks.

            Raman Sidarakin (Inactive) added a comment - The fix for this issue is available in Sourcetree 4.2.4. You could upgrade your Sourcetree via "Check For Updates" feature or directly download it from official website. Thanks.

            e5ebfa955192 We have fixed the issue and this will get resolved with our upcoming release. We expect you to wait for the release.

            Arati Mohanty added a comment - e5ebfa955192 We have fixed the issue and this will get resolved with our upcoming release. We expect you to wait for the release.

            Michael Duberstein added a comment - - edited

            I have the same problem on Sourcetree version 4.2.2, on MacOS Ventura 13.3.1
            Could you please bump the priority?

            Could not display history on .vscode/launch.json - very inconvenient.

            Michael Duberstein added a comment - - edited I have the same problem on Sourcetree version 4.2.2, on MacOS Ventura 13.3.1 Could you please bump the priority? Could not display history on .vscode/launch.json - very inconvenient.

            Hi aa1669076f91 We are working on this and the fix will be available soon. Kindly watch the ticket for more updates.

            Arati Mohanty added a comment - Hi aa1669076f91 We are working on this and the fix will be available soon. Kindly watch the ticket for more updates.

            Can someone finally fix this after so many years? I cannot log `.eslintrc.json`, `.vscode/settings.json`, etc.

            LONG TERM BACKLOG
            A fix for this issue is required, but planned for farther in the future. This is because it’s not as severe or pervasive as other issues.

             

            This is severe to me and my whole team. I bet we are not the only ones affected.

            Kuba Domaszewicz added a comment - Can someone finally fix this after so many years? I cannot log `.eslintrc.json`, `.vscode/settings.json`, etc. LONG TERM BACKLOG A fix for this issue is required, but planned for farther in the future. This is because it’s not as severe or pervasive as other issues.   This is severe to me and my whole team. I bet we are not the only ones affected.

            Thank you for writing to us. We understand the issue and will look into this considering the priority.

            Arati Mohanty added a comment - Thank you for writing to us. We understand the issue and will look into this considering the priority.

            There are probably other characters that are not allowed. SourceTree should be able to support any character in a filename that is supported by git.

            I would like to change my filenames to avoid this issue, but I will need to use other git software to ensure that I am doing so safely.

            Liam Hennessy added a comment - There are probably other characters that are not allowed. SourceTree should be able to support any character in a filename that is supported by git. I would like to change my filenames to avoid this issue, but I will need to use other git software to ensure that I am doing so safely.

            Liam Hennessy added a comment - - edited

            I have the same issue with a filename that starts with a dash: "-form.php" .

            SourceTree 4.2.1, macos 13.2.1, embedded git 2.37.0

            Liam Hennessy added a comment - - edited I have the same issue with a filename that starts with a dash: "-form.php" . SourceTree 4.2.1, macos 13.2.1, embedded git 2.37.0

            Keylin Wu added a comment - - edited

            "Log Selected" gives me this same error when trying to look at my  GitHub workflows files history(yml format), is it only because it is under a hidden folder or what's the problem? Is this ticket gonna be prioritized?

            Keylin Wu added a comment - - edited "Log Selected" gives me this same error when trying to look at my  GitHub workflows files history(yml format), is it only because it is under a hidden folder or what's the problem? Is this ticket gonna be prioritized?

            Still a problem for me too.

            Noel da Costa added a comment - Still a problem for me too.

              Unassigned Unassigned
              7c6a14aa73b1 Sean M. Paus
              Affected customers:
              12 This affects my team
              Watchers:
              25 Start watching this issue

                Created:
                Updated:
                Resolved: