[ https://jira.nuxeo.org/browse/NXS-285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alain Escaffre reopened NXS-285: -------------------------------- Tested ok for document type name and schema name in the document creation wizzard. Non ok for schema name when creating schema directly > Prohibit schema name and prefix that would interfere with EL resolution of > the document properties > -------------------------------------------------------------------------------------------------- > > Key: NXS-285 > URL: https://jira.nuxeo.org/browse/NXS-285 > Project: Nuxeo Studio > Issue Type: Bug > Affects Versions: 1.5 > Reporter: Anahide Tchertchian > Assignee: Anahide Tchertchian > Fix For: 1.6 > > > The DocumentModelResolver handles EL resolution of document properties, but > it also handles standard BeanEL resolution of the document properties, > resolving its getters and setters. > => the schema and prefix names defined in Studio should never match a > DocumentModel public getter otherwise it will not be resolved as a schema > instance, but will call the corresponding getter instead. > For instance, when defining a schema named "currentLifeCycleState", the > following error occurs when rendering its layout in Nuxeo: > Caused by: javax.el.ELException: /layouts/truc_layout_template.xhtml @66,87 > value="#{value['currentLifeCycleState']['single_user']}": Error reading > 'currentLifeCycleState' on type org.nuxeo.ecm.core.api.impl.DocumentModelImpl > Caused by: org.nuxeo.ecm.core.api.WrappedException: Exception: > org.nuxeo.ecm.core.api.DocumentException. message: Invalid reference (null) > at > org.nuxeo.ecm.core.api.DocumentResolver.resolveReference(DocumentResolver.java:57) > at > org.nuxeo.ecm.core.api.AbstractSession.resolveReference(AbstractSession.java:465) > at > org.nuxeo.ecm.core.api.AbstractSession.getCurrentLifeCycleState(AbstractSession.java:2489) > Here calling this getter on a new document model throws an error, but the > point it that this getter is called => field with name "single_user" will not > be resolved correctly. > Document type name should also be checked, as it is used as the default > schema name. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://jira.nuxeo.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets