Uploaded image for project: 'Keycloak'
  1. Keycloak
  2. KEYCLOAK-8916

If logger is in DEBUG level and "Cors"'s allowedOrigins is null there is an error for all requests that require cors validation

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 4.6.0.Final
    • Fix Version/s: 4.7.0.Final
    • Component/s: None
    • Labels:
    • Docs QE Status:
      NEW
    • QE Status:
      NEW

      Description

      In the code file "org.keycloak.services.resources.Cors.java" if the following conditions exist:
      1. preflight field is false
      2. allowedOrigins field is null

      That cases the "if" in line 144 to be true and if log level is set to debug then a null pointer error occur in line 146 by accessing allowedOrigins.toArray()

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  tamir1 Tamir Lavi
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: