Details
-
Type: Bug
-
Status: Closed
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 4.0
-
Fix Version/s: EE-4.0.0.GA, 4.1
-
Component/s: Sample Apps
-
Labels:None
-
Environment:Tomcat 7 with SSL configuration. IOS 7.x, android 4.4.2, IE 11, FF 34, Chrome 41 desktop browsers. showcase-mobile native demos
-
Assignee Priority:P1
-
Affects:Documentation (User Guide, Ref. Guide, etc.), Compatibility/Configuration
Description
showcase-mobile demos that use file upload such as camera, camcorder, microphone fail when server is in SSL mode.
Intially native demos would fail immediately with a modal block of page and the following console error.
SCRIPT5: Access is denied.
File: bridge-support.js.jsf, Line: 1061, Column: 1.
Added this context-param in web.xml in order to get the pages to load
<context-param>
<param-name>org.icefaces.mobi.bridgeit.javaScriptURI</param-name>
<param-value>https://api.bridgeit.mobi/bridgeit/v1.x-latest/bridgeit.js</param-value>
</context-param>
Pages would indeed load but on a desktop browser the camera demo fails when trying to upload image
Blocked loading mixed active content "http://10.18.39.120:8443/showcase/javax.faces.resource/auxupload.txt.jsf"
https://10.18.39.120:8443/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_150324 line 2 > eval
Line 334.
On a mobile device, the camera, camcorder and microphone all fail in the same manner. Thumbnails where applicable are rendered but the full size image file can not be viewed.
Intially native demos would fail immediately with a modal block of page and the following console error.
SCRIPT5: Access is denied.
File: bridge-support.js.jsf, Line: 1061, Column: 1.
Added this context-param in web.xml in order to get the pages to load
<context-param>
<param-name>org.icefaces.mobi.bridgeit.javaScriptURI</param-name>
<param-value>https://api.bridgeit.mobi/bridgeit/v1.x-latest/bridgeit.js</param-value>
</context-param>
Pages would indeed load but on a desktop browser the camera demo fails when trying to upload image
Blocked loading mixed active content "http://10.18.39.120:8443/showcase/javax.faces.resource/auxupload.txt.jsf"
https://10.18.39.120:8443/showcase/javax.faces.resource/bridge.js.jsf?ln=ice.core&v=4_0_0_150324 line 2 > eval
Line 334.
On a mobile device, the camera, camcorder and microphone all fail in the same manner. Thumbnails where applicable are rendered but the full size image file can not be viewed.
Modified AuxUploadSetup.getUploadURL method to generate a URL that uses the same protocol as the rest of the application. Previously the protocol was hardcoded to http.