Uploaded image for project: 'FreePBX'
  1. FreePBX
  2. FREEPBX-23974

updateRingGroup graphql fails and destroys data

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 16.0.9
    • Fix Version/s: None
    • Component/s: API, Ring Groups
    • Labels:
      None
    • ToDo:
    • Asterisk Version:
      20
    • Distro Version:
      16.0.30
    • Distro:
      FreePBX Distro

      Description

      The updateRingGroup graphql mutation appears to be broken and silently destroys data.

      With the following graphql query (where groupNumber 2023 exists):

      
      mutation update {
            updateRingGroup(
                input: {
                    groupNumber: 2023
                    extensionList: "12223#-333"
                }
            ) {
                status
                message
            }
        }
      

       

      An error is returned:

      
      {
         "errors": [
          {
            "message": "Internal server error",
             "status": false
          }
         ]
      }
      

      The logs say:

      
      2023-01-22 20:10:36 - stdClass Object
      (
          [debugMessage] => Undefined index: desc
          [message] => Internal server error
          [extensions] => stdClass Object
              (
                  [category] => internal
              )
      
          [locations] => Array
              (
                  [0] => stdClass Object
                      (
                          [line] => 2
                          [column] => 7
                      )
      
              )
      
          [path] => Array
              (
                  [0] => updateRingGroup
              )
      
      )
      

      Further info:

      It seems that specifying the 'description' in the mutation gets round the error

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                fdanard Franck Danard [X] (Inactive)
                Reporter:
                danpoltawski Dan Poltawski
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  NextupJiraPlusStatus

                  Error rendering 'slack.nextup.jira:nextup-jira-plus-status'. Please contact your Jira administrators.