Hi Sameer, thanks a lot
Ralf -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 4. Mai 2006 16:08 An: [email protected] Betreff: [magnolia-dev] [JIRA] Commented: (MAGNOLIA-834) createVersion failed because MgnlContext.getUser() is null [ http://jira.magnolia.info/browse/MAGNOLIA-834?page=comments#action_11842 ] Sameer Charles commented on MAGNOLIA-834: ----------------------------------------- I will do a quick fix so that you can continue using version api, for final release we need to implement default user "anonymous" > createVersion failed because MgnlContext.getUser() is null > ---------------------------------------------------------- > > Key: MAGNOLIA-834 > URL: http://jira.magnolia.info/browse/MAGNOLIA-834 > Project: magnolia > Type: Bug > Components: core > Versions: 3.0 Beta 1 > Environment: M3.0 > Reporter: Ralf Hirning > Assignee: Sameer Charles > Priority: Blocker > > > 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia.info/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ---------------------------------------------------------------- ---------------------------------------------------------------- for list details see http://www.magnolia.info/en/magnolia/developer.html ----------------------------------------------------------------
