ofbiz-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Brohl (Jira)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-10325) EntityOne.java doesn't throw proper exception if field is not available in entity
Date Sat, 01 Feb 2020 17:58:00 GMT

    [ https://issues.apache.org/jira/browse/OFBIZ-10325?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17028169#comment-17028169
] 

Michael Brohl commented on OFBIZ-10325:
---------------------------------------

Hi [~surajk] , is there anything open with this issue or can it be closed?

> EntityOne.java doesn't throw proper exception if field is not available in entity
> ---------------------------------------------------------------------------------
>
>                 Key: OFBIZ-10325
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10325
>             Project: OFBiz
>          Issue Type: Improvement
>            Reporter: Suraj Khurana
>            Priority: Major
>         Attachments: PartyProfile.png
>
>
> Using entity-one tag in xml services, if field is not a part of entity, proper exception
message should be thrown with returned error service response.
>  Suppose:
> <entity-one entity-name="ProductFacility" value-field="productFacility">
>      <field-map field-name="productId" from-field="parameters.productId"/>
>      <field-map field-name="facilityId" from-field="parameters.facilityId"/>
>     <field-map field-name="partyId" from-field="parameters.partyId"/>
>  </entity-one>
> partyId is not part of ProductFacility entity, if such code is used inside any xml service,
than proper exception should be thrown from EntityOne.java
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message