Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1316: Safari 403 error on k/v page of web UI #1321

Merged
merged 1 commit into from
Oct 20, 2015
Merged

Fix #1316: Safari 403 error on k/v page of web UI #1321

merged 1 commit into from
Oct 20, 2015

Conversation

daveadams
Copy link
Contributor

For whatever reason, Safari is passing null as the value for token to the formatURL function when displaying the key-value page. When the null value is force-converted to a string, it becomes "null", which then fails to pass ACL security tests (unless there actually is an ACL with a token of "null").

This converts any null value token to the empty string instead, which will then render correctly.

Should fix #1316.

If the token argument to formatURL is null, it should be rendered as the
empty string and not the string 'null'.

Should fix #1316 in which Safari gets a 403 error when visiting the
key/value page in the web UI.
@ryanbreen
Copy link
Contributor

Cool, thanks.

ryanbreen added a commit that referenced this pull request Oct 20, 2015
Fix #1316: Safari 403 error on k/v page of web UI
@ryanbreen ryanbreen merged commit b1a335d into hashicorp:master Oct 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

safari UI bug when acl_datacenter set
2 participants