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

Update API to accept null parameters

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      When making API calls and passing method arguments to the end-point, null values are not passed along.

      This is an issue when

      1. Manually passing null as an argument
      2. Attempting to set null as an argument to a method apart of a file encoded by ioncube
        • For example, AppModel::systemEncrypt($value, $key = null, $iv = null) must be passed all arguments because ioncube causes the error "Internal error: Failed to retrieve the default value"

      Update the Api controller to allow null parameters to be passed.
      i.e.

      if (isset($parameters[$param->name])) {
      

      probably needs to be

      if (array_key_exists($param->name, $parameters)) {
      

        Issue Links

          Activity

          tyson Tyson Phillips (Inactive) created issue -
          tyson Tyson Phillips (Inactive) made changes -
          Field Original Value New Value
          Rank Ranked higher
          tyson Tyson Phillips (Inactive) made changes -
          Story Points 2
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.5.0 Sprint 2 [ 67 ]
          tyson Tyson Phillips (Inactive) made changes -
          Rank Ranked lower
          tyson Tyson Phillips (Inactive) made changes -
          Link This issue relates to CORE-1232 [ CORE-1232 ]
          tyson Tyson Phillips (Inactive) made changes -
          Remaining Estimate 0 minutes [ 0 ]
          Time Spent 45 minutes [ 2700 ]
          Worklog Id 11542 [ 11542 ]
          tyson Tyson Phillips (Inactive) made changes -
          Status Open [ 1 ] Closed [ 6 ]
          Resolution Won't Fix [ 2 ]
          tyson Tyson Phillips (Inactive) made changes -
          Sprint 4.5.0 Sprint 2 [ 67 ]

            People

            • Assignee:
              tyson Tyson Phillips (Inactive)
              Reporter:
              tyson Tyson Phillips (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 45 minutes
                45m