OpenRailAssociation / osrd

An open source web application for railway infrastructure design, capacity analysis, timetabling and simulation
https://osrd.fr
436 stars 40 forks source link

front: can't import timetable file if it doesn't have .json extension #8539

Open eckter opened 3 weeks ago

eckter commented 3 weeks ago

What happened?

image

The file is actually a valid json. I don't think this check should be done on the extension itself

In fact, we could maybe just paste json text here

What did you expect to happen?

No response

How can we reproduce it (as minimally and precisely as possible)?

Try to load a valid json file that isn't named something.json

On which environments the bug occurs?

Local

On which browser the bug occurs?

Firefox

OSRD version (top right corner Account button > Informations)

77ed9b9e027aaad67ad2b9a049675f53226e9be8

emersion commented 3 weeks ago

Hmm. In the future we want to support more formats such as XML, so I'm not sure we'd want to always assume JSON here…