Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 542879

Summary: CSS not working anymore for pages on download.eclipse.org
Product: Community Reporter: Didier Vojtisek <didier.vojtisek>
Component: WebsiteAssignee: phoenix.ui <phoenix.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: chris.guindon, denis.roy
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Didier Vojtisek CLA 2018-12-18 04:28:24 EST
Hi

in GEMOc project we have a couple of html pages that goes to download.eclipse.org

for example
https://download.eclipse.org/gemoc/packages/nightly/index.html

This page has been added in order to slightly change the default output of pages such as https://download.eclipse.org/gemoc/packages/?d in order to provide some additional information (build date and additional useful links).


This page was presenting fine some time ago (I'm sure that it was working in July 2018)  but now the presentation fails. 

Is there any specific configuration on the web server that prevents to load the CSS?
Comment 1 Didier Vojtisek CLA 2018-12-18 04:45:01 EST
I've fixed the link to css in the html sorry for that
Comment 2 Denis Roy CLA 2018-12-18 09:55:55 EST
I think you have static links to images, such as:
<img src='http://dev.eclipse.org/small_icons/actions/edit-copy.png'><a href='/gemoc/packages/nightly/gemoc_studio-linux.gtk.x86.zip'> gemoc_studio-linux.gtk.x86.zip</a><br />

I suggest you change 
<img src='http://dev.eclipse.org/small_icons/

to:
<img src='//dev.eclipse.org/small_icons/


That way there won't be a warning if a user accesses the page in https
https://download.eclipse.org/gemoc/packages/nightly/index.html
Comment 3 Didier Vojtisek CLA 2018-12-19 10:44:14 EST
thanks for the point about the https access to the images

However, I still have some error when I look in chrome web developer console when opening these pages.

"
Refused to execute script from 'https://download.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/main.min.js' because its MIME type ('text/x-js') is not executable, and strict MIME type checking is enabled.
"

This actually occurs on all download pages for any project I tried

(like https://download.eclipse.org/technology/subversive/4.0/ or https://download.eclipse.org/sirius/ and others)

It seems that none of the .js files hosted on download.eclipse.org will be processed. 



(maybe we should open another issue since this is not a css issue but js issue ?)
Comment 4 Denis Roy CLA 2018-12-19 16:59:53 EST
Here is fine :)

I've posted a fix for review, will be deployed in about 16 hours.
Comment 5 Christopher Guindon CLA 2019-02-19 12:25:04 EST
(In reply to Denis Roy from comment #4)
> Here is fine :)
> 
> I've posted a fix for review, will be deployed in about 16 hours.

I still see an error:

Refused to execute script from 'https://download.eclipse.org/eclipse.org-common/themes/solstice/public/javascript/main.min.js' because its MIME type ('text/x-js') is not executable, and strict MIME type checking is enabled.
Comment 6 Christopher Guindon CLA 2019-03-04 11:54:00 EST
(In reply to Christopher Guindon from comment #5)
> (In reply to Denis Roy from comment #4)
> > Here is fine :)
> > 
> > I've posted a fix for review, will be deployed in about 16 hours.
> 
> I still see an error:
> 
> Refused to execute script from
> 'https://download.eclipse.org/eclipse.org-common/themes/solstice/public/
> javascript/main.min.js' because its MIME type ('text/x-js') is not
> executable, and strict MIME type checking is enabled.

The error seems gone now.

Closing this bug.