Empty tiles are not generated by Tilestream

Bug #1179518 reported by Daniele Viganò
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Platform
Won't Fix
Low
Daniele Viganò

Bug Description

When requesting a tile with empty data the Tilestream server throw an HTTP 404 error instead of serving an empty tile.

Example: http://tilestream.openquake.org/v2/hazard-map-points-world/3/3/4.png

Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

For the moment we fixed the issue intercepting the 404 error on the reverse proxy and serving an empty tile (blank png) directly from the Nginx server using proxy_intercept_errors on; and error_page 404 /blank.png;

server {
        listen 80;

        server_name tilestream.openquake.org;

        location / {
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host $host;
                proxy_pass http://127.0.0.1:8000/;
                proxy_intercept_errors on;
        }

        location ~* \.mbtiles { deny all; access_log off; log_not_found off; }

        error_page 404 /blank.png;
        location = /blank.png {
                root /var/www;
        }

        error_page 500 502 503 504 /50x.html;
        location = /50x.html {
                root /usr/share/nginx/html;
        }

}

Changed in oq-platform:
assignee: nobody → Daniele Viganò (daniele-vigano)
assignee: Daniele Viganò (daniele-vigano) → Ben Wyss (bmwyss)
assignee: Ben Wyss (bmwyss) → Daniele Viganò (daniele-vigano)
status: New → Won't Fix
status: Won't Fix → In Progress
Revision history for this message
Daniele Viganò (daniele-vigano) wrote :

Fixed server-side not a platform bug.

Changed in oq-platform:
importance: Undecided → Low
status: In Progress → Won't Fix
milestone: none → 2.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.