tracker issue : CF-3757675

select a category, or use search below
(searches all categories and all time range)
Title:

[ANeff] Bug for: cfmap requires /CFIDE

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Aaron Neff / Aaron Neff (Aaron Neff)

Created: 05/08/2014

Components: AJAX, UI Components

Versions: 11.0

Failure Type: Incorrect w/Workaround

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Win All

Vote Count: 1

Listed in the version 11.0.03.292480 Issues Fixed doc
CF hardcodes /CFIDE in script src path to mapiconmaker.js. This breaks some map functionality when implementing the Lockdown Guide.

Steps to Reproduce:
(this example shows that zoom-to-show-user becomes broken)

1) Per lockdown guide, remove /CFIDE
2) In CF Admin, set "Default ScriptSrc Directory" to /foobar/
3) Run this code (and allow browser to access your location):

<cfmap centeraddress="Newton, Massachusetts" zoomlevel="15">
<cfmapitem address="Newton, Massachusetts" showuser="yes">
</cfmap>

4) See map does not zoom-to-show-user (bad) (it shows Newton, Massachusetts but does not show your location).
5) View browser source

Expected result: <script type="text/javascript" src="/foobar/scripts/ajax/ext/map/mapiconmaker.js"></script>
Actual result: <script type="text/javascript" src="/CFIDE/scripts/ajax/ext/map/mapiconmaker.js"></script>

6) Run this code (and allow browser to access your location):

<script type="text/javascript" src="/foobar/ajax/ext/map/mapiconmaker.js"></script>
<cfmap centeraddress="Newton, Massachusetts" zoomlevel="15">
<cfmapitem address="Newton, Massachusetts" showuser="yes">
</cfmap>

7) See map does zoom-to-show-user (good!) (it shows Newton, Massachusetts AND shows your location).

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3757675

External Customer Info:
External Company:  
External Customer Name: itisdesign
External Customer Email:

Attachments:

Comments:

Expected result: <script type="text/javascript" src="/foobar/scripts/ajax/ext/map/mapiconmaker.js"></script> should be Expected result: <script type="text/javascript" src="/foobar/ajax/ext/map/mapiconmaker.js"></script>
Comment by External U.
12236 | May 08, 2014 08:16:16 PM GMT
Because of this, pages using the <cfmap> tag, if the script files aren't accessible via the default CFIDE, the following Javascript error is thrown: Error: ReferenceError: MapIconMaker is not defined Source File: /CFIDEScripts/scripts/ajax/ext/map/GMapPanel3.js This happens in CF 9 and CF 10, not just CF 11, both of which are currently still supported so should be addressed in hotfixes.
Vote by External U.
12239 | August 11, 2014 03:55:13 AM GMT
fixed, but changes to the script directory settings in the server, results in a broken reference to mapiconmaker.js, unless the server is restarted. With other scripts the changes are picked up right away. verified with b.290721. on Win 7 x64.
Comment by Piyush K.
12237 | August 11, 2014 09:14:31 AM GMT
Hi Piyush, I've verified this is fixed in CF11 Update 3. I saw no restart was necessary after changing the script source path in CF Admin. I changed the script source path multiple times, and the reference to mapiconmaker.js was updated immediately (just as with the other scripts). This is on x64 Win8.1. Thanks!, -Aaron
Comment by External U.
12238 | November 03, 2014 11:03:05 PM GMT