<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'><font face="arial, helvetica, sans-serif"><span style="font-size: 10pt;">---</span></font><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><span style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">> What's curious (and the bug) is the lack of CSS when APP_URL points to a</span><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><span style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">> site that has a redirect.</span><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><span style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">This is not unusual in modern browsers: if the main site is https and it</span><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><span style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">tries to pull in non-HTTPS resources, the browser (current Chrome, and</span><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><span style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">same for Firefox afaik) won't even make the attempt to pull the resource</span><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><span style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">and so will not even see the redirect.</span><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><span style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">In other words: normal, expected and safe behaviour enforcement by your</span><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><span style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">browser.</span><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><br style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;"><span style="font-family: Helvetica, Arial, sans-serif; font-size: 16px;">You'll see the fails in developer tools if enabled.</span></div><div><font face="Helvetica, Arial, sans-serif">---<br><br><br>Ah, the luxury of modern browsers not only making decisions for you, but not even telling you that it made a decision. I had a similar issue when Cloudflare-enabling my site.<br></font><br><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><span name="x"></span><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; display: inline ! important; float: none;">-----</span><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><span style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; display: inline ! important; float: none;">Mike Hammett</span><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="http://www.ics-il.com/" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">Intelligent Computing Solutions</a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="https://www.facebook.com/ICSIL" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/fbicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/fbicon.png"></a><a href="https://plus.google.com/+IntelligentComputingSolutionsDeKalb" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/googleicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/googleicon.png"></a><a href="https://www.linkedin.com/company/intelligent-computing-solutions" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/linkedinicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/linkedinicon.png"></a><a href="https://twitter.com/ICSIL" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/twittericon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/twittericon.png"></a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="http://www.midwest-ix.com/" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">Midwest Internet Exchange</a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="https://www.facebook.com/mdwestix" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/fbicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/fbicon.png"></a><a href="https://www.linkedin.com/company/midwest-internet-exchange" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/linkedinicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/linkedinicon.png"></a><a href="https://twitter.com/mdwestix" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/twittericon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/twittericon.png"></a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="http://www.thebrotherswisp.com/" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;">The Brothers WISP</a><br style="color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><a href="https://www.facebook.com/thebrotherswisp" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/fbicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/fbicon.png"></a><a href="https://www.youtube.com/channel/UCXSdfxQv7SpoRQYNyLwntZg" style="font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;"><img src="http://www.ics-il.com/images/youtubeicon.png" style="border: 0pt none;" src="http://www.ics-il.com/images/youtubeicon.png"></a><span name="x"></span><br></div><hr id="zwchr" style="font-family: arial, helvetica, sans-serif; font-size: 10pt;"><div style="font-family: Helvetica, Arial, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none;"><b>From: </b>"Barry O'Donovan" <barry.odonovan@inex.ie><br><b>To: </b>"INEX IXP Manager Mailing List" <ixpmanager@inex.ie><br><b>Sent: </b>Wednesday, October 18, 2017 1:16:48 AM<br><b>Subject: </b>Re: [ixpmanager] Bug in rendering of the Router screen<br><br>Hi Mark,<br><br>Mark Prior wrote:<br>> I've been playing with IXP manager on my Debian system (so I've had to<br>> take the manual installation path) <br><br>Cool, should be mostly the same as our default of Ubuntu with some minor<br>tweaks.<br><br>The two references for this (for other people reading this email are):<br><br>http://docs.ixpmanager.org/install/manually/<br><br>and the all-in-one scripts is the best documentation:<br><br>http://docs.ixpmanager.org/install/automated-script/<br><br>If you want to contribute (and will maintain) a Debian version of this,<br>we'd be happy to have it. Just open a PR - see:<br><br>https://github.com/inex/IXP-Manager/blob/master/CONTRIBUTING.md<br><br>NB: if our documentation is /anyway/ lacking, please PLEASE contribute<br>back suggestions via:<br><br>http://docs.ixpmanager.org/dev/docs/<br><br>> Initially I was lazy and hadn't changed the default setting for APP_URL<br>> in the .env file and while the other screens worked fine (I could create<br>> Customers, Infrastructures, Switches, etc) the Router screen gave the<br>> appearance of missing the CSS.<br><br>Right, so that's the difference between the current two two frameworks<br>in use (Zend Framework which is being migrated to Laravel).<br><br>The ones that worked were ZF, the ones that didn't were Laravel.<br><br>> Note I don't have a web service listening<br>> on port 8088 (which is the default value for APP_URL).<br><br>You must be looking at a different file, the sample config is<br>'localhost' via:<br><br>https://github.com/inex/IXP-Manager/blob/master/.env.example<br><br><br>> I edited the .env file to include the URL for the web site but neglected<br>> to change http to https and got the same result, ie missing CSS. Note<br>> that there is a redirect in the apache configuration so when you try to<br>> display /router/list there is a 302 redirect to the https site (although<br>> the initial login redirects you to the https site if there wasn't an<br>> absolute URL being used later).<br>> <br>> I eventually worked out that I was missing the "s" and changed APP_URL<br>> appropriately and now I get the raft of CSS and JS files loaded so that<br>> the Routers screen renders properly.<br><br>Cool.<br><br>> What's curious (and the bug) is the lack of CSS when APP_URL points to a<br>> site that has a redirect.<br><br>This is not unusual in modern browsers: if the main site is https and it<br>tries to pull in non-HTTPS resources, the browser (current Chrome, and<br>same for Firefox afaik) won't even make the attempt to pull the resource<br>and so will not even see the redirect.<br><br>In other words: normal, expected and safe behaviour enforcement by your<br>browser.<br><br>You'll see the fails in developer tools if enabled.<br><br> - Barry<br><br><br>-- <br><br>Kind regards,<br>Barry O'Donovan<br>INEX Operations<br><br>https://www.inex.ie/support/<br>+353 1 531 3339<br><br><br>_______________________________________________<br>INEX IXP Manager mailing list<br>ixpmanager@inex.ie<br>https://www.inex.ie/mailman/listinfo/ixpmanager<br></div><br></div></div></body></html>