Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

failed to show local scan report on Modern.ie #61

Closed
zhangpy opened this issue Jul 9, 2014 · 5 comments
Closed

failed to show local scan report on Modern.ie #61

zhangpy opened this issue Jul 9, 2014 · 5 comments

Comments

@zhangpy
Copy link

zhangpy commented Jul 9, 2014

image
Click "Create Peport" button. It will jump to Modern.ie page and shows empty only.
image

@kuyky01
Copy link

kuyky01 commented Jul 15, 2014

Hi all,
I have the same problem in my environment. I have reviewed index.html code, and the action for Create Report button is set to http://www.modern.ie/report/local:

Aditionally, check-compatlist.js has an error on code, so I have commented the code block to get it working:

// TODO: The compat tag may not be recognized if it is "too far down" the page; detect this.
// var compatTag = website.$('meta[http-equiv]').filter(function(){
// return this[0].attrib['http-equiv'].toLowerCase() === 'x-ua-compatible';
// });

// if (compatTag.length > 0) {
// if (compatTag[0].attribs.content) {
// var mode = compatTag[0].attribs.content.toLowerCase();
// if (mode.indexOf("edge") === -1) {
// test.passed = false;
// test.data = { source: 'tag', mode: mode};
// deferred.resolve(test);
// return deferred.promise;
// }
// }
// }

Any help will be appreciated.

Thanks!

@nsbingham
Copy link
Contributor

@kuyky01 To view the report on the site, you can switch the URL from using the HTTP protocol to HTTPS. You can see the change in pull request #62. I can't help with the check-compatlist.js issue.

@kuyky01
Copy link

kuyky01 commented Jul 17, 2014

@nsbingham Thank you for your reply. I have changed the code for call over HTTPS, but still having the issue :(
May be the root cause of the problem the JSON format? Are there a way to upload returned JSON?
thanks in advance.

@kuyky01
Copy link

kuyky01 commented Jul 23, 2014

Hi all.

Does someone successfully created a report from local execution? If yes, could send me a compressed file with the modern.IE-static-code-scan-master folder code that is running locally?

Our environment is configured as follow (over Windows Server 2008 R2)
python-2.7.8 (https://www.python.org/ftp/python/2.7.8/python-2.7.8.msi)
node-v0.10.29-x86 (http://nodejs.org/dist/v0.10.29/node-v0.10.29-x86.msi)
Git-1.9.4-preview20140611 (https://github.com/msysgit/msysgit/releases/download/Git-1.9.4-preview20140611/Git-1.9.4-preview20140611.exe)
modern.IE-static-code-scan-master (https://github.com/InternetExplorer/modern.IE-static-code-scan/archive/master.zip)

Any help or update will be appreciated.
Thanks in advance.

@luizen
Copy link

luizen commented Sep 5, 2014

It can be fixed by following the recommendation in the following commit:

3ca22ed

In short, changing from HTTP to HTTPS in index.html. I tested here and it worked.

molant added a commit that referenced this issue Sep 7, 2014
@molant molant closed this as completed Sep 7, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants