Avoid hard-coded URLs for GIS feature markers

Bug #481589 reported by Gavin Treadgold
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahana Agasti
Won't Fix
Wishlist
Sahana RELIEF Team
Sahana RELIEF Experiments
Confirmed
Critical
Sahana RELIEF Team

Bug Description

Go to index.php?mod=admin&act=gis_database_classes

1. Enter a class name
2. When entering a Marker Link it is a requirement that a full URL e.g. including http:// is required

This could be problematic when moving a Sahana instance from one URL to another to have hard-coded URLs that will all require changing. It should also support, and encourage in preference to hard-coded URLs, the use of relative paths that start from the sahana/www/res/img/markers/

Ideally, this could be done by dragging the image into the input box, and having javascript strip the URL so that only the relative path is added. E.g.

http://192.168.1.113/sahanatides/www/res/img/markers/ersSymbolsV0202/Incidents/Fire_Forest.png
becomes
ersSymbolsV0202/Incidents/Fire_Forest.png

This would make it easier to add the images (e.g. drag and drop would be more intuitive) and also make the marker setup more robust to moving the server.

Gavin Treadgold (gt)
Changed in sahana-relief-experiments:
importance: Undecided → Medium
assignee: nobody → Sahana RELIEF Team (sahana-relief-team)
Revision history for this message
Gavin Treadgold (gt) wrote :

Bumping up to critical as hard-coded IPs (we're not using domain names) are nasty for registering marker images. Especially when there are a couple of hundred to enter ;)

Changed in sahana-relief-experiments:
importance: Medium → Critical
Changed in sahana-agasti:
status: New → Confirmed
Changed in sahana-relief-experiments:
status: New → Confirmed
Changed in sahana-agasti:
importance: Undecided → Wishlist
assignee: nobody → Sahana RELIEF Team (sahana-relief-team)
milestone: none → 0.9.0
Revision history for this message
dot dot dot (dotdotdotdeactivated-deactivatedaccount) wrote :

wont fix. module deprecated. reopen if module regains owner.

Changed in sahana-agasti:
status: Confirmed → Won't Fix
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.