Uploading files into Search page performs unnecessary POST
yurishkuro opened this issue · 2 comments
yurishkuro commented
To reproduce:
- run jaeger-all-in-one separately
yarn start
- Refresh screen so that Services dropdown shows all-in-one, and find & load its trace
- Export that trace to local JSON file
- Click on Search | Upload
- Open DevTools in Chrome
- click on upload icon and select saved file
- The console shows an error message
POST http://localhost:5173/ 404 (Not Found)
- The file name shows up in red and its tooltip shows an error message
- Meanwhile the file is loaded normally and shown in search results
The uploading files does not require communication with the server, it loads JSON in browser and displays the traces. However, somehow the way we're using Upload
from AntDesign is causing it to submit the file back to the server from where the UI is loaded (normally it would be jaeger query service), which is neither necessary nor safe.
tico88612 commented
@yurishkuro
I have a solution to resolve this issue. Can I work on this?
yurishkuro commented
go for it