{"record":{"id":"dd922462486dc1c9","repo":"sqlmapproject/sqlmap","slug":"only-mapi-protocol-v9-is-supported","errorCode":null,"errorMessage":"only MAPI protocol v9 is supported","messagePattern":"only MAPI protocol v9 is supported","errorType":"exception","errorClass":"NotSupportedError","httpStatus":null,"severity":"error","filePath":"extra/dbwire/monetdb.py","lineNumber":69,"sourceCode":"    off = 0\n    while True:\n        chunk = data[off:off + _MAX_BLOCK]\n        off += _MAX_BLOCK\n        last = off >= len(data)\n        try:\n            sock.sendall(struct.pack(\"<H\", (len(chunk) << 1) | (1 if last else 0)) + chunk)\n        except (socket.error, OSError) as ex:\n            raise connection_lost(ex)\n        if last:\n            break\n\ndef _challenge_response(challenge, user, password, database):\n    parts = challenge.split(\":\")\n    if len(parts) < 7 or parts[-1] != \"\":\n        raise OperationalError(\"invalid MonetDB challenge\")\n    salt, server_type, protocol, hashes = parts[0], parts[1], parts[2], parts[3]\n    if protocol != \"9\":\n        raise NotSupportedError(\"only MAPI protocol v9 is supported\")\n    if server_type == \"merovingian\":  # proxy stage: authenticate as merovingian, real creds go to the mserver\n        user, password = \"merovingian\", \"\"\n    pwalgo = parts[5]\n    try:\n        password = hashlib.new(pwalgo, password.encode(\"utf-8\")).hexdigest()\n    except ValueError:\n        raise NotSupportedError(\"unsupported MonetDB password algorithm: %s\" % pwalgo)\n    pwhash = None\n    for algo in hashes.split(\",\"):\n        try:\n            h = hashlib.new(algo)\n        except ValueError:\n            continue\n        h.update(password.encode(\"utf-8\"))\n        h.update(salt.encode(\"utf-8\"))\n        pwhash = \"{%s}%s\" % (algo, h.hexdigest())\n        break\n    if pwhash is None:","sourceCodeStart":51,"sourceCodeEnd":87,"githubUrl":"https://github.com/sqlmapproject/sqlmap/blob/0a35b20e3953d341be6c7ac75ccb0b3362540c8d/extra/dbwire/monetdb.py#L51-L87","documentation":"Error \"only MAPI protocol v9 is supported\" thrown in sqlmapproject/sqlmap.","triggerScenarios":"Thrown at extra/dbwire/monetdb.py:69 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0a35b20e3953d341be6c7ac75ccb0b3362540c8d","analyzedAt":"2026-08-26T23:02:52.002Z","schemaVersion":2},"datasetVersion":"2026-08-27T03:17:27.898Z"}