macressler / alfresco-bulk-filesystem-import

Automatically exported from code.google.com/p/alfresco-bulk-filesystem-import
GNU Lesser General Public License v3.0
1 stars 0 forks source link

Status graphs don't work on SSL connections #134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Initiate an import
2. View the status screen

What is the expected output? What do you see instead?
Expected: The live graph showing the number of files read/written.  
Actual: A screen with graphs missing and an error on the console saying:

[blocked] The page at 
https://qa.docs.in.nokia.com/alfresco/service/bulk/import/filesystem/status ran 
insecure content from 
http://yui.yahooapis.com/3.8.0/build/simpleyui/simpleyui-min.js.
 status:1
Uncaught ReferenceError: Y is not defined 

What version of the product are you using? On what operating system?
alfresco-bulk-filesystem-import-33-1.2.1.amp
OSX Mavericks and Ubuntu 10.0.4 LTS

Please provide any additional information below.
By removing the protocol in the Yahoo API URLs the graphs will work in HTTP and 
HTTPS environments.
  <script src="http://yui.yahooapis.com/3.8.0/build/simpleyui/simpleyui-min.js"></script>

becomes

  <script src="//yui.yahooapis.com/3.8.0/build/simpleyui/simpleyui-min.js"></script>

This needs updated in status.get.html.ftl and ui.get.html.ftl

Original issue reported on code.google.com by ryan.f...@fifeventures.co.uk on 30 Oct 2013 at 3:48

GoogleCodeExporter commented 9 years ago
Have you tested that solution?  I'm fairly certain it won't work as Yahoo don't 
offer an SSL-enabled download of YUI (see 
http://yuilibrary.com/yui/docs/tutorials/faq/#does-yahoos-cdn-support-ssl).

The only solution I can see is to download YUI and include it in the importer, 
something I'd hoped to avoid...

Original comment by pmo...@gmail.com on 31 Oct 2013 at 3:25

GoogleCodeExporter commented 9 years ago

Original comment by pmo...@gmail.com on 31 Oct 2013 at 3:26

GoogleCodeExporter commented 9 years ago
I have tested it and using protocol relative URLs works on our
installation. Maybe the docs are out of date or SSL support is on the way
out.

Original comment by ryan.f...@fifeventures.co.uk on 31 Oct 2013 at 4:27

GoogleCodeExporter commented 9 years ago
When I hit https://yui.yahooapis.com/3.8.0/build/simpleyui/simpleyui-min.js I 
get an error, so I'm pretty certain their docs are up to date.

I wonder if you're seeing some browser specific behaviour - what happens when 
you try it on other browsers?

Original comment by pmo...@gmail.com on 31 Oct 2013 at 4:48

GoogleCodeExporter commented 9 years ago
You are correct. I think Chrome was being nice to me for some reason. It 
definitely does not work anymore. Sorry.  It appears that YUI 3.x over SSL 
isn't supported without installing the library on your own server. Sorry. I 
guess we can close this issue and I'll do a customised install for my situation.

Original comment by ryan.f...@fifeventures.co.uk on 31 Oct 2013 at 6:28

GoogleCodeExporter commented 9 years ago
Nah it's cool - let's leave it open as it is a valid issue.  I was just holding 
out hope that there was an easy fix.  ;-)

Original comment by pmo...@gmail.com on 31 Oct 2013 at 7:08

GoogleCodeExporter commented 9 years ago
Issue 144 has been merged into this issue.

Original comment by pmo...@gmail.com on 5 Dec 2013 at 5:03

GoogleCodeExporter commented 9 years ago
Migrated to https://github.com/pmonks/alfresco-bulk-import/issues/11

Original comment by pmo...@gmail.com on 12 Dec 2013 at 9:14