Can't get document from database at plugin init time
----------------------------------------------------

                 Key: XWIKI-1853
                 URL: http://jira.xwiki.org/jira/browse/XWIKI-1853
             Project: XWiki Platform
          Issue Type: Bug
          Components: Core, Storage
    Affects Versions: 1.1.2, 1.2 M1
            Reporter: Thomas Mortagne


At plugin init time XWiki.database is not initialised so all 
context.getWiki().getDatabase() will return null in place of the main wiki name 
as it sould. So actually it's impossible to retrieve a document from database 
at plugin init time because rights check (that use it to get the name of the 
main wiki) crash.

Anyway, to get the main wiki name context.getMainXWiki() should be preferred.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.xwiki.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to