Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-834

createVersion failed because MgnlContext.getUser() is null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 3.0 Final
    • 3.0 Beta 1
    • core
    • None
    • M3.0

    Description

      If I want to create a version using Content.addVersion I get an java.lang.NullPointerException because in
      VersionManager.createVersion(Content node, Rule rule) line 173:
      versionedNode.getMetaData().setProperty(MetaData.VERSION_USER, MgnlContext.getUser().getName());
      MgnlContext.getUser() delivers null

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              ralf Ralf Hirning
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD