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:
- Launch Autodesk MapGuide studio, connect to a linux server.
- New a data connection for any provider, e.g. SDF, SHP, MySQL...
- Create a join.
- 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)
Change History (4)
by , 13 years ago
Attachment: | #1965-fix.patch added |
---|
comment:1 by , 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 , 13 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Fix for this issue