You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found that it's possible to create a following config.yml with a fully working path url.
paths:
path/with/slash:
response:
[0/0] [path path/with/slash] created
The problem I'm having is that I'm not able to recreate this path via API. I've tried looking if there are any blocked characters in internal/core/api.go but I didn't find any line blocking name characters. Which leads me to believe that it's not possible to build such path when api url is: /v1/config/paths/add/:name as additional slashes make it so that it thinks it a different path.
Here is what I tried and didn't solve my problem
# Works
curl -X POST -d {} -H "application/json" localhost:9997/v1/config/paths/add/video-path
# Doesn't Work (404 page not found)
curl -X POST -d {} -H "application/json" localhost:9997/v1/config/paths/add/path/with/slash
curl -X POST -d {} -H "application/json" localhost:9997/v1/config/paths/add/path%2Fwith%2Fslash
# 200 response but no path added
curl -X POST -d {} -H "application/json" localhost:9997/v1/config/paths/add/path%5Cwith%5Cslash
# Works but doesn't work when trying to connect a client (rtsp-simple-server error: path must end with slash)
curl -X POST -d {} -H "application/json" localhost:9997/v1/config/paths/add/path.with.dot.separator
Is there any way to make it work currently, or is it possible to change url from /v1/config/paths/add and add pathName into POST data.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Which version are you using?
v0.17.3
Which operating system are you using?
OS
Architecture
Describe the issue
I found that it's possible to create a following config.yml with a fully working path url.
response:
The problem I'm having is that I'm not able to recreate this path via API. I've tried looking if there are any blocked characters in internal/core/api.go but I didn't find any line blocking name characters. Which leads me to believe that it's not possible to build such path when api url is:
/v1/config/paths/add/:nameas additional slashes make it so that it thinks it a different path.Here is what I tried and didn't solve my problem
Is there any way to make it work currently, or is it possible to change url from
/v1/config/paths/addand add pathName into POST data.I think that unreserved list that is available here https://en.wikipedia.org/wiki/Percent-encoding describes which characters are currently possible to use when making a path
All reactions