View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
13873Bug reportsSurvey takingpublic2019-04-02 16:40
Reporterlalato Assigned ToDenisChenu  
PrioritynoneSeveritycrash 
Status closedResolutionduplicate 
Product Version3.13.x 
Fixed in Version3.17.x 
Summary13873: When using the short free text with map, the search box doesn't show for users
Description

I created a short free text question and included OpenStreetMap. When I preview the question in any browser the map shows up as expected, but the search box doesn't always show. Sometimes it will show in Safari, but it never shows for me in Firefox or Chrome. Here's a link to a single question survey that has the problem...

https://rollerderbycensus.com/rdc/index.php/424522?lang=en

TagsNo tags attached.
Attached Files
Bug heat4
Complete LimeSurvey version number (& build)3.13.2+180709
I will donate to the project if issue is resolvedYes
BrowserSafari/Firefox/Chrome on MAC
Database type & versionmysqlnd 5.0.11-dev - 20120503
Server OS (if known)Centos
Webserver software & version (if known)Apache/2.4.33 (cPanel) OpenSSL/1.0.2o mod_bwlimited/1.4
PHP Version5.6.36

Relationships

duplicate of 12082 closedDenisChenu SSL and map question type with leaflet 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2018-07-12 19:29

developer   ~48502

Last edited: 2018-07-12 19:29

Precision : seems to be a macintosh only issue .

Forum related discussion : https://www.limesurvey.org/forum/design-issues/115880-map-search-box-not-showing#171225

lalato

lalato

2019-03-02 22:53

reporter   ~50743

This is not a macintosh issue. It is an issue with using HTTPS. Is there any reason why we can't do this with HTTPS?

DenisChenu

DenisChenu

2019-03-03 12:06

developer   ~50745

Yes : because https://github.com/LimeSurvey/LimeSurvey/blob/6a2ce5888be099f48da9452ef7cc85e150dd8265/assets/scripts/map.js#L225
Then any modern browser disable ajax loading in http if you are on https (security). showing search box in this condition is broken.

Must move to another API, but take time …

lalato

lalato

2019-03-05 08:00

reporter   ~50762

Would it be just a matter of replacing api.geonames.org with secure.geonames.org? I believe this is the version which supports https.

DenisChenu

DenisChenu

2019-03-05 08:51

developer   ~50765

Last time i look secure need a Premium Data Subscription
You can test without to see if it work now

lalato

lalato

2019-03-23 01:47

reporter   ~51103

I tested it out, and it works.

   console.ls.log(window.location.protocol);
    // if(window.location.protocol=='https:'){
        // Currently api.geonames.org are unsecure (ssl for api.geonames.net)
       // $("#searchbox_"+name).parent().remove();
    // }
    $("#searchbox_"+name).autocomplete({
        serviceUrl : "//secure.geonames.org/searchJSON",
example_mapsearch.png (377,225 bytes)
DenisChenu

DenisChenu

2019-04-01 11:57

developer   ~51239

https://github.com/LimeSurvey/LimeSurvey/commit/19300299d1f7b2b3f6275262b3b2eeb861194ccc

Issue History

Date Modified Username Field Change
2018-07-12 18:48 lalato New Issue
2018-07-12 19:29 DenisChenu Note Added: 48502
2018-07-12 19:29 DenisChenu Browser Safari/Firefox/Chrome => Safari/Firefox/Chrome on MAC
2018-07-12 19:29 DenisChenu Note Edited: 48502
2018-08-07 10:30 LouisGac Assigned To => markusfluer
2018-08-07 10:30 LouisGac Status new => assigned
2018-08-07 10:45 markusfluer Relationship added duplicate of 12082
2019-03-02 22:53 lalato Note Added: 50743
2019-03-03 12:06 DenisChenu Note Added: 50745
2019-03-05 08:00 lalato Note Added: 50762
2019-03-05 08:51 DenisChenu Note Added: 50765
2019-03-23 01:47 lalato File Added: example_mapsearch.png
2019-03-23 01:47 lalato Note Added: 51103
2019-03-23 09:06 DenisChenu Assigned To markusfluer => DenisChenu
2019-04-01 11:57 DenisChenu Status assigned => resolved
2019-04-01 11:57 DenisChenu Resolution open => duplicate
2019-04-01 11:57 DenisChenu Note Added: 51239
2019-04-02 16:40 ollehar Status resolved => closed
2019-04-02 16:40 ollehar Fixed in Version => 3.17.x