cloudflare / cloudflare/developer-platform
🐛 BUG: Unable to put an object with a key containing '...' to R2
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 1
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
### 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.
Beitragsleitfaden
Rechercherichtung
Start by reproducing the reported `wrangler r2 object put` command on Linux with Wrangler 3.1.1, comparing the key containing three consecutive periods with the working key. Trace the path handling involved in the R2 upload request. Done means the original key uploads successfully through Wrangler, consistently with the R2 web interface.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- linux
- Bereich
- cli, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100