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

Generate short URL, seem to not respect server.basePath setting. #6127

Closed
jakommo opened this issue Feb 5, 2016 · 9 comments
Closed

Generate short URL, seem to not respect server.basePath setting. #6127

jakommo opened this issue Feb 5, 2016 · 9 comments
Assignees
Labels
bug Fixes for quality problems that affect the customer experience v4.5.2

Comments

@jakommo
Copy link
Contributor

jakommo commented Feb 5, 2016

Generate short URL doesn't work and throws Url Shortener: Error 404 Not Found: undefined if running behind a proxy and with a basePath other than /.

Steps to reproduce:

kibana.yml: server.basePath: "/kibana4"

Apache 2

<VirtualHost 172.17.0.5:80> 

ErrorLog /var/log/apache2/test-error_log 
TransferLog /var/log/apache2/test-access_log 

ProxyRequests On 
ProxyPass /kibana4/ http://127.0.0.1:5601/ connectiontimeout=60 timeout=300 
ProxyPassReverse /kibana4/ http://127.0.0.1:5601/ 
<Proxy *> 
Order deny,allow 
Allow from all 
</Proxy> 
</VirtualHost>

Clicking on Generate short URL in a dashboard results in:

...
172.17.0.1 - - [05/Feb/2016:11:36:26 +0000] "POST /kibana4/elasticsearch/_msearch?timeout=0&ignore_unavailable=true&preference=1454672173040 HTTP/1.1" 200 203
172.17.0.1 - - [05/Feb/2016:11:36:44 +0000] "POST /shorten HTTP/1.1" 404 280

All the other operations seem to work fine, only /shorten does not use the /kibana4/ basePath.

Running the same apache config with ProxyPass / instead of ProxyPass /kibana4/ fixes this.

@SJovic777
Copy link

+1 (same issue)

@schast
Copy link

schast commented Feb 11, 2016

+1

@rashidkpc rashidkpc added bug Fixes for quality problems that affect the customer experience P1 labels Feb 12, 2016
@DavidJFelix
Copy link

+1

@jbudz
Copy link
Member

jbudz commented Mar 2, 2016

Fixed in #6353

@jbudz jbudz closed this as completed Mar 2, 2016
@DavidJFelix
Copy link

👍 @jbudz

@STeveShary
Copy link

Thanks.

@volter
Copy link

volter commented Mar 11, 2016

I just tried 4.4.2 and while a URL is generated, the eventual result appears to be wrong:

https://example.com/office/kibana/ is the base URL. Shortened links look like https://example.com:443/office/kibana/goto/6c3ca36b4d95d110efdff1ca8c668e8a and eventually resolve into https://example.com/office/kibanahttps://example.com/office/kibana/app/kibana.

@seang-es
Copy link

We are seeing this as well with 4.4.2. Reopening.

For example, if i paste in a URL such as this:

https://ves-kibana-test.ebiz.site.com:443/vapews/goto/66e3a8b5da312edfe99cf4d2cee283f4

It loads and then redirects into this:

https://ves-kibana-test.ebiz.site.com/vapewshttps://ves-kibana-test.ebiz.site.com/vapews/app/kibana#/dashboard/CMIS-Dashboard?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-15m,mode:quick,to:now))&_a=(filters:!(),options:(darkTheme:!f),panels:!((col:1,id:idname,panelIndex:1,row:1,size_x:8,size_y:4,type:visualization),(col:9,id:idname,panelIndex:2,row:1,size_x:4,size_y:4,type:visua...

@seang-es seang-es reopened this Mar 16, 2016
@rashidkpc
Copy link
Contributor

@jbudz this seems to still be occurring, can you take a look at it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience v4.5.2
Projects
None yet
Development

No branches or pull requests

10 participants