resolvePath doesn't work for all properties
-------------------------------------------
Key: NXP-1809
URL: http://jira.nuxeo.org/browse/NXP-1809
Project: Nuxeo Enterprise Platform 5
Issue Type: Bug
Components: Core
Affects Versions: 5.2 M1
Environment: JBoss 4.0.5GA, Ubuntu Feisty 7.02, build 27389
Reporter: Radu Darlea
Assignee: Bogdan Stefanescu
Priority: Major
Fix For: 5.2 M1
I am trying to grab a property using DocumentPart.resolvePath(String). Most of
the times it works. But for some not.
DocumentPart dp = docModel.getPart("common");
Property prop = dp.resolvePath("major_version");
gives me
org.nuxeo.ecm.core.api.model.PropertyNotFoundException: Property not found:
major_version.
at
org.nuxeo.ecm.core.api.model.impl.ComplexProperty.get(ComplexProperty.java:151)
at
org.nuxeo.ecm.core.api.model.impl.AbstractProperty.resolvePath(AbstractProperty.java:397)
at
org.nuxeo.ecm.core.api.model.impl.AbstractProperty.resolvePath(AbstractProperty.java:358)
at
org.nuxeo.ecm.platform.jaxws.ExternalEditWSImpl.getSimplePropertyUtility(ExternalEditWSImpl.java:420)
while I can take "common:size" or "common:icon" with no problem.
(If other examples, I will attach).
BTW, the code throwing the exception is
public Property get(String name) throws PropertyNotFoundException,
UnsupportedOperationException {
Field field = getType().getField(name);
if (field == null) {
throw new PropertyNotFoundException(name, "");
}
return getChild(field);
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets