← Back to team overview

mahara-contributors team mailing list archive

[Bug 1971702] Re: Unable to configure mnet

 

Davo, thank you for your report and the suggestion on how to fix it.
Could you please send me <kristina@xxxxxxxxxxxxxxx> your email address
so we can include it in the patch if we are accepting your solution to
give you the proper credit.

Thank you
Kristina

** Changed in: mahara
     Assignee: (unassigned) => Doris Tam (doristam)

** Also affects: mahara/22.04
   Importance: Undecided
       Status: New

** Also affects: mahara/22.10
   Importance: Undecided
     Assignee: Doris Tam (doristam)
       Status: New

** Changed in: mahara/22.10
    Milestone: None => 22.10.0

** Changed in: mahara/22.04
    Milestone: None => 22.04.2

** Changed in: mahara/22.10
   Importance: Undecided => High

** Changed in: mahara/22.04
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1971702

Title:
  Unable to configure mnet

Status in Mahara:
  New
Status in Mahara 22.04 series:
  New
Status in Mahara 22.10 series:
  New

Bug description:
  Relates to bug 1955101

  When trying to configure an XML-RPC SSO for an institution, the
  function Peer->bootstrap() is called.

  On line 264 of lib/peer.php, it calls $this->set('publickey',
  $publickey); where $publickey is an instance of class PublicKey,
  created on the previous line.

  On line 82 onwards of lib/peer.php, it sets $this->publickey to that
  instance of the PublicKey class, then on line 90, it attempts to set
  the private field $certificate of this PublicKey instance - this
  results in a fatal error and the settings cannot be saved.

  Adjusting the code from:

              else if ($field == 'publickey') {
                  if (!is_object($this->publickey)) {
                      $this->publickey = new stdClass();
                  }
                  $this->publickey->certificate = $value;
              }

  to:

              else if ($field == 'publickey') {
                  if (!is_object($this->publickey)) {
                      $this->publickey = new stdClass();
                      $this->publickey->certificate = $value;
                  }
              }

  Seems to solve the problem.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1971702/+subscriptions



References