cloudflare / cloudflare/developer-platform

🐛 BUG: Unable to put an object with a key containing '...' to R2

Aperta
#1 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub
product:r2
Lingua principale
Nessun dato sulla lingua
Stelle
1
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### Which Cloudflare product(s) does this pertain to?

R2

### What version of `Wrangler` are you using?

3.1.1

### What operating system are you using?

Linux

### Describe the Bug

After I exec `wrangler r2 object put 'blog/assets/_...slug_.abcd1234.css' -f ./dist/assets/_...slug_.abcd1234.css`, it returned `Failed to fetch /accounts/*/r2/buckets/*/objects/assets/_...slug_.abcd1234.css - 403: Forbidden)`.

But when I changed the key into `blog/assets/_.slug_.abcd1234.css`, which has no consecutive '.', it just uploaded without any error.

I think it could be a bug of path handling because the original file (whose key contains three consecutive '.') could be uploaded in the R2 webpage.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.