Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-3604

Webhook application id is compared by reference rather than by value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 2.7
    • 2.7
    • None
    • None

    Description

      Application service generic does

      if (application.getId() == webhook.getApplication().getId())
      

      in findWebhookById() and unregisterWebhook(), and both sides of the comparison are Long, so we're comparing references instead of comparing values.

      This works accidentally as long as we haven't created 127 or more applications (due to the JVM caching instances of Long which are between -128 and 127), but after that it falls over.

      Attachments

        Issue Links

          Activity

            People

              ckrieger Caspar Krieger (Inactive)
              ckrieger Caspar Krieger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: