Opened 13 years ago

Last modified 13 years ago

#3786 new defect

SDE layers with joined tables and a null filter produce a segfault on retrieving shape by ID

Reported by: ejn Owned by: hobu
Priority: normal Milestone:
Component: Input - Native SDE Support Version: svn-trunk (development)
Severity: normal Keywords: sde, join
Cc:

Description

For layers from a database join, SDE uses the function getSDESQLConstructInfo to setup the SQL connection. If there is an ID query involved, the layer->filter.string is not checked for a NULL value before being concatenated to the full filter set on the connection (where property of the connection object). This causes a segfault if an attempt is made to retrieve a single record by id from the join layer when the filter is NULL.

Attachments (1)

ms-svn-patch_sde_join_null-filter.patch (686 bytes ) - added by ejn 13 years ago.
Patch to add check for null filter.string

Download all attachments as: .zip

Change History (2)

by ejn, 13 years ago

Patch to add check for null filter.string

comment:1 by ejn, 13 years ago

Note: to workaround this problem, you can set the layer filter to a dummy value (e.g. "1 = 1"). Affects versions back to at least Mapserver 5.4.2.

Note: See TracTickets for help on using tickets.