- fixed bug for TC sDsN12: non-persitent dataset not allowed for BRCB

pull/6/head
Michael Zillgith 10 years ago
parent 837f0ac60e
commit 366fa7a1bb

@ -503,16 +503,24 @@ updateReportDataset(MmsMapping* mapping, ReportControl* rc, MmsValue* newDatSet,
if (dataSet == NULL) { if (dataSet == NULL) {
/* check if association specific data set is requested */ /* check if association specific data set is requested */
if (dataSetName[0] == '@') { if (dataSetName[0] == '@') {
if (connection != NULL) {
MmsNamedVariableList mmsVariableList
= MmsServerConnection_getNamedVariableList(connection, dataSetName + 1);
if (mmsVariableList != NULL) if (rc->buffered == false) { /* for buffered report non-permanent datasets are not allowed */
dataSet = MmsMapping_createDataSetByNamedVariableList(mapping, mmsVariableList); if (connection != NULL) {
MmsNamedVariableList mmsVariableList
= MmsServerConnection_getNamedVariableList(connection, dataSetName + 1);
if (mmsVariableList != NULL)
dataSet = MmsMapping_createDataSetByNamedVariableList(mapping, mmsVariableList);
}
} }
} }
/* check for VMD specific data set */ /* check for VMD specific data set */
else if (dataSetName[0] == '/') { else if (dataSetName[0] == '/') {
MmsNamedVariableList mmsVariableList = MmsDevice_getNamedVariableListWithName(mapping->mmsDevice, dataSetName + 1); MmsNamedVariableList mmsVariableList = MmsDevice_getNamedVariableListWithName(mapping->mmsDevice, dataSetName + 1);
@ -1315,8 +1323,10 @@ Reporting_RCBWriteAccessHandler(MmsMapping* self, ReportControl* rc, char* eleme
if (strcmp(elementName, "GI") == 0) { if (strcmp(elementName, "GI") == 0) {
if ((rc->enabled) && (rc->clientConnection == connection)) { if ((rc->enabled) && (rc->clientConnection == connection)) {
if (MmsValue_getBoolean(value)) if (MmsValue_getBoolean(value)) {
rc->gi = true; if (rc->triggerOps & TRG_OPT_GI)
rc->gi = true;
}
retVal = DATA_ACCESS_ERROR_SUCCESS; retVal = DATA_ACCESS_ERROR_SUCCESS;
goto exit_function; goto exit_function;

Loading…
Cancel
Save