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

FIWARE.Request.Tech.Apps.ApplicationMashup.ProblemAccessingOrionUsingHTTPS

    Details

    • Type: extRequest
    • Status: Closed
    • Priority: Major
    • Resolution: Done
    • Fix Version/s: 2021
    • Component/s: FIWARE-TECH-HELP
    • Labels:
      None

      Description

      Hi,

      I haven't used my mashup application in the last few weeks, but now my
      NGSI query operator stopped working. After some digging and debugging,
      it seems like the NGSI connection is passing the url of my context
      broker through this url "https://mashup.lab.fiware.org/proxy/<cb_url>"
      and here seems to be the problem. The context broker itself is working
      fine when used from other applications.

      The same problem seems to occur, when using the NGSI browser widget from
      the marketplace.

      What do I have to do to fix this?

      My source looks like this:

      this.ngsi_server = MashupPlatform.prefs.get('ngsi_server');
      this.ngsi_proxy = MashupPlatform.prefs.get('ngsi_proxy');

      var request_headers = {};

      if (MashupPlatform.prefs.get('use_owner_credentials'))

      { request_headers['X-FI-WARE-OAuth-Token'] = 'true'; request_headers['X-FI-WARE-OAuth-Header-Name'] = 'X-Auth-Token'; request_headers['x-FI-WARE-OAuth-Source'] = 'workspaceowner'; }

      this.connection = new NGSI.Connection(this.ngsi_server,

      { use_user_fiware_token: MashupPlatform.prefs.get('use_user_fiware_token'), request_headers: request_headers, ngsi_proxy_url: this.ngsi_proxy }

      );

      var types = MashupPlatform.prefs.get('ngsi_entities').split(new
      RegExp(',
      s*'));

      var entityIdList = [];
      var attributeList = [];
      var entityId;
      for (var i = 0; i < types.length; i++) {
      entityId =

      { id: '.*', type: types[i], isPattern: true }

      ;
      entityIdList.push(entityId);
      }

      var options = {
      flat: true,
      limit: 1000,
      offset: 0,
      details: true,
      onSuccess: function (data, details) {

      for (var entityId in data)

      { MashupPlatform.wiring.pushEvent("entityOutput", JSON.stringify(data[entityId])); }

      if (details.count > options.offset + options.limit)

      { options.offset += options.limit; this.connection.query(entityIdList, attributeList, options); }

      }.bind(this),
      onFailure: function (e)

      { MashupPlatform.operator.log("Error querying entities from context broker server: " + e.message); }

      };
      this.connection.query(entityIdList, attributeList, options);


      Artur Löwen
      CEO
      Gridhound UG (haftungsbeschränkt)
      +49 179 1449189
      aloewen@gridhound.de
      www.gridhound.de
      Since January 1st, old domains won't be supported and messages sent to any domain different to @lists.fiware.org will be lost.
      Please, send your messages using the new domain (Fiware-lab-help@lists.fiware.org) instead of the old one.
      _______________________________________________
      Fiware-lab-help mailing list
      Fiware-lab-help@lists.fiware.org
      https://lists.fiware.org/listinfo/fiware-lab-help
      [Created via e-mail received from: =?UTF-8?Q?Artur_L=C3=B6wen?= <aloewen@gridhound.de>]

        Activity

          People

          • Assignee:
            aarranz Álvaro Arranz
            Reporter:
            fw.ext.user FW External User
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: