Closed andybee closed 3 years ago
This will be more of an implementation question for the EBU service, rather than a bug in the code, although happy to discuss here.
Looking at ETSI TS 102 818, I can see:
10.5.1 General
Because documents are returned via HTTP or HTTPS, the HTTP specification [3] should be correctly implemented.
Attention is particularly drawn to the status codes section, which may be used to indicate problems and failures during
attempts to retrieve documents.
In particular, the following behaviours shall be adhered to:
• a device shall correctly follow any HTTP redirects that are returned when retrieving a document;
• a device shall respect any indicated document expiry in the HTTP response;
• it is recommended that devices cache retrieved documents, as per the HTTP specification.
This suggests this redirect is valid, unless you can see a conflict with the RadioDNS Core Lookup specification?
The issue isn't with the use of redirect, but the fact that the redirect moves the request from HTTP to HTTPS.
My understanding is that a request that starts over HTTP should not migrate to HTTPS to ensure a receiver without SSL support can understand the response. If, however, the request started over HTTPS, this is not an issue.
In my test request I ensured the client was not indicating HTTPS support via headers etc.
I'm not aware of a hard and fast rule here, and a very brief search shows that it does happen. Some people warn its not a good idea.
Again, this likely an implementation issue, so I can take it back to the EBU.
When requesting an SI document (e.g. http://sirtvs.epg.radio.ebu.io/radiodns/spi/3.1/SI.xml) the following redirect occurs:
Although it is valid within the SPI specification to redirect, the URL must be HTTP for a request originating from a
_radioepg._tcp
SRV lookup.