2019-12-09 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the rdxport service that could cause MODIFY
	notifications to fail to be sent by the 'SaveLog' WebAPI call.
This commit is contained in:
Fred Gleason 2019-12-09 01:05:13 -05:00
parent 152da1f154
commit 525573a245
3 changed files with 11 additions and 1 deletions

View File

@ -19309,3 +19309,6 @@
a buggy ENCO implemention of the 'AUD' CartChunk timer.
2019-12-05 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 3.2.0int3.
2019-12-09 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in the rdxport service that could cause MODIFY
notifications to fail to be sent by the 'SaveLog' WebAPI call.

View File

@ -619,6 +619,11 @@ bool MainObject::DispatchCommand(RipcdConnection *conn)
BroadcastCommand("ON "+msg+"!",conn->id());
ripcd_notification_mcaster->
send(msg,rda->system()->notificationAddress(),RD_NOTIFICATION_PORT);
rda->syslog(LOG_DEBUG,"sent notification: \"%s\" to %s:%d",
(const char *)msg.toUtf8(),
(const char *)rda->system()->notificationAddress().
toString().toUtf8(),
RD_NOTIFICATION_PORT);
delete notify;
}

View File

@ -2,7 +2,7 @@
//
// Rivendell web service portal -- Log services
//
// (C) Copyright 2013-2018 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2013-2019 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@ -515,6 +515,8 @@ void Xport::SaveLog()
log->setEndDate(end_date);
log->setModifiedDatetime(QDateTime::currentDateTime());
logevt->save(rda->config());
SendNotification(RDNotification::LogType,RDNotification::ModifyAction,
QVariant(log->name()));
RDLogLock::clearLock(lock_guid);
}
else {