mapillary / mapillary/OpenSfM

Wrong Flask resource paths in annotation_gui_gcp

Open
#1,047 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
3.8k
Forks
899
PR merge metrics
No merged PRs in 30d

Description

Running python3 annotation_gui_gcp/main.py /data/berlin the following content is reachable:

image

The output is:

* Serving Flask app 'main'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (::)
 * Running on http://[::1]:5000
 * Running on http://[::1]:5000
Press CTRL+C to quit
::1 - - [18/Mar/2024 09:03:42] "GET / HTTP/1.1" 200 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/mosaic.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/mosaic.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /sequence_view_1 HTTP/1.1" 200 -
::1 - - [18/Mar/2024 09:03:42] "GET /tools HTTP/1.1" 200 -
::1 - - [18/Mar/2024 09:03:42] "GET /current_cp_view HTTP/1.1" 200 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/ImageView.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/WebView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/ImageView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/ToolsView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/ToolsView.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/ImageView.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/WebView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/WebView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/ImageView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/css/ImageView.css HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/WebView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /static/js/ImageView.js HTTP/1.1" 404 -
::1 - - [18/Mar/2024 09:03:42] "GET /favicon.ico HTTP/1.1" 404 -

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with annotation_gui_gcp/main.py and run the reported command to reproduce the page. Inspect how the Flask app handles the /static/css and /static/js requests, then verify that the listed resources load without 404 responses and that the annotation GUI renders correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
flask, python
Domain
frontend, web-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.