Opened 16 years ago

Closed 16 years ago

#654 closed defect (fixed)

GETCONNECTIONPROPERTYVALUES operation results in a null pointer error

Reported by: ronnielouie Owned by: ronnielouie
Priority: high Milestone: 2.1
Component: Web API Version: 2.0.1
Severity: major Keywords:
Cc: External ID: 778566

Description

On a server where there are no user or system ODBC DSN defined, pass the following URL to the browser,

http://localhost/mapguide2009/mapagent/mapagent.fcgi?OPERATION=GETCONNECTIONPROPERTYVALUES&VERSION=1.0.0&LOCALE=en&CLIENTAGENT=MapGuide+Developer&PROVIDER=OSGeo.ODBC&PROPERTY=DataSourceName&CONNECTIONSTRING=&FORMAT=text%2Fxml

The actual result will be: "Logic error. NULL pointer".

The expected result should be an empty string collection.

Change History (1)

comment:1 by ronnielouie, 16 years ago

Resolution: fixed
Status: newclosed

Fixed by adding a check for null, and creating an empty string collection if necessary for the http response.

http://trac.osgeo.org/mapguide/changeset/3261

Note: See TracTickets for help on using tickets.