You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Michael Brohl (JIRA)" <ji...@apache.org> on 2018/12/08 09:25:00 UTC

[jira] [Updated] (OFBIZ-10653) Missing nullcheck in service createContactListParty

     [ https://issues.apache.org/jira/browse/OFBIZ-10653?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Brohl updated OFBIZ-10653:
----------------------------------
    Affects Version/s: Release Branch 17.12
                       16.11.05

> Missing nullcheck in service createContactListParty
> ---------------------------------------------------
>
>                 Key: OFBIZ-10653
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-10653
>             Project: OFBiz
>          Issue Type: Bug
>          Components: marketing
>    Affects Versions: Trunk, 16.11.05, Release Branch 17.12
>            Reporter: Dennis Balkir
>            Assignee: Michael Brohl
>            Priority: Major
>         Attachments: OFBIZ-10653_ContactListServices.patch
>
>
> This service searches for the primary email-address of the given party, if it doesn't have a preffered contact mechanism ID in its parameters.
> For this it uses the service {{getPartyEmail}} which, as a result, can deliver an optional email-address.
> This is where the problem is: the result is optional.
> Without any further checks, the result, empty or not, will be used to call another service called {{createContactListPartyStatus}}. For this service the field {{preferredContactMechId}} is a non optional input value, which is set before from the result of {{getPartyEmail}}.
> If the party email could not be found, because a party group is added, or simply because the party has no mail given for some reason, this service call will result in an error because of missing parameters.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)