Opened 13 years ago

Closed 13 years ago

#1965 closed defect (fixed)

Linux: Preview feature of join feature class results in exception.

Reported by: hubu Owned by: hubu
Priority: high Milestone: 2.4
Component: Feature Service Version: 2.2.0
Severity: major Keywords: Join Linux
Cc: hubu External ID: 1453197

Description

steps:

  1. Launch Autodesk MapGuide studio, connect to a linux server.
  2. New a data connection for any provider, e.g. SDF, SHP, MySQL...
  3. Create a join.
  4. Click View Feature button for the extended join feature class.

Result: Exception happened, see below info - * An exception occurred in FDO component. EXPRESSION_17_STRINGNOTEXPRESSION- MgFeatureServiceHandler.ProcessOperation() line 83 file FeatureServiceHandler.cpp - MgOpSelectFeaturesSpatial.Execute() line 110 file OpSelectFeaturesSpatial.cpp - MgServerFeatureService.SelectAggregate() line 570 file ServerFeatureService.cpp - MgServerSelectFeatures.SelectFeatures() line 306 file ServerSelectFeatures.cpp * I tired SDF, SHP, MySQL, it seems the issue exisitng for all providers. And that's fine for Windows server.

Expectation: No error to view features.

Attachments (2)

#1965-fix.patch (1.3 KB ) - added by hubu 13 years ago.
Fix for this issue
#1965-fix.2.patch (1.3 KB ) - added by hubu 13 years ago.
Fix for this issue

Download all attachments as: .zip

Change History (4)

by hubu, 13 years ago

Attachment: #1965-fix.patch added

Fix for this issue

by hubu, 13 years ago

Attachment: #1965-fix.2.patch added

Fix for this issue

comment:1 by hubu, 13 years ago

Add a patch to fix this issue.

Reason: On linux, we used STRING::rfind(pattern) to find the pattern from the string, once we didn't find the pattern, then return a infinite value. Then we used this infinite value to get the substr from the string, so the substr is incorrect. And the incorrect substr will cause the FDO exception on Linux.

Solution: We should check whether the return value of STRING::rfind() is STRING::npos, if yes we shouldn't continue to get the substr from this value.

comment:2 by jng, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.