<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-7">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
After some more digging, I found that sometime in 2020 there had been overrides created in ~/.local/share/mime/packages with the application/x-extension-html file type that was messing things up.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I renamed the whole mime folder and things are back to normal. Thank you very much for the help, Peter, you pointed me in the right direction.</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div class="elementToProof" style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
Have a great weekend,</div>
<div id="Signature" style="color: inherit;">
<div style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif;" dir="ltr" id="divtagdefaultwrapper">
<p><br>
</p>
<p>Yianni.</p>
</div>
</div>
<div id="appendonsend" style="color: inherit;"></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<hr style="display: inline-block; width: 98%;">
<div id="divRplyFwdMsg" dir="ltr" style="color: inherit;"><span style="font-family: Calibri, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);"><b>Από:</b> mythtv-users <mythtv-users-bounces@mythtv.org> εκ μέρους του Peter Bennett <pb.mythtv@gmail.com><br>
<b>Στάλθηκε:</b> Σάββατο, 17 Αυγούστου 2024 12:54 πμ<br>
<b>Προς:</b> mythtv-users@mythtv.org <mythtv-users@mythtv.org><br>
<b>Θέμα:</b> Re: [mythtv-users] Απ: Απ: visiting master backend 6544 port downloads html file, doesn't open page</span>
<div> </div>
</div>
<p><br>
</p>
<div>On 8/16/24 17:43, Peter Bennett wrote:</div>
<blockquote>
<p>Sorry for the error - I have resent below - It it the server machine where you have to check.</p>
<div>On 8/16/24 16:04, Yianni Vidalis wrote:</div>
<blockquote>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I ran the command. The Content-Type is application/x-extension-html</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
I run opensuse leap 15.5</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
curl -i <a href="http://localhost:6544" id="OWAb4b78fff-5543-17b7-dc91-ee0866299241" class="x_moz-txt-link-rfc2396E OWAAutoLink" data-auth="NotApplicable">
"http://localhost:6544"</a><br>
HTTP/1.1 200 OK<br>
<b>Date</b>: Παρ, 16 Αυγ 2024 19:58:08 GMT<br>
<b>Server</b>: MythTV/35-Pre-256-gc166b740b9-dirty Linux/5.14.21-150500.55.68-default UPnP/1.0<br>
<b>Accept-Ranges</b>: bytes<br>
<b>Connection</b>: Keep-Alive<br>
<b>Keep-Alive</b>: timeout=10<br>
<b>Content-Type</b>: application/x-extension-html<br>
<b>Content-Length</b>: 1117<br>
<b>Cache-Control</b>: no-store, max-age=0<br>
<b>Content-Language</b>: el<br>
<b>Content-Disposition</b>: inline; filename="index.html"<br>
<b>transferMode.dlna.org</b>: Interactive<br>
<b>X-UA-Compatible</b>: IE=Edge<br>
<b>X-Content-Type-Options</b>: nosniff<br>
<b>Content-Security-Policy</b>: script-src 'self' 'unsafe-inline' 'unsafe-eval' <a href="https://services.mythtv.org/" id="OWA4f5659ab-695e-bd41-aa0b-be6a8d34864e" class="x_moz-txt-link-freetext OWAAutoLink" shash="VN4KFP2LMhhDfjpJIiqrpUlPi40jbpN65yzORPsVfS9q5vqcY4XCttYhK/bMnfdXD1KBOZZg57j1+jLlV34CiOYRZEu0/wB7RoxIJHSJSAJiOuY+2eSBTj0RO0EmxxyZhWQvRybzxpxweg4ixOu+qVHSnW6v2PgxWyFSW1O/alo=" originalsrc="https://services.mythtv.org/" data-auth="Verified">
https://services.mythtv.org</a>; style-src 'self' 'unsafe-inline'; frame-src 'self'; o<br>
bject-src 'none'; media-src 'self'; font-src 'self'; img-src http: https: data:; form-action 'self'; frame-ancestors 'self'; <br>
<b>X-Content-Security-Policy</b>: script-src 'self' 'unsafe-inline' 'unsafe-eval'
<a href="https://services.mythtv.org/" id="OWAbb950c2e-b96d-b8be-6607-93d044b80fa2" class="x_moz-txt-link-freetext OWAAutoLink" shash="Raou04M4onvTaltBETLMxOkbXyuNe8Zwj17anVol/B4kFHkUtkHUFNwxImqcwn9Y+o/WUqY+OjalML6dCb2zTBgzAyE8AQqf8CEYBvDDQswPapi/UfJt54FDbjrJX5iEfEwQI5GYkH5dSRODdBmScynMAnTidHi2XJH8d2fCayc=" originalsrc="https://services.mythtv.org/" data-auth="Verified">
https://services.mythtv.org</a>; style-src 'self' 'unsafe-inline'; frame-src 'self';<br>
object-src 'none'; media-src 'self'; font-src 'self'; img-src http: https: data:; form-action 'self'; frame-ancestors 'self'; <br>
<b>X-XSS-Protection</b>: 1; mode=block<br>
<br>
<!DOCTYPE html><html lang="en"><head><br>
<meta charset="utf-8"><br>
<title>MythTV Backend</title><br>
<base href="/"><br>
<meta name="viewport" content="width=device-width, initial-scale=1"><br>
<link rel="stylesheet" type="text/css" href="/3rdParty/primeicons-5.0.0/primeicons.css"><br>
<link id="app-theme" rel="stylesheet" type="text/css" href="assets/themes/md-light-indigo.css"><br>
<link rel="stylesheet" type="text/css" href="/assets/guidecolors.css"><br>
<link rel="icon" type="image/x-icon" href="favicon.ico"><br>
<style>html,body{height:100%}body{margin:0;height:100%;overflow-x:hidden;overflow-y:auto;background-color:var(--surface-a);font-family:var(--font-family);f<br>
ont-weight:400;color:var(--text-color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}</style><link rel="stylesheet" href="styles.css<br>
" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.css"></noscript></head><br>
<body><br>
<app-root></app-root><br>
<script src="runtime.js" type="module"></script><script src="polyfills.js" type="module"></script><script src="main.js" type="module"></script><br>
<br>
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="x_Signature" style="color: inherit;">
<div dir="ltr" id="x_divtagdefaultwrapper" style="font-size: 12pt; color: rgb(0, 0, 0); font-family: Calibri, Arial, Helvetica, sans-serif;">
<p><br>
</p>
<p>Yianni.</p>
</div>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 11pt; color: rgb(0, 0, 0);">
<br>
</div>
</blockquote>
<p>Sorry for the error before - It it the server machine where you have to check.</p>
<p>As far as I can tell, it may be finding the wrong content-type from lists in /usr/share/mime/packages/</p>
<p>Try this on the machine with the server:</p>
<p>cd <span style="font-family: "Titillium Web", Arial, Helvetica, sans-serif; font-size: 16px; color: rgb(64, 66, 68); background-color: rgb(255, 255, 255);">
/usr/share/mime/packages/</span></p>
<p><span style="font-family: "Titillium Web", Arial, Helvetica, sans-serif; font-size: 16px; color: rgb(64, 66, 68); background-color: rgb(255, 255, 255);">grep application/x-extension-html *<br>
<br>
If it finds a match, check which file has a match and what installed the file. Removing the file may resolve the problem.</span></p>
<p>Peter</p>
<br>
</blockquote>
<p><br>
</p>
<p>Apparently the mime database on linux is generated from the files in /usr/share/mime/packages. the freedesktop.org.xml file in that directory should contain entries for html and common extensions. If anything is changed the database is regenerated using
"sudo update-mime-database /usr/share/mime/". I believe update-mime-database will also be run by apt when you install a package.</p>
<p>Perhaps your freedesktop.org.xml file has been corrupted.</p>
<p>This applies to ubuntu. Other distributions may be different.</p>
<p><br>
</p>
<blockquote>
<blockquote>
<hr style="display: inline-block; width: 98%;">
</blockquote>
</blockquote>
</body>
</html>