Uploaded image for project: 'Shiro'
  1. Shiro
  2. SHIRO-875

Cannot create subjects with principals and disabled session-creation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.9.0
    • 2.0.1
    • None
    • None

    Description

      var principals = new SimplePrincipalCollection(123, "asd");
      var subject = new Subject.Builder().principals(principals).sessionCreationEnabled(false).buildSubject();
      

      This fails because the `DefaultSecurityManager` calls `save(subject);` which in turn saves something to the session of the subject. But a session can't be created so this blows up.

      Is this by design or is it a bug?

      Attachments

        Activity

          People

            Unassigned Unassigned
            boris-petrov Boris Petrov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h
                1h