291 Commits

Author SHA1 Message Date
Fred Gleason
ce40efc569 2017-06-28 Fred Gleason <fredg@paravelsystems.com>
* Added code to rdexport(1) to write the name of each file written
	to standard output.
2017-06-28 13:37:55 -04:00
Fred Gleason
13d5631d26 2017-06-27 Fred Gleason <fredg@paravelsystems.com>
* Added an output error to rdexport(1) for when invoked without the
	output directory specified.
2017-06-27 13:35:42 -04:00
Fred Gleason
31dc2e5605 2017-06-27 Fred Gleason <fredg@paravelsystems.com>
* Added a '--title=' option to rdexport(1).
2017-06-27 08:40:39 -04:00
Fred Gleason
2c1f1c6a59 2017-05-26 Fred Gleason <fredg@paravelsystems.com>
* Added rdconvert(1).
2017-05-26 08:55:29 -04:00
Fred Gleason
1a94f58fff 2017-05-18 Fred Gleason <fredg@paravelsystems.com>
* Added pseudo-schema change 263 to restore missing LOG_MODES table
	records [GitHub issue #000175].
	* Added code to create and remove LOG_MODES table records when
	adding and removing Host definitions.
	* Incremented the database version to 263.
2017-05-18 15:26:49 -04:00
Fred Gleason
0eda6b79fc 2017-04-06 Fred Gleason <fredg@paravelsystems.com>
* Added an rdauth(1) utility in 'utils/rdauth/'.
	* Fixed a regression in 'lib/rdcart.cpp' that caused the 'Import'
	web API call to fail with an 'unsupported format' error.
2017-04-06 15:26:30 -04:00
Fred Gleason
275c08b156 2017-04-03 Fred Gleason <fredg@paravelsystems.com>
* Added a 'USERS.LOCAL_AUTH' field to the database.
	* Added a 'USERS.PAM_SERVICE' field to the database.
	* Added an index on 'STATIONS.IPV4_ADDRESS' to the database.
	* Incremented the database version to 262.
	* Added 'RDUser::localAuthentication()',
	'RDUser::setLocalAuthentication()', 'RDUser::pamService()' and
	'RDUser::setPamService()' methods in 'lib/rduser.cpp' and
	'lib/rduser.h'.
	* Added 'PAM Service' and 'Authenticate This User Locally' controls
	to the Edit User dialog in 'rdadmin/edit_user.cpp' and
	'rdadmin/edit_user.h'.
	* Added a PAM service configuration in 'conf/rivendell.pam'.
2017-04-03 18:15:07 -04:00
Fred Gleason
36fa10802a 2017-03-30 Fred Gleason <fredg@paravelsystems.com>
* Added '--relink-audio' and '--relink-audio-move' commands to
	rddbcheck(8) in 'utils/rddbcheck.cpp' and 'utils/rddbcheck.h'.
2017-03-30 10:06:35 -04:00
Fred Gleason
4342ccd01e 2017-03-29 Fred Gleason <fredg@paravelsystems.com>
* Modified rddbcheck(8) so as to process a --rehash command after
	the inexpensive checks.
2017-03-29 14:30:08 -04:00
Fred Gleason
aeccd2600e 2017-03-29 Fred Gleason <fredg@paravelsystems.com>
* Added a man page for rddbcheck(8).
2017-03-29 12:38:01 -04:00
Fred Gleason
5dc6fa92a9 2017-03-29 Fred Gleason <fredg@paravelsystems.com>
* Added a 'CUTS.SHA1_HASH' field to the database.
	* Incremented the database version to 261.
	* Added a 'Sha1' column to the Cut List in 'rdlibrary/audio_cart.cpp'.
	* Added 'RDCut::sha1Hash()' and 'RDCut::setSha1Hash()' methods in
	'lib/rdcut.cpp' and 'lib/rdcut.h'.
	* Added a '--rehash=' directive to rddbcheck(8).
	* Added a 'Rehash' Web API call.
	* Added an 'RDRehash' class in 'lib/rdrehash.cpp' and 'lib/rdrehash.h'.
2017-03-29 11:09:15 -04:00
Fred Gleason
bc2c441680 2017-03-27 Fred Gleason <fredg@paravelsystems.com>
* Added a 'WEBAPI_AUTHS' table to the database.
	* Added a 'USERS.WEBAPI_AUTH_TIMEOUT' field to the database.
	* Incremented the database version to 260.
	* Added 'RDUser::webapiAuthTimeout()' and
	'RDUser::setWebapiAuthTimeout()' methods in 'lib/rduser.cpp' and
	'lib/rduser.h'.
	* Added a 'WebAPI Timeout' control to the Edit User dialog in
	'rdadmin/edit_user.cpp' and 'rdadmin/edit_user.h'.
	* Implemented a 'CreateTicket' Web API call.
2017-03-27 13:43:42 -04:00
Fred Gleason
51cdcfb9be 2016-08-03 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdlibrary(1) that caused exports to contain incorrect
	marker data in the RDXL file structure.
2016-08-03 12:21:05 -04:00
Fred Gleason
e93b79f11b 2016-07-27 Fred Gleason <fredg@paravelsystems.com>
* Added a check for 'root' permissions at startup in
	'utils/rdrevert/rdrevert.cpp'.
2016-07-27 11:40:22 -04:00
Fred Gleason
9550815023 2016-07-25 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SERVICE_CLOCKS' table to the database.
	* Incremented the database version to 259.
	* Modified 'rdlogmanager/edit_clock.cpp' to use the new
	'SERVICE_CLOCKS' table.
	* Modified 'rdlogmanager/list_clocks.cpp' to use the new
	'SERVICE_CLOCKS' table.
2016-07-25 15:18:14 -04:00
Fred Gleason
b41c243de9 2016-07-22 Fred Gleason <fredg@paravelsystems.com>
* Implemented a 'deletelog' command for rdclilogedit(1).
2016-07-22 13:53:54 -04:00
Fred Gleason
d4e2b65796 2016-07-22 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'utils/rdclilogedit/operations.cpp' where attempting
	to load a log with mismatched case in the name would generate a SQL
	error.
2016-07-22 13:23:01 -04:00
Fred Gleason
f92e2ea142 2016-07-22 Fred Gleason <fredg@paravelsystems.com>
* Renamed the '--script' option in rdclilogedit(1) to be '-n' or
	'--quiet' or '--silent'.
2016-07-22 13:13:35 -04:00
Fred Gleason
797b6e5849 2016-07-22 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'utils/rdclilogedit/operations.cpp' that caused
	spurious 'no such service' errors when using the 'setservice'
	command on new logs.
2016-07-22 13:05:02 -04:00
Fred Gleason
ef248a0c57 2016-07-22 Fred Gleason <fredg@paravelsystems.com>
* Added support for using the ';' character as the command separator
	for rdclilogedit(1).
2016-07-22 12:59:02 -04:00
Fred Gleason
c769a571dc 2016-07-22 Fred Gleason <fredg@paravelsystems.com>
* Implemented an end-of-log delimiter in the output of the 'list'
	command for rdclilogedit(1).
2016-07-22 12:50:42 -04:00
Fred Gleason
7bf1cfef9b 2016-07-22 Fred Gleason <fredg@paravelsystems.com>
* Fixed bug in 'utils/rdclilogedit/rdclilogedit.cpp' that would
	cause the DB connection to time out.
2016-07-22 12:42:23 -04:00
Fred Gleason
b5629494d4 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Added a '--script' option to rdclilogedit(1).
2016-07-21 19:38:27 -04:00
Fred Gleason
ff23139470 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Added a 'setautorefresh' command to rdclilogedit(1).
	* Added a 'setdesc' command to rdclilogedit(1).
	* Added a 'setenddate' command to rdclilogedit(1).
	* Added a 'setpurgedate' command to rdclilogedit(1).
	* Added a 'setservice' command to rdclilogedit(1).
	* Added a 'setstartdate' command to rdclilogedit(1).
2016-07-21 19:26:30 -04:00
Fred Gleason
5ac5d8e60c 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Added a 'header' command to rdclilogedit(1).
2016-07-21 17:46:55 -04:00
Fred Gleason
93538cc483 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Added a 'new' command to rdclilogedit(1).
2016-07-21 17:26:11 -04:00
Fred Gleason
fb5010fa98 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Refactored rdclilogedit(1) to use synchronous input.
2016-07-21 16:40:26 -04:00
Fred Gleason
985eb461f3 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Moved enforcement of user permissions to the
	'MainObject::DispatchCommand()' method in
	'utils/rdclilogedit/parser.cpp'.
2016-07-21 15:12:41 -04:00
Fred Gleason
d8a6fb56e4 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Implemented '!' override character in rdclilogedit(1) for the
	'exit' command.
2016-07-21 14:51:05 -04:00
Fred Gleason
933b318eb1 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Added a 'setcomment' command to rdclilogedit(1).
	* Added a 'setlabel' command to rdclilogedit(1).
2016-07-21 14:43:17 -04:00
Fred Gleason
2af6845d6e 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Added a 'settime' command to rdclilogedit(1).
	* Added a 'setmarker' command to rdclilogedit(1).
	* Added a 'settrack' command to rdclilogedit(1).
2016-07-21 14:21:25 -04:00
Fred Gleason
c388bda77b 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Implemented '!' override character in rdclilogedit(1).
2016-07-21 13:33:44 -04:00
Fred Gleason
deeadbf0e9 2016-07-21 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'utils/rdclilogedit/rdclilogedit.cpp' that caused
	large output listings to be truncated.
2016-07-21 12:41:41 -04:00
Fred Gleason
f4cf690ff3 2016-07-20 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'utils/rdclilogedit/rdclilogedit.cpp' that caused
	segfaults with certain commands when run without a log loaded.
2016-07-20 19:44:25 -04:00
Fred Gleason
27e674544c 2016-07-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'settime' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp' and
	'utils/rdclilogedit/rdclilogedit.h'.
2016-07-20 19:29:23 -04:00
Fred Gleason
42d9286fd8 2016-07-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'settrans' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp' and
	'utils/rdclilogedit/rdclilogedit.h'.
2016-07-20 18:54:01 -04:00
Fred Gleason
a166e4f731 2016-07-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'remove' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp' and
	'utils/rdclilogedit/rdclilogedit.h'.
2016-07-20 18:40:10 -04:00
Fred Gleason
27e3113f27 2016-07-20 Fred Gleason <fredg@paravelsystems.com>
* Added an 'addcart' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp' and
	'utils/rdclilogedit/rdclilogedit.h'.
2016-07-20 18:27:54 -04:00
Fred Gleason
8e0d803ba3 2016-07-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'save' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp' and
	'utils/rdclilogedit/rdclilogedit.h'.
	* Added a 'saveas' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp' and
	'utils/rdclilogedit/rdclilogedit.h'.
2016-07-20 18:00:03 -04:00
Fred Gleason
60ce6c966d 2016-07-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'setcart' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp' and
	'utils/rdclilogedit/rdclilogedit.h'.
2016-07-20 17:08:16 -04:00
Fred Gleason
e83ba7317a 2016-07-20 Fred Gleason <fredg@paravelsystems.com>
* Added a 'help' command to rdclilogedit(1) in
	'utils/rdclilogedit/rdclilogedit.cpp'.
2016-07-20 16:32:34 -04:00
Fred Gleason
0402781e01 2016-07-20 Fred Gleason <fredg@paravelsystems.com>
* Stubbed out a command-line log editor in 'utils/rdclilogedit/'.
2016-07-20 15:41:45 -04:00
Fred Gleason
fc332c3655 2016-07-12 Fred Gleason <fredg@paravelsystems.com>
* Added an '--xml' switch to rdimport(1) in
	'utils/rdimport/rdimport.cpp' and 'utils/rdimport/rdimport.h'.
2016-07-12 08:52:29 -04:00
Fred Gleason
f04fa15090 2016-06-17 Fred Gleason <fredg@paravelsystems.com>
* Modified rdexport(1) to list correct audio format parameters
	in the XML output.
2016-06-17 12:02:43 -04:00
Fred Gleason
d48935a00a 2016-06-15 Fred Gleason <fredg@paravelsystems.com>
* Added an '--xml' switch to rdexport(1) in
	'utils/rdexport/rdexport.cpp' and 'utils/rdexport/rdexport.h'.
2016-06-15 13:01:03 -04:00
Fred Gleason
aa610a739c 2016-06-15 Fred Gleason <fredg@paravelsystems.com>
* Added '--bitrate=', '--channels=', '--format=', '--quality='
	and '--samplerate=' to rdexport(1) in 'utils/rdexport/rdexport.cpp'
	and 'utils/rdexport/rdexport.h'.
2016-06-15 11:47:26 -04:00
Fred Gleason
c21c1a0d5d Merge branch 'stable' of https://github.com/waynemerricks/rivendell into waynemerricks-stable 2016-06-14 11:25:43 -04:00
Fred Gleason
6fd3788af7 2016-06-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'utils/rdmaint/rdmaint.cpp' that failed to process
	SQL NULL date values correctly.
2016-06-10 17:52:59 -04:00
Wayne Merricks
f1175cd2f2 Fixes for invalid NULL sql on date/times
Most files are simple swaps to get rid of extra " as a NULL return will give
invalid SQL if used as follows UPDATE x SET y="NULL";

See github issue 121 for more info.

Extra changes have been made to the following files:
* lib/rdcartslot.cpp
- Added a QDateTime variable to prevent EVENT_DATETIME becoming
  "2016-06-09" "NULL" as it was checked separately for date and time
* lib/rdcut.cpp
- Reworked START_DATETIME and END_DATETIME to save the SQL ifs.  I believe this
  makes it easier to read and understand.
- The >QDate(1900,1,1) and < 8000 is probably not needed but I left it there
  just in case.
* lib/rdescape_string.cpp
- Reworked to add extra " if the date is not NULL see issue 121
* lib/rdfeed.cpp && lib/rdpodcast.cpp
- Had to add a SetRow for QDateTime as with the string conversion the existing
  SetRow would add an extra set of "
* lib/rdsound_panel.cpp && rdairplay/log_traffic.cpp
        && utils/rddgimport/rddgimport.cpp
- Added a QString to contain EVENT_DATETIME to prevent double checks of date
  and time separately (similar to lib/rdcartslot.cpp)
* rdcatchd/rdcatchd.cpp
- Reverted the changes.  The RML here is not touching the DB so is fine, plus
  with the RDCheckDateTime changes you'd have extra " unless it was NULL
* tests/sas_switch_torture.cpp && sas_torture.cpp
- Included missing rdescape_string.h
2016-06-09 00:01:38 +01:00
Wayne Merricks
9f52968a02 utils/rdimport/rdimport.cpp MySQL v5.7+ date/time changes 2016-06-04 23:50:26 +01:00