splunk / splunkforjenkins

19 stars 55 forks source link

Issue with URL settings in js #13

Open jwiwo opened 5 years ago

jwiwo commented 5 years ago

Hi all,

our URL for Splunk Web is not set as defined by default (i.e., splunkserver:8000/en-US/app/splunk_app_jenkins/viewname), but we additionally set the hostname in the URL (i.e., splunkserver:8000/hostname/en-US/app/splunk_app_jenkins/viewname). When clicking on any view in the app the view is blank due to the additionally set hostname in the URL. When changing this in the js scripts (we hardcoded the hostname in the corresponding settings in the js scripts for all views), the language settings in the Job Insight, Audit Trail and Jenkins Health views are not adapted dynamically according to the users browser settings and hence are still blank. E.g. when the users default browser language is set to de-DE, the before mentioned sites are blank, all others work as expected. When the user then manually changes the language de-DE to en-US, the sites show the expected results.

Is there any difference in the language settings for these sites compared to the other views of the Jenkins app? And could the corresponding settings be changed in a way that the URLs in any format are accepted by the Splunk App for Jenkins? - this would especially be important for us since otherwise the view's js scripts would need to be troubleshooted and changed any time we update the app, which is really tedious. Or could you think of any better way to overcome this issue?

We are using Splunk Enterprise 7.2.6 Splunk App for Jenkins 2.0.1

Thanks and BR

jwiwo commented 5 years ago

APPENDIX: Even if we use the app on a server following the standard URL definition for Splunk Web (i.e., splunkserver:8000/en-US/app/splunk_app_jenkins/viewname), setting another language as en-US on Job Insight, Audit Trail and Jenkins Health only returns a blank page; changing the language to en-US returns the expected views. On all other sites except the mentioned ones, the language settings work just fine. As most of our users have their Browser language set to german, we would be glad if this could be solved in an elegant way other than forcing our users to define english as their default browser language... Thanks and BR

deepamshah20 commented 5 years ago

We have some users with language set to en-GB or en-US .