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

        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
        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

          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: