Opened 3 years ago

Closed 2 years ago

Last modified 2 years ago

#12804 closed Bug Report - General (fixed)

MythTV.pm problem with blank <LocalHostName> in config.xml

Reported by: jdlundell@… Owned by: David Hampton <mythtv@…>
Priority: minor Milestone: unknown
Component: Bindings - Perl Version: 0.28.0
Severity: medium Keywords:
Cc: Ticket locked: no

Description

When did a fresh install of Mythbuntu and it created a config.xml file for me with a blank <LocalHostName?> setting. Because of this, MythTV.pm was sending an ANN Monitor message with a blank hostname which then causes a Malformed ANN Monitor message from the backend which then disconnects. MythTV.pm thinks this means the backend is not there and generates an error that is not helpful.

I would suggest checking mysql_conf{hostname} to see if it is blank, and if so, set it to localhost or error out with a message to fix config.xml

This was found when trying to run /usr/share/doc/mythtv-backend/contrib/user-jobs/mythlink.pl on MythtV 0.28 on Mythbuntu 16.04.

Change History (2)

comment:1 Changed 2 years ago by David Hampton <mythtv@…>

Owner: set to David Hampton <mythtv@…>
Resolution: fixed
Status: newclosed

In 36f2724cfacee03d8677c76432d87ad8845a33cb/mythtv:

The Perl bindings should ignore a blank LocalHostName? tag in the config.

This should never happen, but just in case it does, add validation to
prevent overwriting the hostname with an empty string. Fixes #12804.

comment:2 Changed 2 years ago by David Hampton <mythtv@…>

In ee3e5c75a155f516fa887f792bd1d2b34507dbd7/mythtv:

The Perl bindings should ignore a blank LocalHostName? tag in the config.

This should never happen, but just in case it does, add validation to
prevent overwriting the hostname with an empty string. Fixes #12804.

(cherry picked from commit 36f2724cfacee03d8677c76432d87ad8845a33cb)

Note: See TracTickets for help on using tickets.