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

        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        mev Manuel Escriche made changes -
        HD-Enabler Wirecloud [ 10857 ]
        HD-Chapter Apps [ 10836 ]
        mev Manuel Escriche made changes -
        Sender Email aloewen@gridhound.de
        aarranz Álvaro Arranz made changes -
        Summary [Fiware-lab-help] Problem with connection using NGSI API FIWARE.Request.Tech.Apps.ApplicationMashup.ProblemAccessingOrionUsingHTTPS
        aarranz Álvaro Arranz made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        aarranz Álvaro Arranz made changes -
        Link This issue relates to APP-845 [ APP-845 ]
        mev Manuel Escriche made changes -
        Assignee Javier Soriano [ javier soriano ] Álvaro Arranz [ aarranz ]
        mev Manuel Escriche made changes -
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Component/s FIWARE-LAB-HELP [ 10279 ]
        gcossu Giuseppe Cossu made changes -
        Assignee Giuseppe Cossu [ gcossu ] Javier Soriano [ javier soriano ]
        gcossu Giuseppe Cossu made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        gcossu Giuseppe Cossu made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        gcossu Giuseppe Cossu made changes -
        Assignee Pietropaolo Alfonso [ alfopietro ] Giuseppe Cossu [ gcossu ]
        gcossu Giuseppe Cossu made changes -
        Assignee Pietropaolo Alfonso [ alfopietro ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-LAB-HELP [ 10279 ]
        fw.ext.user FW External User created issue -

          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: