[openstreetmap/openstreetmap-website] Add Docker Compose Support for Development Environment (#2409)
Tobias
notifications at github.com
Sat Jan 2 20:09:32 UTC 2021
@migurski I am having trouble uploading a GPX trace. Could that be a docker issue (in the sense, that docker does not have a file system to write to or something like this?) – or do I need to look somewhere else?
**Testcase:**
- http://localhost:3000/traces/new
- Use file https://www.openstreetmap.org/trace/3460088/data (from https://www.openstreetmap.org/user/tordans/traces/3460088)
=> Upload
**Details about the error:**
<details>
```
NoMethodError in TracesController#create
undefined method `id' for nil:NilClass
108 109 110 111 112 113 | end if @trace.id flash[:notice] = t ".trace_uploaded" flash[:warning] = t ".traces_waiting", :count => current_user.traces.where(:inserted => false).count if current_user.traces.where(:inserted => false).count > 4
-- | --
Rails.root: /app
Application Trace | Framework Trace | Full Trace
app/controllers/traces_controller.rb:110:in `create'
app/controllers/application_controller.rb:333:in `better_errors_allow_inline'
config/initializers/compressed_requests.rb:27:in `call'
config/initializers/cors.rb:9:in `call'
Request
Parameters:
{"utf8"=>"✓",
"authenticity_token"=>"ObG7QWOGKxtg0N3mbIILp7lQXHaOlZba3XKgscyyEAguc5wlb5ImS6xqtnw1qPZvaYIFnCpRafNF8CcjDgu9+g==",
"trace"=>
{"gpx_file"=>
#<ActionDispatch::Http::UploadedFile:0x00007f69da1ac840
@content_type="application/octet-stream",
@headers="Content-Disposition: form-data; name=\"trace[gpx_file]\"; filename=\"3460088 (1).gpx\"\r\n" + "Content-Type: application/octet-stream\r\n",
@original_filename="3460088 (1).gpx",
@tempfile=#<File:/tmp/RackMultipart20210102-1-imhec7.gpx>>,
"description"=>"Test 123123123123",
"tagstring"=>"",
"visibility"=>"public"},
"commit"=>"Hochladen"}
```
</details>
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-753523439
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20210102/7295c35e/attachment-0001.htm>
More information about the rails-dev
mailing list