REST API: Wildcard application name ("*") silently dropped when nested inside POST /vhosts payload #2164
Unanswered
Mengsreang-Chhoeung
asked this question in
Help
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi OME Team,
I am currently using OvenMediaEngine (v0.20.5) and managing configuration dynamically via the REST API. I encountered an inconsistent behavior when trying to provision a Virtual Host and its Applications in a single nested payload.
The Issue
When creating a Virtual Host using the
POST /vhostsendpoint, nesting an application with a concrete name (e.g., "name": "live") successfully saves both the Virtual Host and the Application structure.However, if I change the application name to a wildcard (
"name": "*"), the Virtual Host is created, but theapplicationsarray is silently dropped/ignored. No error or validation failure is returned by the API.Steps to Reproduce
POSTrequest to{{baseUrl}}/vhostswith the following payload:[ { "name": "dynamic_vhost_test", "distribution": "", "host": { "names": [ "*" ] }, "originMapStore": { "redisServer": { "host": "redis.local:6379" } }, "applications": [ { "name": "*", "type": "live", "providers": { "ovt": {} }, "publishers": { "hls": {}, "llhls": {}, "webrtc": {} }, "outputProfiles": { "outputProfile": [ { "name": "abr_stream", "outputStreamName": "${OriginStreamName}", "encodes": { "audios": [{ "name": "bypass_audio", "bypass": true }], "videos": [{ "name": "bypass_video", "bypass": true }] } } ] } } ] } ]dynamic_vhost_testexists, but itsapplicationslist is empty.Workaround
I can work around this by splitting the logic into two sequential API calls:
POST /vhosts(creating the vhost alone)POST /vhosts/dynamic_vhost_test/apps(sending the wildcard app configuration)Questions
Thank you for your hard work on OME!
All reactions