https://bugzilla.wikimedia.org/show_bug.cgi?id=47472

--- Comment #4 from MWJames <jamesin.hongkon...@gmail.com> ---
(In reply to comment #3)
> The "record type" subobject uses the "real" subobject as a SMWDIWikiPage
> reference (see below) and this is where the subSemanticData issue occurs. 

After further investigation, the exception is raised because
addSubSemanticData() checks for the "subDataAllowed" property if it set true or
false.

addSubSemanticData() is called recursively during the process of adding
container data and during that process $semanticData->subDataAllowed = false;
is set which inevitably causes the exception during the recursive call.

I can't say for sure why $semanticData->subDataAllowed = false is set at this
point, maybe it is to avoid circular reference within subobject.

The documentation points to subDataAllowed being an "Internal flag that
indicates if this semantic data will accept subdata. Semantic data objects that
are subdata already do not allow (second level) subdata to be added." 

It could be that because the record type is a subobject itself and by trying to
add the same record (which is what happen when you assign RecordProperty =
Testing;123 to the second caller which in fact is the same subobject) by trying
to resolve the container data subDataAllowed property is set false which is
causing the exception.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to