Opened 11 years ago

Closed 11 years ago

#1926 closed defect (wontfix)

Railsport will successfully upload a GPX trace even if it can't write it to disk

Reported by: avar Owned by: Tom Hughes
Priority: critical Milestone:
Component: website Version:
Keywords: Cc:


# Start railsport # Don't create /home/osm # Upload GPX trace

Rails will throw an exception saying /home/osm doesn't exist, but it'll still create an entry for the trace in the database (and it'll show up on /traces).

Another exception is generated when trying to download the trace data, which of course doesn't exist in /home/osm/traces/NUM.gpx since /home/osm doesn't exist.

Change History (1)

comment:1 Changed 11 years ago by Tom Hughes

Resolution: wontfix
Status: newclosed

This is hard to avoid because we need to add the record to the database to get the ID number before we can move the file to it's final home because the ID is used in the filename.

The record will be deleted when the import daemon comes along and finds the file doesn't exist.

Note: See TracTickets for help on using tickets.