Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3198

Ticket Renewal Thread exits prematurely due to inverted comparison

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.9.0.0
    • Fix Version/s: 0.9.0.1, 0.10.0.0
    • Component/s: security
    • Labels:
      None

      Description

      Line 152 of Login.java:

      if (isUsingTicketCache && tgt.getRenewTill() != null && tgt.getRenewTill().getTime() >= expiry) {
      

      This line is used to determine whether to exit the thread and issue an error to the user.

      The >= should be < since we are actually able to renew if the renewTill time is later than the current ticket expiration.

        Attachments

          Activity

            People

            • Assignee:
              adam.kunicki Adam Kunicki
              Reporter:
              adam.kunicki Adam Kunicki
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: