Icons loading issue in Jenkins behind Netscaler.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Icons loading issue in Jenkins behind Netscaler.

Vishnu V Potti
Hi All,

 I have a Jenkins accessed via Netscaler endpoint. https://company.internal.com/jenkins.    
 Earlier I used to access via host:8080 format. i.e http://host:8080/jenkins and everything was working.    It still works fine when accessed like that. 
 
At Netscaler side, we set "x-forwarded-proto" = https header and http to https redirection. Functionality wise works ok. Now I am seeing issues where the login screen logo wont load and some plugin icons wont load.      

Images below.

https://imgur.com/sRPjD4D


I debugged as seen below. I navigated to the url which was formed. The image doesn't exist in that location. But if I access via the host then it can be accessed. The two urls are below.

`https://company.internal.com/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png` Doesnt work
`http://host:8080/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png` Works


https://imgur.com/iMnJygh


https://imgur.com/vVCqGUG

Any idea what's going wrong and how can I resolve these issues? Although these doesnt impact functionality I would like to fix them.

  What i did so far w.r.t debugging.
1) Referenced this link https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy  and made some modifications. Nothing worked.
2) Installed Simple Theme Plugin and could resolve jenkins logo issue in the inner pages ,but not in the login page.


Thanks in advance.
Vish

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/932e71df-edac-4cb4-bac4-617b921562d4o%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Icons loading issue in Jenkins behind Netscaler.

Mark Waite-2
I attempted to post this through the Google Groups web interface but it seems to have failed.  My apologies if it later arrives as a duplicate reply.

Configuring a reverse proxy can be complicated.  Icons that fail to load is one of the indications of the complications.

One of the Jenkins Hackfest contributors combined efforts with a reverse proxy expert and submitted pull request 3386 to describe various scenarios in reverse proxy configuration.  It would be much appreciated if you would review the current proposal to see if it helps in your case.  If it helps, that is great.  If it does not help, please add comments to the pull request based on what you learn during your investigation.

Thanks,
Mark Waite

On Wed, Jul 8, 2020 at 6:59 AM Vishnu V Potti <[hidden email]> wrote:
Hi All,

 I have a Jenkins accessed via Netscaler endpoint. https://company.internal.com/jenkins.    
 Earlier I used to access via host:8080 format. i.e http://host:8080/jenkins and everything was working.    It still works fine when accessed like that. 
 
At Netscaler side, we set "x-forwarded-proto" = https header and http to https redirection. Functionality wise works ok. Now I am seeing issues where the login screen logo wont load and some plugin icons wont load.      

Images below.

I debugged as seen below. I navigated to the url which was formed. The image doesn't exist in that location. But if I access via the host then it can be accessed. The two urls are below.

`https://company.internal.com/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png` Doesnt work
`http://host:8080/jenkins/static/e0c7cecc/plugin/credentials/images/24x24/credentials.png` Works



Any idea what's going wrong and how can I resolve these issues? Although these doesnt impact functionality I would like to fix them.

  What i did so far w.r.t debugging.
1) Referenced this link https://wiki.jenkins.io/display/JENKINS/Configuring+Content+Security+Policy  and made some modifications. Nothing worked.
2) Installed Simple Theme Plugin and could resolve jenkins logo issue in the inner pages ,but not in the login page.


Thanks in advance.
Vish

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/932e71df-edac-4cb4-bac4-617b921562d4o%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGsWkkhuRzXrSwSHfWvFRp6ybcF_Q4yDFhcAT%3DjtKAeZA%40mail.gmail.com.