-
Notifications
You must be signed in to change notification settings - Fork 58
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
What is wrong with this URL? #42
Comments
Hello @neilyoung! 👋 we're sorry you found a bug... so first of all, thank you very much for reporting it. To know about progress, check in Triage. All issues are considered Backlog Candidates until work priorities align and the issue is selected for development. It will then become part of our official Backlog. |
The regexp does not cover the authentication case. |
Too bad. I patched out the erroneous test in Strange. Close to version 7 and nobody noticed that? |
Finally: curlhttpsink does obviously not support URL auth ala "http://username:password@..." in "location". There are two properties "user" and "passwd" which would have to be set. I can't see, how RecorderEndpoint would support that. |
Hi @neilyoung , are you building Kurento 7 from sources? This looked like an easy enough addition and today I had a couple hours to look into it, so I made this patch that adds support for it: it should be able to apply cleanly to Kurento 7 sources; something like:
What it does is use the GstUri class of GStreamer, to extract the Right now, these fields are just extracted, but still kept as part of the URL. So I hope the Also note an important limitation of GstUri as of GStreamer 1.16 (but fixed in newer versions which we don't support yet): it doesn't support user and pass with special characters. With current implementation, these are split at the first |
Thanks for dealing with this. Meanwhile I'm using another approach. Are you still interested to know, how I build KMS 7? I'm having Ansible scripts for this, but I'm sure I can derive a 5 liner, which runs from command line |
Prerequisites
These are MANDATORY, otherwise the issue will be automatically closed.
Issue description
Trying to make
curlhttpsink
run with an authenticated URL following the suggestion here: https://doc-kurento.readthedocs.io/en/latest/_static/client-javadoc/org/kurento/client/RecorderEndpoint.htmlI'm attempting to use this URL:
http://username:[email protected]:8080/api/record/abcde/1
It is rejected by the regex in
kms_is_valid_uri
(which is really wild).
This ends up in an error trace in KMS
Context
Authentication not working. Unauthenticated URL works
How to reproduce?
Just do it :)
Expected & current behavior
Should pass, since it complies to the pattern
(Optional) Possible solution
Info about your environment
About Kurento Media Server
The text was updated successfully, but these errors were encountered: