Uploaded image for project: 'Observium'
  1. Observium
  2. OBS-1102

500 error on calling API with bad credentials

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • None
    • None
    • None

    Description

      $ curl 'https://OBSERVIUM/api.php?username=demo&password=demo&module=demo'
      <br />
      <b>Fatal error</b>:  Call to undefined function session_logout() in <b>/srv/observium/html/includes/authentication/mysql.inc.php</b> on line <b>37</b><br />
      

      The attached patch does:

      • move session_logout() to somewhere that is included (to includes/common.inc.php)
      • adding code to ensure that session_logout does not break if no session has been started (the session_status() != PHP_SESSION_ACTIVE check)

      Attachments

        Activity

          People

            adama Adam Armstrong
            wdoekes Walter Doekes
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: