Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-1003

FIWARE.Request.Tech.WebUI.XML3D.LoadingJsonResourcesFails

    Details

    • HD-Chapter:
      WebUI
    • HD-Enabler:
      XML3D

      Description

      Description:

      When we git clone the examples repository indicated above and run locally
      the page ‘suzanne.html’, the model isn’t loaded and we receive the error
      "Could not load external document
      'file:/C:/Users/Alejandro/Desktop/TaskForce/3D-UI-XML3D/xml3d-examples/examples/suzanne/./suzanne.json':
      0 - ".

      This happens with any example we try to test locally. The expected output
      can be seen in the image XML3D_doesn’t_load_json_resources_1.png, as it is
      ran from the online demo page. The error can be seen in the image
      XML3D_doesn’t_load_json_resources_2.png.

      Link:
      http://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/3D-UI_-_XML3D_-_User_and_Programmers_Guide

      Web Browser: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101
      Firefox/33.0
      GitHub repository: https://github.com/xml3d/xml3d-examples
      Online Demo:
      http://xml3d.github.io/xml3d-examples/examples/suzanne/suzanne.html

      _______________________________________________
      Fiware-tech-help mailing list
      Fiware-tech-help@lists.fi-ware.org
      https://lists.fi-ware.org/listinfo/fiware-tech-help

      1. philipp_slusallek.vcf
        0.4 kB
        Philipp Slusallek
      1. Model_loaded.png
        144 kB

        Activity

        pablo.fernandez Pablo Fernandez Moniz created issue -
        mev Manuel Escriche made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        slusallek0 Philipp Slusallek added a comment -

        Hi,

        This is an expected behaviour of XML3D because of the CORS (Cross-Origin
        Ressource Sharing) handling in browsers. The browser refuses to access
        other local files referenced from a local HTML page because of security
        reasons.

        This can only be dealt with by going through a Web browser, where the
        browser adds the necessary HTML CORS-headers (which impossible with
        local files).

        Just to clear: The installation manual never suggests to locally copy
        and run the examples. And this behaviour is documented for XML3D.

        But we will check again and may make sure this more prominently visible
        in the installation manual to avoid similar user errors in the future.

        BTW, this still is ticket HELP-1003 right now.

        Best,

        Philipp

        -------------------------------------------------------------------------
        Deutsches Forschungszentrum für Künstliche Intelligenz (DFKI) GmbH
        Trippstadter Strasse 122, D-67663 Kaiserslautern

        Geschäftsführung:
        Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender)
        Dr. Walter Olthoff
        Vorsitzender des Aufsichtsrats:
        Prof. Dr. h.c. Hans A. Aukes

        Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
        USt-Id.Nr.: DE 148646973, Steuernummer: 19/673/0060/3
        ---------------------------------------------------------------------------

        _______________________________________________
        Fiware-tech-help mailing list
        Fiware-tech-help@lists.fi-ware.org
        https://lists.fi-ware.org/listinfo/fiware-tech-help

        Show
        slusallek0 Philipp Slusallek added a comment - Hi, This is an expected behaviour of XML3D because of the CORS (Cross-Origin Ressource Sharing) handling in browsers. The browser refuses to access other local files referenced from a local HTML page because of security reasons. This can only be dealt with by going through a Web browser, where the browser adds the necessary HTML CORS-headers (which impossible with local files). Just to clear: The installation manual never suggests to locally copy and run the examples. And this behaviour is documented for XML3D. But we will check again and may make sure this more prominently visible in the installation manual to avoid similar user errors in the future. BTW, this still is ticket HELP-1003 right now. Best, Philipp – ------------------------------------------------------------------------- Deutsches Forschungszentrum für Künstliche Intelligenz (DFKI) GmbH Trippstadter Strasse 122, D-67663 Kaiserslautern Geschäftsführung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973, Steuernummer: 19/673/0060/3 --------------------------------------------------------------------------- _______________________________________________ Fiware-tech-help mailing list Fiware-tech-help@lists.fi-ware.org https://lists.fi-ware.org/listinfo/fiware-tech-help
        slusallek0 Philipp Slusallek made changes -
        Attachment philipp_slusallek.vcf [ 12070 ]
        mev Manuel Escriche made changes -
        Assignee Philipp Slusallek [ philipp slusallek ]
        Hide
        pablo.fernandez Pablo Fernandez Moniz added a comment -

        Hi,

        We really appreciate the clarification made as we found the issue not very
        intuitive (comparing the resources to local css and .js files).

        We tested accessing the examples through a local XAMPP installation and
        everything worked as expected.

        The same suzanne.html file that we reported to fail can be seen
        successfully loaded from localhost in the image Model_loaded.png.

        Best regards,

        _______________________________________________
        Fiware-tech-help mailing list
        Fiware-tech-help@lists.fi-ware.org
        https://lists.fi-ware.org/listinfo/fiware-tech-help

        Show
        pablo.fernandez Pablo Fernandez Moniz added a comment - Hi, We really appreciate the clarification made as we found the issue not very intuitive (comparing the resources to local css and .js files). We tested accessing the examples through a local XAMPP installation and everything worked as expected. The same suzanne.html file that we reported to fail can be seen successfully loaded from localhost in the image Model_loaded.png . Best regards, _______________________________________________ Fiware-tech-help mailing list Fiware-tech-help@lists.fi-ware.org https://lists.fi-ware.org/listinfo/fiware-tech-help
        pablo.fernandez Pablo Fernandez Moniz made changes -
        Attachment Model_loaded.png [ 12077 ]
        slusallek0 Philipp Slusallek made changes -
        Assignee Philipp Slusallek [ philipp slusallek ] Torsten Spieldenner [ torsten.spieldenner ]
        tospie Torsten Spieldenner made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        tospie Torsten Spieldenner made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        tospie Torsten Spieldenner made changes -
        Link This issue is cloned by HELP-1087 [ HELP-1087 ]
        mev Manuel Escriche made changes -
        Workflow FW eRequest Workflow [ 18490 ] FW extRequest Workflow-II [ 20202 ]
        Issue Type eRequest [ 10101 ] extRequest [ 10104 ]
        FI-WARE Environment FI-LAB [ 10100 ]
        tospie Torsten Spieldenner made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        mev Manuel Escriche made changes -
        Fix Version/s Sprint 4.1.2 [ 10738 ]
        tospie Torsten Spieldenner made changes -
        Summary [Fiware-tech-help] [WebUI][3DXML3D Issues] XML3D doesn’t load json resources FIWARE.Request.Lab.WebUI.XML3D.LoadingJsonResourcesFails
        mev Manuel Escriche made changes -
        Summary FIWARE.Request.Lab.WebUI.XML3D.LoadingJsonResourcesFails FIWARE.Request.Tech.WebUI.XML3D.LoadingJsonResourcesFails
        mev Manuel Escriche made changes -
        HD-Enabler XML3D [ 10903 ]
        HD-Chapter WebUI [ 10842 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        2d 1h 55m 1 Torsten Spieldenner 06/Nov/14 12:13 PM
        In Progress In Progress Answered Answered
        9s 1 Torsten Spieldenner 06/Nov/14 12:13 PM
        Answered Answered Closed Closed
        11d 21h 10m 1 Torsten Spieldenner 18/Nov/14 9:23 AM

          People

          • Assignee:
            tospie Torsten Spieldenner
            Reporter:
            pablo.fernandez Pablo Fernandez Moniz
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: