Opened 14 years ago
Last modified 14 years ago
#1443 closed defect
MgProxyFeatureService::GetCapabilities is using a fixed api version 1.0.0 — at Initial Version
Reported by: | wuma | Owned by: | Mars Wu |
---|---|---|---|
Priority: | high | Milestone: | 2.3 |
Component: | General | Version: | 2.1.0 |
Severity: | critical | Keywords: | |
Cc: | brucedechant | External ID: | 1342879 |
Description
Steps:
- Run WebTier tests:Feature/GetCapabilities. It will get the capabilites for a certain FDO provider.
- Keep the initial values for the test page except for changing the version to be 2.0.0
- Submit the request
You will find the response is always for 1.0.0 instead of 2.0.0.
The reaons is like following:
MgByteReader* MgProxyFeatureService::GetCapabilities(CREFSTRING providerName, CREFSTRING connectionString) {
MgCommand cmd; cmd.ExecuteCommand(m_connProp, Connection
MgCommand::knObject, Return type expected MgFeatureServiceOpId::GetCapabilities_Id, Command Code 2, No of arguments Feature_Service, Service Id BUILD_VERSION(1,0,0), Operation version MgCommand::knString, &providerName, Argument#1 MgCommand::knString, &connectionString, Argument#2 MgCommand::knNone); End of argument
SetWarning(cmd.GetWarningObject());
return (MgByteReader*)cmd.GetReturnValue().val.m_obj;
}
The version is a fixed one: BUILD_VERSION(1,0,0) instead of the requested version