Skip to content

Should we use sabr: instead of sabr:// for SABR URL detection & construction? #32

@PikachuEXE

Description

@PikachuEXE

Question

From https://stackoverflow.com/a/52065335 & https://www.rfc-editor.org/rfc/rfc3986#section-3.1

scheme: //authority /path

  URI         = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

  hier-part   = "//" authority path-abempty
              / path-absolute
              / path-rootless
              / path-empty

Since there seems to be no authority part for SABR URLs, URL like sabr://audio?whatever would have hostname set to audio while I think the RFC expected sabr:audio?whatever without //

Other details

Got this while investigating FreeTubeApp/FreeTube#7919 (comment)
CMCD manager with SABR URLs (though with the right SABR URL it still causes infinite loop which is another issue

Checklist

  • I am running the latest version.
  • I checked the documentation and found no answer.
  • I have searched the existing issues and made sure this is not a duplicate.
  • I have provided sufficient information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions