kerberos-io / agent

An open and scalable video surveillance system for anyone making this world a better and more peaceful place.
https://kerberos.io
MIT License
642 stars 78 forks source link

rtsp url parse fails with special character in password #74

Open kevmando opened 1 year ago

kevmando commented 1 year ago

rtsp url parse gives the following error if password includes ^

{"level":"error","msg":"Something went wrong while opening RTSP: parse \"rtsp://{user_id}:{password including ^}@10.10.0.1:554": net/url: invalid userinfo","time":"2023-01-27T21:40:17+01:00"}
cedricve commented 1 year ago

Thanks for reporting, if you utilise "non-special" characters it does work?

kevmando commented 1 year ago

Yes, removing ^ works fine. (It also works with some special characters such as *,!, but not clear which ones are not supported.)

cedricve commented 1 year ago

We'll provide a fix for this, thank you @kevmando