Bug 932 - ContextSelector choice causes errors
: ContextSelector choice causes errors
Status: RESOLVED FIXED
: Chameleon
Widget
: 2.0
: PC Linux
: P2 normal
: ---
Assigned To:
: http://www.gommap.org/
:
:
:
:
  Show dependency treegraph
 
Reported: 2005-01-21 13:34 by
Modified: 2005-02-23 09:56 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2005-01-21 13:34:20
Service Instance Application which utilizes a ContextSelector widget.

The application loads fine, using the default Context.  But when I try to select
a new context, or even the same default context, causing the map to be redrawn
the following errors are displayed. The ErrorReport widget simply says: ERROR:
Invalid Context File.
But at the top of the page and in my Apache log:

(This is a debug of mine from ows.php) contextURL:
http://www.gommap.org/gommap/contexts/viewer/realtime_ocean_obs.xml
PHP Notice:  Undefined variable:  szFilename in
/usr/opt/chameleon/chameleon-2.0rc1/htdocs/widgets/ows.php on line 146
PHP Warning:  [MapServer Error]: msLoadMapContext(): Unable to read
http://www.gommap.org/gommap/contexts/viewer/realtime_ocean_obs.xml
 in /usr/opt/chameleon/chameleon-2.0rc1/htdocs/widgets/ows.php on line 56
PHP Warning:  [MapServer Error]: msGetMapContextFileText():
(http://www.gommap.org/gommap/contexts/viewer/realtime_ocean_obs.xml)
 in /usr/opt/chameleon/chameleon-2.0rc1/htdocs/widgets/ows.php on line 56
PHP Warning:  Failed loading map context from
http://www.gommap.org/gommap/contexts/viewer/realtime_ocean_obs.xml in
/usr/opt/chameleon/chameleon-2.0rc1/htdocs/widgets/ows.php on line 56

The context file is easily viewable in any browser.
------- Comment #1 From 2005-02-23 09:39:48 -------
accepting bug
------- Comment #2 From 2005-02-23 09:56:18 -------
fixed in cvs for both 2.1 and 2.0.  Fix was to replace $szFilename with $szURL
in two places in ows.php retrieveContext().