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

          Liana Munroe created issue -
          Liana Munroe made changes -
          Field Original Value New Value
          Description showcase-mobile demos that use file upload such as camera, camcorder, microphone fail when server is in SSL mode.
          Intially no 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
          {code}<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>{code}
          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.
          showcase-mobile demos that use file upload such as camera, camcorder, microphone fail when server is in SSL mode.
          Intially no 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.
          Liana Munroe made changes -
          Description showcase-mobile demos that use file upload such as camera, camcorder, microphone fail when server is in SSL mode.
          Intially no 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.
          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.
          Ken Fyten made changes -
          Assignee Mircea Toma [ mircea.toma ]
          Fix Version/s EE-4.0.0.GA [ 11171 ]
          Assignee Priority P1 [ 10010 ]
          Repository Revision Date User Message
          ICEsoft Public SVN Repository #44317 Thu Mar 26 16:46:25 MDT 2015 mircea.toma ICE-10589 Modified 'getUploadURL' method to generate URL that uses the same protocol as the rest of webapp.
          Files Changed
          Commit graph MODIFY /icefaces4/trunk/icefaces/core/src/main/java/org/icefaces/impl/application/AuxUploadSetup.java
          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 .
          Mircea Toma made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          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.
          Liana Munroe made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          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.
          Ken Fyten made changes -
          Assignee Mircea Toma [ mircea.toma ] Ken Fyten [ ken.fyten ]
          Ken Fyten made changes -
          Security Private [ 10001 ]
          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.
          Liana Munroe made changes -
          Attachment log1.txt [ 18980 ]
          Attachment log2.txt [ 18981 ]
          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.
          Ken Fyten made changes -
          Link This issue depends on MOBI-1132 [ MOBI-1132 ]
          Ken Fyten made changes -
          Link This issue depends on MOBI-1131 [ MOBI-1131 ]
          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.
          Ken Fyten made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Affects Documentation (User Guide, Ref. Guide, etc.),Compatibility/Configuration [ 10003, 10002 ]
          Resolution Fixed [ 1 ]
          Ken Fyten made changes -
          Fix Version/s 4.1 [ 11375 ]
          Ken Fyten made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved: