[ 
http://jira.xwiki.org/jira/browse/XWIKI-2051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_22614
 ] 

Thomas Mortagne commented on XWIKI-2051:
----------------------------------------

Change class full name for a class prefixed full name could break codes based 
on it so I think the only non dangerous fix whould be to have a "wiki" member 
in BaseObject and switch wiki in Object.get to be sure to make the display 
using the object's wiki.

> Can't get properties values from a document's api Object from another wiki
> --------------------------------------------------------------------------
>
>                 Key: XWIKI-2051
>                 URL: http://jira.xwiki.org/jira/browse/XWIKI-2051
>             Project: XWiki Core
>          Issue Type: Bug
>          Components: APIs
>    Affects Versions: 1.2.1, 1.3 M1
>            Reporter: Thomas Mortagne
>             Fix For: 1.3 M2
>
>
> Create a class on the main wiki and a document containing an object of this 
> class and trying to get any value of this object from any wiki except main 
> wiki using :
> {code}
> #set ($document = $xwiki.getDocument(xwiki:<Document full name>))
> #set ($object = $document.getObject(<ClassName>))
> $object.<field_name>
> {code}
> This will print nothing.
> The problem is that BaseObject does not contains any information about the 
> wiki it was retrieved from even document or class names that are full names 
> and not prefixed full names. So when it trys to get the class to be able to 
> correctly display the field value it can't find the class and display nothing.

-- 
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