<p></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/migurski/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/migurski">@migurski</a> 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?</p>
<p><strong>Testcase:</strong></p>
<ul>
<li><a href="http://localhost:3000/traces/new" rel="nofollow">http://localhost:3000/traces/new</a></li>
<li>Use file <a href="https://www.openstreetmap.org/trace/3460088/data" rel="nofollow">https://www.openstreetmap.org/trace/3460088/data</a> (from <a href="https://www.openstreetmap.org/user/tordans/traces/3460088" rel="nofollow">https://www.openstreetmap.org/user/tordans/traces/3460088</a>)<br>
=> Upload</li>
</ul>
<p><strong>Details about the error:</strong></p>
<details>
<pre><code>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"}
</code></pre>
</details>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-753523439">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOC7SI5S345BWKAGZLSX54PZANCNFSM4JDURRXA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAK2OLKYDZ4NRTOI4V5BD6TSX54PZA5CNFSM4JDURRXKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFTU5V3Y.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-753523439",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2409#issuecomment-753523439",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>