Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8041338

JAAS option module is NOT optional if the module cannot be loaded

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 9
    • None
    • security-libs
    • None

      A JAAS module can be set to optional (known as control flag) in a config file so that even it fails the whole login can succeed if another module succeeds. However, if the module cannot be loaded at all (ClassNotFoundException) or some methods are missing (NoSuchMethodException), the whole login process terminates intermediately regardless of the module control flag. This is counter-intuitive and could prevent flexible application deployment.

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: