Opening a file from the command line fails when its path contains #

Offen
#8,674 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 2 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
57/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
cpp
Bereich
desktop

Rechercherichtung

The report gives a Windows command line reproduction but names no source files or tests. Start by tracing how command-line arguments become file or URL requests, then find the relevant parsing tests. Done means a path containing # opens as a local file without the URL warning or BadScheme error.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

Version and Platform (required):

  • Binary Ninja Version: 6.1.10957-dev
  • Edition: Personal
  • OS: Windows
  • OS Version: 11
  • CPU Architecture: x64

Bug Description:
When opening a file from the command line, if its path contains the # character, Binary Ninja displays the following warning:
"This item is being opened in response to url..."
After clicking Open, the following error appears:
"Download Error: BadScheme"
The file does not open.

Steps To Reproduce:

  1. Create a file at
X:\#test\open_me.exe
  1. Run the following command:
binaryninja.exe X:\#test\open_me.exe
  1. Observe the warning: "This item is being opened in response to url..."
  2. Click Open.
  3. Observe the error: "Download Error: BadScheme".

Expected Behavior:
Binary Ninja should open the specified local file normally, regardless of whether its path contains the # character.

Screenshots/Video Recording:
Not attached.

Binary:
Not applicable. The issue appears to be related to handling file paths rather than the contents of a specific binary.

Additional Information:
The issue occurs when the file path contains # and is passed as a command-line argument.

Vorherrschende Sprache
C++
Sterne
1.3k
Forks
304
Ø Merge
2 T. 20 Std.
Gemergte PRs (30 T.)
10

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus Vector35/binaryninja-api

Alle Issues in Vector35/binaryninja-api

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.