[asterisk-bugs] [JIRA] (ASTERISK-29342) basePath in /rest-api/resources.json is always replaced with http:// scheme
sky5media (JIRA)
noreply at issues.asterisk.org
Thu Mar 11 14:23:15 CST 2021
sky5media created ASTERISK-29342:
------------------------------------
Summary: basePath in /rest-api/resources.json is always replaced with http:// scheme
Key: ASTERISK-29342
URL: https://issues.asterisk.org/jira/browse/ASTERISK-29342
Project: Asterisk
Issue Type: Bug
Security Level: None
Components: Resources/res_ari
Affects Versions: 18.2.2
Reporter: sky5media
For some reason http:// scheme is hardcoded for basePath parameter
in
https://github.com/asterisk/asterisk/blob/ae4a3da5570e2c49a1f200700fde856de93f6e6c/res/res_ari.c#L707
This breaks node-ari-client when connecting through TLS
for example if our URL is https://localhost:8089
Swagger client fetches /rest-api/resources.json where
"basePath": "http://localhost:8089"
notice http:// scheme
and then it stuck while trying to get other API declarations, because API urls are replaced with http:// scheme from basePath
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list