Uploaded image for project: 'VOMS'
  1. VOMS
  2. VOMS-748

VOMS MySQL plugin uses the wrong MySQL type for returning the user id

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • mysql-plugin
    • Security Level: Public (Visbile by non-authn users.)
    • None

      VOMS MySQL plugin uses a signed long int for querying the user id, and return it to VOMS server, but an int should be used instead, as the MYSQL_LONG_TYPE is 4 bytes long.

      The main consequence of this is that in the VOMS server log UID is logged using the wrong format:

      LOG_INFO:REQUEST:makeAC (vomsd.cc:935):Userid = "-4294967169""

      Probably the mistake in the type selection was caused by the misleading type name, see:

      https://bugs.mysql.com/bug.php?id=4653

            Unassigned Unassigned
            aceccant Andrea Ceccanti
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: