l.b.e.mantis : module documentation

Part of lp.bugs.externalbugtracker

Mantis ExternalBugTracker utility.
Function mantis_login_hook requests hook to automatically log into Mantis anonymously if needed.
Class MantisBugBatchParser A class that parses the batch of bug data.
def mantis_login_hook(response, *args, **kwargs):

requests hook to automatically log into Mantis anonymously if needed.

The ALSA bug tracker is the only tested Mantis installation that actually needs this. For ALSA bugs, the dance is like so:

  1. We request bug 3301 ('jack sensing problem'):

    https://bugtrack.alsa-project.org/alsa-bug/view.php?id=3301

  2. Mantis redirects us to:
    .../alsa-bug/login_page.php?

    return=%2Falsa-bug%2Fview.php%3Fid%3D3301

  3. We notice this, rewrite the query, and skip to login.php:
    .../alsa-bug/login.php?

    return=%2Falsa-bug%2Fview.php%3Fid%3D3301& username=guest&password=guest

  4. Mantis accepts our credentials then redirects us to the bug view page via a cookie test page (login_cookie_test.php)

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.