Bug 83

Summary: [MapLab3]Browse button in the object properties doesn't return correct path
Product: MapLab Reporter: Normand Savard <nsavard@mapgears.com>
Component: PreviewAssignee: maplab-dev <maplab-dev@lists.maptools.org>
Status: ASSIGNED    
Severity: normal CC: maplab-dev@lists.maptools.org
Priority: P2    
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description From 2003-10-23 17:06:20
Browse button in the object properties doesn't return correct path

I first copied the "data" directory to "data2" directory with all the
corresponding files.

I then opened the "tutorial.map", select the map object into the object browser
view.  Into the object properties view, I selected the "ShapePath" parameter,
click on the browse button.  The shape path is updated to:

"../../../../../../../../../..//tutorial/data2",

which is not correct.  The errors is recorded into the PHP errors log file (see
below).  MapLab hang trying to load the data and display the following message:

"Loading image...please wait".

Redhat 7.2, Firebird 0.7, Chameleon cvs 10/16/2003, MapLab cvs 10/14/2003

--------------------
PHP errors log:

[23-Oct-2003 17:01:09] PHP Warning:  MapServer Error in msDrawMap(): Failed to
draw layer named 'land_fn'.
 in /usr2/home/nsavard/proj/chameleon-1.1_20031016/htdocs/common/wrapper/drawmap.php
on line 482
------- Comment #1 From 2003-10-23 18:52:18 -------
The abs2rel function in browser.php needs to be fixed.

The workaround is to manually edit the returned path in the text input field.