ICEfaces
  1. ICEfaces
  2. ICE-10589

mobile-showcase file uploads fail when using SSL server config.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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&lt;/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.
      1. log1.txt
        15 kB
        Liana Munroe
      2. log2.txt
        11 kB
        Liana Munroe

        Issue Links

          Activity

          Hide
          Mircea Toma added a comment - - edited

          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.

          Show
          Mircea Toma added a comment - - edited 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 .
          Hide
          Ken Fyten added a comment -
          <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>
          Show
          Ken Fyten added a comment - <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>
          Hide
          Liana Munroe added a comment -

          Tested with ICEfaces EE-4.0.0 r41315, ICEfaces 4 r44320.
          The issues related to desktop browser appear to be fixed, no js errors in console and image is uploaded and displayed as expected.
          When testing on mobile device these issues are not resolved...
          android - The demo fails as per the description, No file can be uploaded and the "Uploaded file could not be correctly processed" message appears.
          ios - Since the latest fix the demo now stalls when returning from bridgeIt after taking a picture, recording a video or using the microphone.

          Show
          Liana Munroe added a comment - Tested with ICEfaces EE-4.0.0 r41315, ICEfaces 4 r44320. The issues related to desktop browser appear to be fixed, no js errors in console and image is uploaded and displayed as expected. When testing on mobile device these issues are not resolved... android - The demo fails as per the description, No file can be uploaded and the "Uploaded file could not be correctly processed" message appears. ios - Since the latest fix the demo now stalls when returning from bridgeIt after taking a picture, recording a video or using the microphone.
          Hide
          Liana Munroe added a comment -

          The following log was captured during a failed attempt to use the camera demo on android device:
          [icepush.ceaf9.async-connection] [Fri, 27 Mar 2015 17:18:36 GMT] Blocking connection cannot be shared among multiple web-contexts.
          Initiating blocking connection for "." web-context...
          bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812
          [icepush.ceaf9] [Fri, 27 Mar 2015 17:18:36 GMT] bridge loaded!
          bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.async-connection] [Fri, 27 Mar 2015 17:18:37 GMT] connection monitoring started within window ceaf9
          bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:38 GMT] resume monitoring for unused pushIDs
          bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812
          [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:47 GMT] stopped monitoring for unused pushIDs
          bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812
          [icepush.ceaf9.async-connection] [Fri, 27 Mar 2015 17:18:55 GMT] initialize connection within window ceaf9
          bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:55 GMT] stopped monitoring for unused pushIDs
          bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812
          [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:55 GMT] stopped monitoring for unused pushIDs
          bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.async-connection] [Fri, 27 Mar 2015 17:18:55 GMT] initialize connection within window ceaf9
          bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:55 GMT] stopped monitoring for unused pushIDs

          Show
          Liana Munroe added a comment - The following log was captured during a failed attempt to use the camera demo on android device: [icepush.ceaf9.async-connection] [Fri, 27 Mar 2015 17:18:36 GMT] Blocking connection cannot be shared among multiple web-contexts. Initiating blocking connection for "." web-context... bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9] [Fri, 27 Mar 2015 17:18:36 GMT] bridge loaded! bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.async-connection] [Fri, 27 Mar 2015 17:18:37 GMT] connection monitoring started within window ceaf9 bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:38 GMT] resume monitoring for unused pushIDs bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:47 GMT] stopped monitoring for unused pushIDs bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.async-connection] [Fri, 27 Mar 2015 17:18:55 GMT] initialize connection within window ceaf9 bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:55 GMT] stopped monitoring for unused pushIDs bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:55 GMT] stopped monitoring for unused pushIDs bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.async-connection] [Fri, 27 Mar 2015 17:18:55 GMT] initialize connection within window ceaf9 bridge-support.js.jsf?ln=ice.core&v=4_0_0_150327:1812 [icepush.ceaf9.pushid-expiry] [Fri, 27 Mar 2015 17:18:55 GMT] stopped monitoring for unused pushIDs
          Hide
          Ken Fyten added a comment -

          Note that Patrick has done some analysis on this issue on both iOS and Android and we are reasonably sure that this point that the problems lie within the BridgeIt apps. themselves in both cases.

          We will be creating corresponding MOBI / BridgeIt JIRAs for these issues soon, but am assigning this issue to myself for the time being. No action required at this time.

          Show
          Ken Fyten added a comment - Note that Patrick has done some analysis on this issue on both iOS and Android and we are reasonably sure that this point that the problems lie within the BridgeIt apps. themselves in both cases. We will be creating corresponding MOBI / BridgeIt JIRAs for these issues soon, but am assigning this issue to myself for the time being. No action required at this time.
          Hide
          Liana Munroe added a comment -

          Tested with Jenkins EE-4.0.0 build 3. Issues still remain as listed above. Please see attached log files for results seen when upload fails using camcorde (log1.txt) and camera (log2.txt) on android 4.4.2 device.

          Show
          Liana Munroe added a comment - Tested with Jenkins EE-4.0.0 build 3. Issues still remain as listed above. Please see attached log files for results seen when upload fails using camcorde (log1.txt) and camera (log2.txt) on android 4.4.2 device.
          Hide
          Ken Fyten added a comment -

          Added links to the MOBI JIRAs to correct the underlying BridgeIt app. issues.

          Show
          Ken Fyten added a comment - Added links to the MOBI JIRAs to correct the underlying BridgeIt app. issues.
          Hide
          Ken Fyten added a comment - - edited

          Marking this as resolved as the necessary changes in ICEfaces have been completed, now requires the BridgeIt apps. to be fixed, as per the linked JIRAs.

          Show
          Ken Fyten added a comment - - edited Marking this as resolved as the necessary changes in ICEfaces have been completed, now requires the BridgeIt apps. to be fixed, as per the linked JIRAs.

            People

            • Assignee:
              Ken Fyten
              Reporter:
              Liana Munroe
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: