Opened 4 years ago

Last modified 3 years ago

#13589 closed Bug Report - General

Bugs in backend serviceAPIs — at Version 5

Reported by: Peter Bennett Owned by: Peter Bennett
Priority: minor Milestone: 32.0
Component: MythTV - Services API - Backend Version: Master Head
Severity: medium Keywords:
Cc: Ticket locked: no

Description (last modified by Peter Bennett)

The leanfront frontend for MythTV uses service APIs exclusively to support a fully functional frontend. In the process of developing this I have found some bugs in the service APIs:

  • File names in URLS should be url encoded (art urls). The way they currently are returned, the URL fails if a program title has a colon or other special character (e.g. Law and Order: Special Victim's Unit).
  • Redirect for download of files on slave backends use wrong URL. Redirects to host name as server address. This does not work if there is no DNS or the DNS name does not match the MythTV host name. The API should look up the IP address of the host in the settings and use that. (Note I cannot use the hosts file to resolve the address since the APIs are called from Android and you cannot update android system files).
  • Settings API returns nothing for null host id requests. Entries that are system wide have null host id and they should be able to be read.
  • GetRecordedList has parameters for selecting by RecordId, Start Time and many others. It seems that whatever you specify, you still get the full unfiltered list
  • Guide/GetProgramGuide has a problem if two channels have the same xmltvid. It only gets the programs on one of the channels and the other channel is omitted. This can happen for various reasons, e.g. the same channel is available on two frequencies. Mythfrontend does not have this problem, and Guide/GetProgramList does not have this problem.

Change History (5)

comment:1 Changed 4 years ago by Bill Meek

The answer to the last bullet is HostName?=_GLOBAL_ . I recall that the thinking was that a hostname could be "NULL".

Ref: deceaa46293510164e8d63da1c4be6c3e8149800

Last edited 4 years ago by Bill Meek (previous) (diff)

comment:2 Changed 4 years ago by Peter Bennett

Description: modified (diff)

comment:3 in reply to:  1 Changed 4 years ago by Peter Bennett

Replying to Bill Meek:

The answer to the last bullet is HostName?=_GLOBAL_ . I recall that the thinking was that a hostname could be "NULL".

Ref: deceaa46293510164e8d63da1c4be6c3e8149800

Thank you, I will try that.

comment:4 Changed 4 years ago by Peter Bennett

Description: modified (diff)

comment:5 Changed 4 years ago by Peter Bennett

Description: modified (diff)

Upon retesting, GetRecordedList filters are working correctly, and there is no filter for recordedid.

Last edited 4 years ago by Peter Bennett (previous) (diff)
Note: See TracTickets for help on using tickets.