Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suspicious-looking URL handling in XlinkController #1380

Closed
davemevans opened this issue May 5, 2016 · 5 comments
Closed

Suspicious-looking URL handling in XlinkController #1380

davemevans opened this issue May 5, 2016 · 5 comments
Assignees
Labels
Awaiting Testvector Investigate stale To be used by automatic issue staling and closing to indicate that this issue is about to be closed

Comments

@davemevans
Copy link
Contributor

XlinkController.resolve has a number of statements which I think are either incorrect or completely broken.

  1. Testing URL against "http://" will break if assets are served from secure origins
  2. element.originalContent.BaseURL will almost certainly be broken with the new BaseURL resolution code
        for (i = 0; i < resolveObject.elements.length; i++) {
            element = resolveObject.elements[i];
            if (element.url.indexOf('http://') !== -1) {
                url = element.url;
            } else {
                url = element.originalContent.BaseURL + element.url;
            }
            xlinkLoader.load(url, element, resolveObject);
        }

Does anyone have any manifests which will exercise these issues? We don't have any XLink streams at all.

@dsilhavy, @AkamaiDASH etc

@davemevans
Copy link
Contributor Author

(1) is addressed by PR #1416.
(2) is more complicated.

Workaround for (2): all xlink:href should be absolute HTTP-URLs.

@dsilhavy
Copy link
Collaborator

dsilhavy commented Jan 9, 2020

I just checked the latest DASH spec and it allows us to set the xlink:href url as an absolute url or a relative url using the BaseURL element:

"If a URI reference is relative then reference resolution as defined in subclause 5.6.4 shall apply"

I could not find a testvector in the testvector database covering that scenario so I will check with @eceozturk .

@dsilhavy dsilhavy added this to the Medium Priority Features milestone Jan 9, 2020
@eceozturk
Copy link

As @dsilhavy pointed out, there are no test vectors that could check the second part. However, I quickly created one for the testing purposes (and therefore not yet on the database web page):

This has a MPD@BaseURL element (with HTTP URL) and the Period@xlink:href value is relative. Let me know if this is satisfactory.

As a general information, this test vector is based on the existing test vector (in case a comparison or expected playback check is desired):

@dsilhavy dsilhavy removed this from the Xlink Support milestone Jan 20, 2020
@stale
Copy link

stale bot commented Feb 26, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale To be used by automatic issue staling and closing to indicate that this issue is about to be closed label Feb 26, 2021
@stale
Copy link

stale bot commented Mar 5, 2021

This issue has been automatically closed because no further activity occurred. If you think this issue is still relevant please reopen it. Thank you for your contributions.

@stale stale bot closed this as completed Mar 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Testvector Investigate stale To be used by automatic issue staling and closing to indicate that this issue is about to be closed
Projects
None yet
Development

No branches or pull requests

3 participants