[ 
http://jira.xwiki.org/jira/browse/XWIKI-1853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Thomas Mortagne closed XWIKI-1853.
----------------------------------

    Fix Version/s: 1.2 M2
                   1.1.3
       Resolution: Fixed
         Assignee: Thomas Mortagne

> 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.2 M1, 1.1.2
>            Reporter: Thomas Mortagne
>         Assigned To: Thomas Mortagne
>             Fix For: 1.2 M2, 1.1.3
>
>
> 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