nitrictech / nitric

Nitric is a multi-language framework for cloud applications with infrastructure from code.
https://nitric.io
Apache License 2.0
861 stars 43 forks source link

Broken local development bucket upload/download URLs when paths are used #601

Closed jyecusch closed 3 weeks ago

jyecusch commented 2 months ago

Bug Report

Issue

Local upload/download URLs for files in buckets don't appear to generate correctly, despite working in cloud environments.

Steps

Steps to reproduce the behavior:

  1. Add a bucket to a project
  2. Run locally
  3. Add a file with a path in its key e.g. bucket("test").file("images/example.png")
  4. Generate an upload/download URL for the file
  5. Print the URL

URL appears like http://localhost:38067/write/test/images%!!(MISSING)F(MISSING)example.png due to incorrectly attempting to encode the forward slash.

Expected

Upload/download URLs work with paths in file keys locally.

jyecusch commented 3 weeks ago

Fixed