Unable to download file with %20 in the name anymore

Aperta
#1,836 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Tranquilla
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

Start by tracing FtpClient.DownloadBytes to SanitizerModule.SanitizePath and check how the %20 sequence in a filename is handled; compare the behavior with version 53.0.2 if needed. The issue gives no file or test path, so locate the relevant download tests and add coverage for a filename containing %20. Done when the file can be downloaded without the reference being changed to a space.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

faq incorrect usage question security

In the last version of FluentFTP (version 54.1.2), it is no longer possible to download a file using the FtpClient.DownloadBytes method if the file name contains the string ‘%20’.
When the DownloadBytes method is executed, the SanitizerModule.SanitizePath method is called internally: this converts the string to a space, corrupting the file reference, so that it no longer matches the file on disk.
It was possible to work with files with this type of name at least up to version 53.0.2, where sanitisation was not present.

Lingua principale
C#
Stelle
3.4k
Fork
684
Merge medio
3g 11h
PR unite (30g)
4

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di robinrodricks/FluentFTP

Tutte le issue di robinrodricks/FluentFTP

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.