Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-349

xmlimporter requires a new grouper session (is one being closed?)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Minor
    • 1.6.0
    • 1.5.0
    • API
    • None

    Description

      Why is this check needed in XmlImporter.java?

      GrouperSession staticSession = GrouperSession.staticGrouperSession(false);
      if(staticSession==null)

      { staticSession = GrouperSession.start(SubjectFinder.findByIdentifier( rc.getProperty(XmlArgs.RC_SUBJ), true)); }

      AuditEntry auditEntry = new AuditEntry(AuditTypeBuiltin.XML_IMPORT, "fileName",
      rc.getProperty(XmlArgs.RC_IFILE), "subjectId", rc.getProperty(XmlArgs.RC_SUBJ));
      auditEntry.setDescription("Imported xml: " + GrouperUtil.toStringForLog(args));
      auditEntry.saveOrUpdate(true);
      staticSession.stop();

      Attachments

        Activity

          People

            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: