Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2439

Allow query parameters for plugin actions

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.1.0-b2
    • Fix Version/s: 4.2.0-b1
    • Component/s: None
    • Labels:
      None

      Description

      client_controller.php lines 98-101:

      $key = str_replace('/', '_', trim($plugin->uri, '/'));
      $widgets[$key] = [
          'uri' => $this->base_uri . $plugin->uri
      ];
      

      This key is later used in jquery-client-4.1.0.js line 113:

      $('#widget_container_' + this.widget_id).replaceWith(temp);
      

      This is where the error occurs because the process for forming the key allows characters that are not legal for the jquery expression.

      Replace client_controller.php line 98 with:

      $key = $this->PluginManager->systemHash($plugin->uri);
      

      This will make a valid and unique key

        Issue Links

          Activity

          jonathan Jonathan Reissmueller created issue -
          jonathan Jonathan Reissmueller made changes -
          Field Original Value New Value
          Link This issue relates to CORE-2427 [ CORE-2427 ]
          jonathan Jonathan Reissmueller made changes -
          Fix Version/s 4.2.0-b1 [ 11014 ]
          Fix Version/s 4.0.2 [ 11011 ]
          jonathan Jonathan Reissmueller made changes -
          Rank Ranked higher
          Hide
          tyson Tyson Phillips (Inactive) added a comment -

          You can use the system's hashing algorithm rather than directly using sha1 to avoid collisions.

          Show
          tyson Tyson Phillips (Inactive) added a comment - You can use the system's hashing algorithm rather than directly using sha1 to avoid collisions.
          jonathan Jonathan Reissmueller made changes -
          Description client_controller.php lines 98-101:

          {code:java}
          $key = str_replace('/', '_', trim($plugin->uri, '/'));
          $widgets[$key] = [
              'uri' => $this->base_uri . $plugin->uri
          ];
          {code}

          This key is later used in jquery-client-4.1.0.js line 113:

          {code:java}
          $('#widget_container_' + this.widget_id).replaceWith(temp);
          {code}

          This is where the error occurs because the the process for forming the key allows characters that are not legal for the jquery expression.

          Replace client_controller.php line 98 with:

          {code:java}
          $key = sha1($plugin->uri);
          {code}

          This will make a valid and unique key
          client_controller.php lines 98-101:

          {code:java}
          $key = str_replace('/', '_', trim($plugin->uri, '/'));
          $widgets[$key] = [
              'uri' => $this->base_uri . $plugin->uri
          ];
          {code}

          This key is later used in jquery-client-4.1.0.js line 113:

          {code:java}
          $('#widget_container_' + this.widget_id).replaceWith(temp);
          {code}

          This is where the error occurs because the the process for forming the key allows characters that are not legal for the jquery expression.

          Replace client_controller.php line 98 with:

          {code:java}
          $key = $this->PluginManager->systemHash($plugin->uri);
          {code}

          This will make a valid and unique key
          tyson Tyson Phillips (Inactive) made changes -
          Story Points 2
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.2.0 Sprint 1 [ 46 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked lower
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.2.0 Sprint 1 [ 46 ] 4.2.0 Sprint 1, 4.2.0 Sprint 2 [ 46, 47 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          jonathan Jonathan Reissmueller made changes -
          Description client_controller.php lines 98-101:

          {code:java}
          $key = str_replace('/', '_', trim($plugin->uri, '/'));
          $widgets[$key] = [
              'uri' => $this->base_uri . $plugin->uri
          ];
          {code}

          This key is later used in jquery-client-4.1.0.js line 113:

          {code:java}
          $('#widget_container_' + this.widget_id).replaceWith(temp);
          {code}

          This is where the error occurs because the the process for forming the key allows characters that are not legal for the jquery expression.

          Replace client_controller.php line 98 with:

          {code:java}
          $key = $this->PluginManager->systemHash($plugin->uri);
          {code}

          This will make a valid and unique key
          client_controller.php lines 98-101:

          {code:java}
          $key = str_replace('/', '_', trim($plugin->uri, '/'));
          $widgets[$key] = [
              'uri' => $this->base_uri . $plugin->uri
          ];
          {code}

          This key is later used in jquery-client-4.1.0.js line 113:

          {code:java}
          $('#widget_container_' + this.widget_id).replaceWith(temp);
          {code}

          This is where the error occurs because the process for forming the key allows characters that are not legal for the jquery expression.

          Replace client_controller.php line 98 with:

          {code:java}
          $key = $this->PluginManager->systemHash($plugin->uri);
          {code}

          This will make a valid and unique key
          Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
          Status Open [ 1 ] In Progress [ 3 ]
          jonathan Jonathan Reissmueller made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 10 minutes [ 600 ]
          Worklog Id 10373 [ 10373 ]
          Automated transition triggered when Jonathan Reissmueller created pull request #331 in Stash -
          Status In Progress [ 3 ] In Review [ 5 ]
          Resolution Fixed [ 1 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 10 minutes [ 600 ] 49 minutes [ 2940 ]
          Worklog Id 10394 [ 10394 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 49 minutes [ 2940 ] 1 hour, 9 minutes [ 4140 ]
          Worklog Id 10395 [ 10395 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 1 hour, 9 minutes [ 4140 ] 2 hours, 9 minutes [ 7740 ]
          Worklog Id 10406 [ 10406 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 2 hours, 9 minutes [ 7740 ] 4 hours, 16 minutes [ 15360 ]
          Worklog Id 10407 [ 10407 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 4 hours, 16 minutes [ 15360 ] 4 hours, 46 minutes [ 17160 ]
          Worklog Id 10408 [ 10408 ]
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.2.0 Sprint 1, 4.2.0 Sprint 2 [ 46, 47 ] 4.2.0 Sprint 1, 4.2.0 Sprint 2, 4.2.0 Sprint 3 [ 46, 47, 48 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked higher
          jonathan Jonathan Reissmueller made changes -
          Time Spent 4 hours, 46 minutes [ 17160 ] 5 hours, 34 minutes [ 20040 ]
          Worklog Id 10438 [ 10438 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 5 hours, 34 minutes [ 20040 ] 6 hours, 4 minutes [ 21840 ]
          Worklog Id 10450 [ 10450 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 6 hours, 4 minutes [ 21840 ] 7 hours, 25 minutes [ 26700 ]
          Worklog Id 10482 [ 10482 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 7 hours, 25 minutes [ 26700 ] 1 day, 1 minute [ 28860 ]
          Worklog Id 10486 [ 10486 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 1 day, 1 minute [ 28860 ] 1 day, 1 hour, 1 minute [ 32460 ]
          Worklog Id 10495 [ 10495 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 1 day, 1 hour, 1 minute [ 32460 ] 1 day, 1 hour, 34 minutes [ 34440 ]
          Worklog Id 10496 [ 10496 ]
          Automated transition triggered when Tyson Phillips (Inactive) merged pull request #331 in Stash -
          Status In Review [ 5 ] Closed [ 6 ]
          Hide
          jonathan Jonathan Reissmueller added a comment -

          Widgets not properly set during initial login

          Show
          jonathan Jonathan Reissmueller added a comment - Widgets not properly set during initial login
          jonathan Jonathan Reissmueller made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          Automated transition triggered when Jonathan Reissmueller created a branch in Stash -
          Status Reopened [ 4 ] In Progress [ 3 ]
          Automated transition triggered when Jonathan Reissmueller created pull request #360 in Stash -
          Status In Progress [ 3 ] In Review [ 5 ]
          Resolution Fixed [ 1 ]
          jonathan Jonathan Reissmueller made changes -
          Time Spent 1 day, 1 hour, 34 minutes [ 34440 ] 1 day, 1 hour, 54 minutes [ 35640 ]
          Worklog Id 10541 [ 10541 ]
          Automated transition triggered when Tyson Phillips (Inactive) merged pull request #360 in Stash -
          Status In Review [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              jonathan Jonathan Reissmueller
              Reporter:
              jonathan Jonathan Reissmueller
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                5/Dec/17

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day, 1 hour, 54 minutes
                1d 1h 54m

                  Agile