Mapserver 6.2.1 Linux ArcSDE 10.0 Query Problem #4700

Closed
weisbend opened this Issue Jul 11, 2013 · 2 comments

Projects

None yet

3 participants

@weisbend

MapServer 6.2.1 compiled with GDAL 1.9 on 64 Bit Linux Red Hat 6 Enterprise displaying ArcSDE10.0 data fine but a query generates an Internal Server 500 error.

The solution was combine the code below with a patch that Steve Lime provided to the mapsde.c file.

void msSDELayerFreeItemInfo(layerObj *layer)
{

ifdef USE_SDE

msSDELayerInfo *sde = NULL;
int i;
if (!msSDELayerIsOpen(layer)) {
    msSetError( MS_SDEERR,
                "SDE layer has not been opened.",
                "msSDELayerFreeItemInfo()");
}
sde = layer->layerinfo;
if (sde != NULL && sde->basedefs) {
    SE_table_free_descriptions(sde->basedefs);
    sde->basedefs = NULL;
}
if (sde != NULL && sde->joindefs) {
    SE_table_free_descriptions(sde->joindefs);
    sde->joindefs = NULL;
}
if (layer->iteminfo) {
    :
@weisbend weisbend closed this Jul 11, 2013
@sdlime sdlime reopened this Jul 12, 2013
@sdlime sdlime was assigned Jul 12, 2013
@sdlime
Member
sdlime commented Jul 12, 2013

See also #4521 (the other patch Eric is referring too). --Steve

@tbonfort tbonfort added a commit to tbonfort/mapserver that referenced this issue Aug 6, 2013
@tbonfort tbonfort refactor SDE detection in cmake files (#4512,#4700)
- add a specific plugin configuration
- checks for sde,sg and pe libs, adds pthread,socketi and dl if found
- adds #define SDE64 on 64 bit platforms
b677cf3
@tbonfort
Member
tbonfort commented Aug 8, 2013

I'm closing this one in favor of #4521 (patch migrated over there)

@tbonfort tbonfort closed this Aug 8, 2013
@sdlime sdlime added a commit that referenced this issue Aug 13, 2013
@sdlime sdlime Updated msSDELayerFreeItemInfo() to make sure the layerinfo struct is…
… allocated before freeing. (#4521/#4700)
fcc56a7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment