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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Affects Version/s: None
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: