• Welcome to RadioDJ - Free Radio Automation Software Forum. Please log in or sign up.

REST bug/conflict with using database for settings

Started by xanaftp, December 29, 2017, 05:03:54 AM

xanaftp

I found a discrepancy with the REST server plugin for stations that use multiple RadioDJs sharing the same database and saving the settings via the database.

If the following conditions are met, we get all RadioDJ instances trying to listen on the same IP and port with the same password on the REST server (editing the settings of one REST affects the settings for all RESTs), which poses a conflict:
1. Station is using more than one RadioDJ sharing the same database.
2. Station is saving settings in the database.
3. Station is NOT using 127.0.0.1:8080 as REST IP, and changeme as password.

Suggestion: REST server force-saves its settings as local XML regardless whether or not RadioDJ is set to save settings in the database (similar to how you don't save sound card settings in the database, because that conflicts with other RadioDJs on other computers).