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

Datasource follows relative redirect relatively to the grafana server #17383

Closed
roflmao opened this issue May 31, 2019 · 2 comments
Closed

Datasource follows relative redirect relatively to the grafana server #17383

roflmao opened this issue May 31, 2019 · 2 comments

Comments

@roflmao
Copy link

roflmao commented May 31, 2019

What happened:
Upgrading the backend of a datasource made the enabling a relative Location: instead of absolute. This is part of the plugin https://github.com/sni/grafana-pnp-datasource

What you expected to happen:
Follow the url specified in the URL of the datasource.

How to reproduce it (as minimally and precisely as possible):
Setup datasource URL: https://monitoring.X.us/site001/check_mk/ + With Credentials. Press Save&Test and i can see this url in the inspector:
http://grafana.x.us:3000/site001/check_mk/login.py?_origtarget=/site001/pnp4nagios/index.php/api
This should have been
https://monitoring.X.us/site001/check_mk/login.py?_origtarget=/site001/pnp4nagios/index.php/api
Anything else we need to know?:
Looks like this is the check_mk commit that changed to relative Location: Checkmk/checkmk@856cc3f
Environment:

  • Grafana version: 5.4.3/6.2.1
  • Data source type & version: grafana-pnp-datasource: 1.05
  • OS Grafana is installed on: Docker
  • User OS & Browser: Linux, Chrome
@torkelo
Copy link
Member

torkelo commented Jun 3, 2019

this a problem with your data source, not Grafana

@torkelo torkelo closed this as completed Jun 3, 2019
@torkelo
Copy link
Member

torkelo commented Jun 3, 2019

Sorry, was a bit quick. Think the problem is that there is a redirect here. Looks like the your TSDB auth setup is not working

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

No branches or pull requests

2 participants