[asterisk-bugs] [JIRA] (ASTERISK-26320) ari.asterisk.org resets values on page reload
Sébastien Duthil (JIRA)
noreply at issues.asterisk.org
Fri Aug 26 14:29:56 CDT 2016
[ https://issues.asterisk.org/jira/browse/ASTERISK-26320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=231977#comment-231977 ]
Sébastien Duthil edited comment on ASTERISK-26320 at 8/26/16 2:28 PM:
----------------------------------------------------------------------
I did not find any Git repo for ari.asterisk.org, so here is a small patch for http://ari.asterisk.org/index.html
I fixed two issues:
* the URL is not reset if already set
* the api_key authorization is sent at page load, if user:password is already set
was (Author: sduthil):
Here is a small patch for http://ari.asterisk.org/index.html
I fixed two issues:
* the URL is not reset if already set
* the api_key authorization is sent at page load, if user:password is already set
> ari.asterisk.org resets values on page reload
> ---------------------------------------------
>
> Key: ASTERISK-26320
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-26320
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Environment: Browser: Iceweasel 44.0
> Asterisk: 13.10.0
> Reporter: Sébastien Duthil
> Severity: Trivial
> Attachments: index.html.diff
>
>
> Given I have configured Asterisk to serve the ARI swagger doc on http://mybox:1234/, with a user "me", password "opensesame"
> Given I open my browser on http://ari.asterisk.org
> Given I set the values (URL, user:password) and click Explore
> Given I see correctly the Swagger doc
> When I reload the page
> Then the Swagger URL is reset to the default http://localhost:8088/...
> Then the user:password are still set correctly
> Then the Swagger doc is not displayed anymore, it reads:
> Can't read from server. It may not have the appropriate access-control-origin settings.
> What I'd expect:
> * The URL does not change (since the user:password are not reset)
> * The swagger doc is reloaded and displayed along with the page
> My use case is actually that I always keep http://ari.asterisk.org in a background tab in my browser, because it's a really useful documentation when developing ARI applications. Eventually I close my browser and I start it back up. Then it reloads the tabs of my previous session, including http://ari.asterisk.org, but I can't use the Swagger doc directly, and I have to reconfigure the URL, user and password. I found out that loading the tabs of the previous session is the same scenario than directly reloading the page from the browser.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list