Opened 16 years ago

Closed 16 years ago

#8215 closed defect (invalid)

MythWeb hostname/setting hostname comparison is not case-insensitive

Reported by: anonymous Owned by: Rob Smith
Priority: minor Milestone: unknown
Component: Plugin - MythWeb Version: head
Severity: low Keywords:
Cc: Ticket locked: no

Description

I recently rebuilt my mythtv box. I manually backed up and restored the database. I accidentally changed the host name from 'HTPC' to 'htpc'. This caused some minor issues with old recordings that still had the old hostname in the database. But hostnames are suppose to be case-insensitive. So 'HTPC' & 'htpc' should be the same.

This failure should be rare. But it was hard to diagnose because I didn't really change the hostname.

Change History (10)

comment:1 by ryan.goat@…, 16 years ago

Not reported by anonymous. Reported by me.

comment:2 by Dibblah, 16 years ago

Resolution: invalid
Status: newclosed

I am closing this as a feature request. If you come up with a patch, please comment on this ticket and it will be reopened.

comment:3 by robertm, 16 years ago

Resolution: invalid
Status: closednew

Ryan,

can you be more specific about what the minor issues *were*? It would help a lot to narrow down where this issue lives...

comment:4 by robertm, 16 years ago

Status: newinfoneeded_new

in reply to:  3 comment:5 by ryan.goat@…, 16 years ago

The failure I experienced was in mythweb. Mythweb failed to generate preview images on the "Recorded Programs" page for recordings with the old (all-caps) host name.

comment:6 by robertm, 16 years ago

Is the only issue in Mythweb?

comment:7 by ryan.goat@…, 16 years ago

That is the only verified error I found before I found the root cause and fixed the database entires.

I did not notice any related errors in mythfrontend. The old recordings played and generated preview pictures just fine. But I did not do a systematic search looking for errors.

comment:8 by robertm, 16 years ago

Component: MythTV - GeneralPlugin - MythWeb
Owner: changed from Isaac Richards to Rob Smith
Status: infoneeded_newnew
Summary: Myth should interprate hostnames case-insensitivlyMythWeb hostname/setting hostname comparison is not case-insensitive

comment:9 by beirdo, 16 years ago

See also #6700

comment:10 by Rob Smith, 16 years ago

Resolution: invalid
Status: newclosed

We control this via the database:

mysql> SELECT DISTINCT hostname FROM settings\G
*************************** 1. row ***************************
hostname: jessica

mysql> SELECT COUNT(0) FROM settings WHERE hostname = 'JESSICA'\G
*************************** 1. row ***************************
COUNT(0): 340

mysql> SELECT COUNT(0) FROM settings WHERE hostname = 'JeSsIcA'\G
*************************** 1. row ***************************
COUNT(0): 340

So in short, fix the database and all should be wel.

Note: See TracTickets for help on using tickets.